From 1c1b7c293b06b79471159fd1aea52aeb56a408db Mon Sep 17 00:00:00 2001 From: skyamgarp <130442619+skyamgarp@users.noreply.github.com> Date: Tue, 26 Nov 2024 18:29:32 +0530 Subject: [PATCH] Add support for windowsfips 2016 x64 (windowsfips2016-support) Added test fixtures (windowsfips2016-support) Fixtures with rake task --- lib/beaker-hostgenerator/data.rb | 10 ++++++ .../generated/default/windowsfips2016-64u | 17 ++++++++++ ...dora28-64d-windowsfips2016-64-fedora28-64c | 30 +++++++++++++++++ ...ps2016-64u-fedora28-64-windowsfips2016-64m | 32 +++++++++++++++++++ .../osinfo-version-0/windowsfips2016-64u | 17 ++++++++++ .../osinfo-version-1/windowsfips2016-64u | 17 ++++++++++ 6 files changed, 123 insertions(+) create mode 100644 test/fixtures/generated/default/windowsfips2016-64u create mode 100644 test/fixtures/generated/multiplatform/fedora28-64d-windowsfips2016-64-fedora28-64c create mode 100644 test/fixtures/generated/multiplatform/windowsfips2016-64u-fedora28-64-windowsfips2016-64m create mode 100644 test/fixtures/generated/osinfo-version-0/windowsfips2016-64u create mode 100644 test/fixtures/generated/osinfo-version-1/windowsfips2016-64u diff --git a/lib/beaker-hostgenerator/data.rb b/lib/beaker-hostgenerator/data.rb index e251575e..73dac480 100644 --- a/lib/beaker-hostgenerator/data.rb +++ b/lib/beaker-hostgenerator/data.rb @@ -866,6 +866,16 @@ def osinfo 'locale' => 'fr', }, }, + 'windowsfips2016-64' => { + general: { + 'platform' => 'windows-2016-64', + 'packaging_platform' => 'windowsfips-2016-x64', + 'ruby_arch' => 'x64', + }, + vmpooler: { + 'template' => 'win-2016-fips-x86_64', + }, + }, 'windowsfips2016-6432' => { general: { 'platform' => 'windows-2016-64', diff --git a/test/fixtures/generated/default/windowsfips2016-64u b/test/fixtures/generated/default/windowsfips2016-64u new file mode 100644 index 00000000..d9eaefa4 --- /dev/null +++ b/test/fixtures/generated/default/windowsfips2016-64u @@ -0,0 +1,17 @@ +--- +arguments_string: windowsfips2016-64u +environment_variables: {} +expected_hash: + HOSTS: + windowsfips2016-64-1: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + - ca + CONFIG: + pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/ +expected_exception: diff --git a/test/fixtures/generated/multiplatform/fedora28-64d-windowsfips2016-64-fedora28-64c b/test/fixtures/generated/multiplatform/fedora28-64d-windowsfips2016-64-fedora28-64c new file mode 100644 index 00000000..4289cc25 --- /dev/null +++ b/test/fixtures/generated/multiplatform/fedora28-64d-windowsfips2016-64-fedora28-64c @@ -0,0 +1,30 @@ +--- +arguments_string: fedora28-64d-windowsfips2016-64-fedora28-64c +environment_variables: {} +expected_hash: + HOSTS: + fedora28-64-1: + platform: fedora-28-x86_64 + hypervisor: vmpooler + template: fedora-28-x86_64 + roles: + - agent + - database + windowsfips2016-64-1: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + fedora28-64-2: + platform: fedora-28-x86_64 + hypervisor: vmpooler + template: fedora-28-x86_64 + roles: + - agent + - dashboard + CONFIG: + pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/ +expected_exception: diff --git a/test/fixtures/generated/multiplatform/windowsfips2016-64u-fedora28-64-windowsfips2016-64m b/test/fixtures/generated/multiplatform/windowsfips2016-64u-fedora28-64-windowsfips2016-64m new file mode 100644 index 00000000..b7b25ab8 --- /dev/null +++ b/test/fixtures/generated/multiplatform/windowsfips2016-64u-fedora28-64-windowsfips2016-64m @@ -0,0 +1,32 @@ +--- +arguments_string: windowsfips2016-64u-fedora28-64-windowsfips2016-64m +environment_variables: {} +expected_hash: + HOSTS: + windowsfips2016-64-1: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + - ca + fedora28-64-1: + platform: fedora-28-x86_64 + hypervisor: vmpooler + template: fedora-28-x86_64 + roles: + - agent + windowsfips2016-64-2: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + - master + CONFIG: + pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/ +expected_exception: diff --git a/test/fixtures/generated/osinfo-version-0/windowsfips2016-64u b/test/fixtures/generated/osinfo-version-0/windowsfips2016-64u new file mode 100644 index 00000000..72611bf1 --- /dev/null +++ b/test/fixtures/generated/osinfo-version-0/windowsfips2016-64u @@ -0,0 +1,17 @@ +--- +arguments_string: "--osinfo-version 0 windowsfips2016-64u" +environment_variables: {} +expected_hash: + HOSTS: + windowsfips2016-64-1: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + - ca + CONFIG: + pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/ +expected_exception: diff --git a/test/fixtures/generated/osinfo-version-1/windowsfips2016-64u b/test/fixtures/generated/osinfo-version-1/windowsfips2016-64u new file mode 100644 index 00000000..a9119de8 --- /dev/null +++ b/test/fixtures/generated/osinfo-version-1/windowsfips2016-64u @@ -0,0 +1,17 @@ +--- +arguments_string: "--osinfo-version 1 windowsfips2016-64u" +environment_variables: {} +expected_hash: + HOSTS: + windowsfips2016-64-1: + platform: windows-2016-64 + packaging_platform: windowsfips-2016-x64 + ruby_arch: x64 + template: win-2016-fips-x86_64 + hypervisor: vmpooler + roles: + - agent + - ca + CONFIG: + pooling_api: https://vmpooler-prod.k8s.infracore.puppet.net/ +expected_exception: