From c4b66d8f0b5666261b43ee923565cc516b7fb92f Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Sun, 20 Sep 2020 16:20:08 +0100 Subject: [PATCH] test(oracle): add InSpec configuration for `oraclelinux` --- FORMULA | 4 +-- .../default/files/_mapdata/oracle-7.yaml | 34 +++++++++++++++++++ .../default/files/_mapdata/oracle-8.yaml | 34 +++++++++++++++++++ test/integration/default/inspec.yml | 1 + test/integration/share/inspec.yml | 1 + 5 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 test/integration/default/files/_mapdata/oracle-7.yaml create mode 100644 test/integration/default/files/_mapdata/oracle-8.yaml diff --git a/FORMULA b/FORMULA index 2185614..f3c1834 100644 --- a/FORMULA +++ b/FORMULA @@ -1,9 +1,9 @@ name: TEMPLATE -os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Amazon, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS +os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Amazon, Oracle, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS version: 4.2.0 release: 1 -minimum_version: 2017.7 +minimum_version: 2019.2 summary: TEMPLATE formula description: Formula to use as a template for other formulas top_level_dir: TEMPLATE diff --git a/test/integration/default/files/_mapdata/oracle-7.yaml b/test/integration/default/files/_mapdata/oracle-7.yaml new file mode 100644 index 0000000..31f74ad --- /dev/null +++ b/test/integration/default/files/_mapdata/oracle-7.yaml @@ -0,0 +1,34 @@ +# yamllint disable rule:indentation rule:line-length +# Oracle Linux Server-7 +--- +added_in_defaults: defaults_value +added_in_lookup: lookup_value +added_in_pillar: pillar_value +arch: amd64 +config: /etc/template-formula.conf +lookup: + added_in_lookup: lookup_value + master: template-master + winner: lookup +master: template-master +pkg: + name: bash +rootgroup: root +service: + name: systemd-journald +subcomponent: + config: /etc/TEMPLATE-subcomponent-formula.conf +tofs: + files_switch: + - any/path/can/be/used/here + - id + - roles + - osfinger + - os + - os_family + source_files: + TEMPLATE-config-file-file-managed: + - example.tmpl.jinja + TEMPLATE-subcomponent-config-file-file-managed: + - subcomponent-example.tmpl.jinja +winner: pillar diff --git a/test/integration/default/files/_mapdata/oracle-8.yaml b/test/integration/default/files/_mapdata/oracle-8.yaml new file mode 100644 index 0000000..34c9d94 --- /dev/null +++ b/test/integration/default/files/_mapdata/oracle-8.yaml @@ -0,0 +1,34 @@ +# yamllint disable rule:indentation rule:line-length +# Oracle Linux Server-8 +--- +added_in_defaults: defaults_value +added_in_lookup: lookup_value +added_in_pillar: pillar_value +arch: amd64 +config: /etc/template-formula.conf +lookup: + added_in_lookup: lookup_value + master: template-master + winner: lookup +master: template-master +pkg: + name: bash +rootgroup: root +service: + name: systemd-journald +subcomponent: + config: /etc/TEMPLATE-subcomponent-formula.conf +tofs: + files_switch: + - any/path/can/be/used/here + - id + - roles + - osfinger + - os + - os_family + source_files: + TEMPLATE-config-file-file-managed: + - example.tmpl.jinja + TEMPLATE-subcomponent-config-file-file-managed: + - subcomponent-example.tmpl.jinja +winner: pillar diff --git a/test/integration/default/inspec.yml b/test/integration/default/inspec.yml index 029ec07..dd99742 100644 --- a/test/integration/default/inspec.yml +++ b/test/integration/default/inspec.yml @@ -18,4 +18,5 @@ supports: - platform-name: suse - platform-name: freebsd - platform-name: amazon + - platform-name: oracle - platform-name: arch diff --git a/test/integration/share/inspec.yml b/test/integration/share/inspec.yml index 96a5ab6..713f721 100644 --- a/test/integration/share/inspec.yml +++ b/test/integration/share/inspec.yml @@ -15,4 +15,5 @@ supports: - platform-name: suse - platform-name: freebsd - platform-name: amazon + - platform-name: oracle - platform-name: arch