Skip to content

Commit

Permalink
support for redhat9 fips
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Hegde committed Feb 12, 2024
1 parent e67e9c1 commit be3c798
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/beaker-hostgenerator/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,15 @@ def osinfo
'platform' => 'el-9-x86_64',
},
},
'redhatfips9-64' => {
general: {
'platform' => 'el-9-x86_64',
'packaging_platform' => 'redhatfips-9-x86_64',
},
vmpooler: {
'template' => 'redhat-fips-9-x86_64',
},
},

Check warning on line 382 in lib/beaker-hostgenerator/data.rb

View check run for this annotation

Codecov / codecov/patch

lib/beaker-hostgenerator/data.rb#L374-L382

Added lines #L374 - L382 were not covered by tests
'redhat9-AARCH64' => {
general: {
'platform' => 'el-9-aarch64',
Expand Down
15 changes: 15 additions & 0 deletions test/fixtures/generated/default/redhatfips9-64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
arguments_string: redhatfips9-64a
environment_variables: {}
expected_hash:
HOSTS:
redhatfips9-64-1:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
arguments_string: aix71-POWERl-redhatfips9-64-aix71-POWERf
environment_variables: {}
expected_hash:
HOSTS:
aix71-POWER-1:
platform: aix-7.1-power
hypervisor: vmpooler
roles:
- agent
- classifier
redhatfips9-64-1:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
aix71-POWER-2:
platform: aix-7.1-power
hypervisor: vmpooler
roles:
- agent
- frictionless
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
arguments_string: redhatfips9-64a-aix71-POWER-redhatfips9-64aulcdfm
environment_variables: {}
expected_hash:
HOSTS:
redhatfips9-64-1:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
aix71-POWER-1:
platform: aix-7.1-power
hypervisor: vmpooler
roles:
- agent
redhatfips9-64-2:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
- ca
- classifier
- dashboard
- database
- frictionless
- master
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
15 changes: 15 additions & 0 deletions test/fixtures/generated/osinfo-version-0/redhatfips9-64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
arguments_string: "--osinfo-version 0 redhatfips9-64a"
environment_variables: {}
expected_hash:
HOSTS:
redhatfips9-64-1:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:
15 changes: 15 additions & 0 deletions test/fixtures/generated/osinfo-version-1/redhatfips9-64a
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
arguments_string: "--osinfo-version 1 redhatfips9-64a"
environment_variables: {}
expected_hash:
HOSTS:
redhatfips9-64-1:
platform: el-9-x86_64
packaging_platform: redhatfips-9-x86_64
template: redhat-fips-9-x86_64
hypervisor: vmpooler
roles:
- agent
CONFIG:
pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/
expected_exception:

0 comments on commit be3c798

Please sign in to comment.