Skip to content

Commit

Permalink
[6.15.z] Create fake galaxy.yml to make the FAM Makefile happy (#16936)…
Browse files Browse the repository at this point in the history
… (#17056)

Create fake galaxy.yml to make the FAM Makefile happy (#16936)

The data in the file is unused, but not being able to load it produces
errors in the logs and is confusing when searching for an actual problem
during testing.

Co-authored-by: Evgeni Golov <[email protected]>
  • Loading branch information
rmynar and evgeni authored Dec 3, 2024
1 parent 0d1e500 commit c945612
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/foreman/sys/test_fam.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

from broker import Broker
import pytest
import yaml

from robottelo.config import settings
from robottelo.constants import (
Expand Down Expand Up @@ -71,6 +72,15 @@ def setup_fam(module_target_sat, module_sca_manifest, install_import_ansible_rol
temp_file=True,
)

# Create fake galaxy.yml to make Makefile happy.
# The data in the file is unused, but not being able to load it produces errors in the
# logs and is confusing when searching for an actual problem during testing.
module_target_sat.put(
yaml.safe_dump({'name': 'satellite', 'namespace': 'redhat', 'version': '1.0.0'}),
f'{FAM_ROOT_DIR}/galaxy.yml',
temp_file=True,
)

# Edit Makefile to not try to rebuild the collection when tests run
module_target_sat.execute(f"sed -i '/^live/ s/$(MANIFEST)//' {FAM_ROOT_DIR}/Makefile")

Expand Down

0 comments on commit c945612

Please sign in to comment.