Skip to content

Commit

Permalink
fix: Translate job-group properly
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily authored and dav-pascual committed Dec 10, 2024
1 parent 70e07c1 commit 0cabc75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mrack/transformers/beaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def create_host_requirement(self, host):
"name": host["name"],
"distro": distro,
"os": host["os"],
"group": host["group"],
"job_group": host["group"],
"meta_distro": "distro" in host,
"arch": host.get("arch", "x86_64"),
"variant": variant,
Expand Down
6 changes: 6 additions & 0 deletions tests/unit/test_beaker_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ async def create_transformer(self, legacy=False):
"variant": "Server",
"ks_meta": "FEDORA_HOST_KS_META",
"job_owner": "FEDORA",
"job_group": "client",
"ks_append": maximal_ksappend,
"kernel_options": "FEDORA_KERNEL_OPTIONS",
"kernel_options_post": "FEDORA_KERNEL_OPTIONS_POST",
Expand All @@ -214,6 +215,7 @@ async def create_transformer(self, legacy=False):
"distro": "Fedora-36%",
"variant": "Server",
"ks_meta": "FEDORA_HOST_KS_META",
"job_group": "server",
"ks_append": default_ks_append,
"whiteboard": default_whiteboard,
"priority": default_prio,
Expand All @@ -227,6 +229,7 @@ async def create_transformer(self, legacy=False):
{
"distro": "CentOS-Stream-9%",
"variant": "BaseOS",
"job_group": "ipaserver",
"ks_meta": "PROV_CONF_CENTOS_KS_META",
"ks_append": ["%post\ncat /etc/redhat-release\n%end"],
"whiteboard": default_whiteboard,
Expand All @@ -241,6 +244,7 @@ async def create_transformer(self, legacy=False):
{
"distro": "CentOS-Stream-9%",
"variant": "BaseOS",
"job_group": "ipaclient",
"ks_meta": "PROV_CONF_CENTOS_KS_META",
"ks_append": ["%post\ncat /etc/redhat-release\n%end"],
"whiteboard": default_whiteboard,
Expand All @@ -257,6 +261,7 @@ async def create_transformer(self, legacy=False):
{
"distro": "win-2022",
"variant": "BaseOS",
"job_group": "ad_root",
"ks_meta": "PROV_CONF_DEFAULT",
"ks_append": default_ks_append,
"whiteboard": "BEAKER DOES NOT SUPPORT WINDOWS THIS JOB MUST FAIL",
Expand All @@ -271,6 +276,7 @@ async def create_transformer(self, legacy=False):
{
"distro": "RHEL-8.6%",
"variant": "BaseOS",
"job_group": "ipaserver",
"ks_meta": "PROV_CONF_RHEL86_KS_META",
"ks_append": [
"%post\ncat /etc/redhat-release\nwget redhat.com\n%end"
Expand Down

0 comments on commit 0cabc75

Please sign in to comment.