From 0fdcbd428839d5459ed9e6503b7765a4bd320149 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 1 Oct 2021 16:59:24 +0100 Subject: [PATCH 1/2] test(map): verify `map.jinja` dump using `_mapdata` state * Semi-automated using https://github.com/myii/ssf-formula/pull/371 Include temporary fix until the following PR is finalised and merged: * https://github.com/saltstack-formulas/node-formula/pull/59 --- kitchen.yml | 2 + test/integration/default/controls/_mapdata.rb | 47 +++++++++++++++++++ test/integration/windows/controls/_mapdata.rb | 47 +++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 test/integration/default/controls/_mapdata.rb create mode 100644 test/integration/windows/controls/_mapdata.rb diff --git a/kitchen.yml b/kitchen.yml index 5a437a9..e8c934c 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -528,6 +528,7 @@ suites: provisioner: dependencies: - name: node + branch: test-kitchen repo: git source: https://github.com/saltstack-formulas/node-formula.git state_top: @@ -807,6 +808,7 @@ suites: state_top: base: '*': + - packages._mapdata - packages.chocolatey pillars: top.sls: diff --git a/test/integration/default/controls/_mapdata.rb b/test/integration/default/controls/_mapdata.rb new file mode 100644 index 0000000..e9012f4 --- /dev/null +++ b/test/integration/default/controls/_mapdata.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +require 'yaml' + +control 'packages._mapdata' do + title '`map.jinja` should match the reference file' + + ### Method + # The steps below for each file appear convoluted but they are both required + # and similar in nature: + # 1. The earliest method was to simply compare the files textually but this often + # led to false positives due to inconsistencies (e.g. spacing, ordering) + # 2. The next method was to load the files back into YAML structures and then + # compare but InSpec provided block diffs this way, unusable by end users + # 3. The final step was to dump the YAML structures back into a string to use + # for the comparison; this both worked and provided human-friendly diffs + + ### Comparison file for the specific platform + ### Static, adjusted as part of code contributions, as map data is changed + # Strip the `platform[:finger]` version number down to the "OS major release" + platform_finger = system.platform[:finger].split('.').first.to_s + # Use that to set the path to the file (relative to the InSpec suite directory) + mapdata_file_path = "_mapdata/#{platform_finger}.yaml" + # Load the mapdata from profile, into a YAML structure + # https://docs.chef.io/inspec/profiles/#profile-files + mapdata_file_yaml = YAML.load(inspec.profile.file(mapdata_file_path)) + # Dump the YAML back into a string for comparison + mapdata_file_dump = YAML.dump(mapdata_file_yaml) + + ### Output file produced by running the `_mapdata` state + ### Dynamic, generated during Kitchen's `converge` phase + # Derive the location of the dumped mapdata (differs for Windows) + output_dir = platform[:family] == 'windows' ? '/temp' : '/tmp' + # Use that to set the path to the file (absolute path, i.e. within the container) + output_file_path = "#{output_dir}/salt_mapdata_dump.yaml" + # Load the output into a YAML structure using InSpec's `yaml` resource + # https://github.com/inspec/inspec/blob/49b7d10/lib/inspec/resources/yaml.rb#L29 + output_file_yaml = yaml(output_file_path).params + # Dump the YAML back into a string for comparison + output_file_dump = YAML.dump(output_file_yaml) + + describe 'File content' do + it 'should match profile map data exactly' do + expect(output_file_dump).to eq(mapdata_file_dump) + end + end +end diff --git a/test/integration/windows/controls/_mapdata.rb b/test/integration/windows/controls/_mapdata.rb new file mode 100644 index 0000000..e9012f4 --- /dev/null +++ b/test/integration/windows/controls/_mapdata.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +require 'yaml' + +control 'packages._mapdata' do + title '`map.jinja` should match the reference file' + + ### Method + # The steps below for each file appear convoluted but they are both required + # and similar in nature: + # 1. The earliest method was to simply compare the files textually but this often + # led to false positives due to inconsistencies (e.g. spacing, ordering) + # 2. The next method was to load the files back into YAML structures and then + # compare but InSpec provided block diffs this way, unusable by end users + # 3. The final step was to dump the YAML structures back into a string to use + # for the comparison; this both worked and provided human-friendly diffs + + ### Comparison file for the specific platform + ### Static, adjusted as part of code contributions, as map data is changed + # Strip the `platform[:finger]` version number down to the "OS major release" + platform_finger = system.platform[:finger].split('.').first.to_s + # Use that to set the path to the file (relative to the InSpec suite directory) + mapdata_file_path = "_mapdata/#{platform_finger}.yaml" + # Load the mapdata from profile, into a YAML structure + # https://docs.chef.io/inspec/profiles/#profile-files + mapdata_file_yaml = YAML.load(inspec.profile.file(mapdata_file_path)) + # Dump the YAML back into a string for comparison + mapdata_file_dump = YAML.dump(mapdata_file_yaml) + + ### Output file produced by running the `_mapdata` state + ### Dynamic, generated during Kitchen's `converge` phase + # Derive the location of the dumped mapdata (differs for Windows) + output_dir = platform[:family] == 'windows' ? '/temp' : '/tmp' + # Use that to set the path to the file (absolute path, i.e. within the container) + output_file_path = "#{output_dir}/salt_mapdata_dump.yaml" + # Load the output into a YAML structure using InSpec's `yaml` resource + # https://github.com/inspec/inspec/blob/49b7d10/lib/inspec/resources/yaml.rb#L29 + output_file_yaml = yaml(output_file_path).params + # Dump the YAML back into a string for comparison + output_file_dump = YAML.dump(output_file_yaml) + + describe 'File content' do + it 'should match profile map data exactly' do + expect(output_file_dump).to eq(mapdata_file_dump) + end + end +end From 96a1a034c1e438c5695f4f03e9f79bcdf7ff9142 Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Fri, 1 Oct 2021 17:44:07 +0100 Subject: [PATCH 2/2] test(_mapdata): generate verification files --- .../default/files/_mapdata/almalinux-8.yaml | 95 ++++++++++++ .../default/files/_mapdata/amazonlinux-2.yaml | 96 ++++++++++++ .../files/_mapdata/arch-base-latest.yaml | 94 ++++++++++++ .../default/files/_mapdata/centos-7.yaml | 95 ++++++++++++ .../default/files/_mapdata/centos-8.yaml | 96 ++++++++++++ .../default/files/_mapdata/debian-10.yaml | 141 ++++++++++++++++++ .../default/files/_mapdata/debian-11.yaml | 141 ++++++++++++++++++ .../default/files/_mapdata/debian-9.yaml | 141 ++++++++++++++++++ .../default/files/_mapdata/fedora-33.yaml | 98 ++++++++++++ .../default/files/_mapdata/fedora-34.yaml | 98 ++++++++++++ .../default/files/_mapdata/gentoo-2-sysd.yaml | 94 ++++++++++++ .../default/files/_mapdata/gentoo-2-sysv.yaml | 94 ++++++++++++ .../default/files/_mapdata/opensuse-15.yaml | 90 +++++++++++ .../files/_mapdata/opensuse-tumbleweed.yaml | 90 +++++++++++ .../default/files/_mapdata/oraclelinux-7.yaml | 97 ++++++++++++ .../default/files/_mapdata/oraclelinux-8.yaml | 98 ++++++++++++ .../default/files/_mapdata/rockylinux-8.yaml | 95 ++++++++++++ .../default/files/_mapdata/ubuntu-18.yaml | 128 ++++++++++++++++ .../default/files/_mapdata/ubuntu-20.yaml | 128 ++++++++++++++++ .../windows/files/_mapdata/windows-10.yaml | 85 +++++++++++ .../files/_mapdata/windows-2016-server.yaml | 85 +++++++++++ .../files/_mapdata/windows-2019-server.yaml | 85 +++++++++++ .../windows/files/_mapdata/windows-8.yaml | 85 +++++++++++ 23 files changed, 2349 insertions(+) create mode 100644 test/integration/default/files/_mapdata/almalinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/amazonlinux-2.yaml create mode 100644 test/integration/default/files/_mapdata/arch-base-latest.yaml create mode 100644 test/integration/default/files/_mapdata/centos-7.yaml create mode 100644 test/integration/default/files/_mapdata/centos-8.yaml create mode 100644 test/integration/default/files/_mapdata/debian-10.yaml create mode 100644 test/integration/default/files/_mapdata/debian-11.yaml create mode 100644 test/integration/default/files/_mapdata/debian-9.yaml create mode 100644 test/integration/default/files/_mapdata/fedora-33.yaml create mode 100644 test/integration/default/files/_mapdata/fedora-34.yaml create mode 100644 test/integration/default/files/_mapdata/gentoo-2-sysd.yaml create mode 100644 test/integration/default/files/_mapdata/gentoo-2-sysv.yaml create mode 100644 test/integration/default/files/_mapdata/opensuse-15.yaml create mode 100644 test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml create mode 100644 test/integration/default/files/_mapdata/oraclelinux-7.yaml create mode 100644 test/integration/default/files/_mapdata/oraclelinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/rockylinux-8.yaml create mode 100644 test/integration/default/files/_mapdata/ubuntu-18.yaml create mode 100644 test/integration/default/files/_mapdata/ubuntu-20.yaml create mode 100644 test/integration/windows/files/_mapdata/windows-10.yaml create mode 100644 test/integration/windows/files/_mapdata/windows-2016-server.yaml create mode 100644 test/integration/windows/files/_mapdata/windows-2019-server.yaml create mode 100644 test/integration/windows/files/_mapdata/windows-8.yaml diff --git a/test/integration/default/files/_mapdata/almalinux-8.yaml b/test/integration/default/files/_mapdata/almalinux-8.yaml new file mode 100644 index 0000000..549a869 --- /dev/null +++ b/test/integration/default/files/_mapdata/almalinux-8.yaml @@ -0,0 +1,95 @@ +# yamllint disable rule:indentation rule:line-length +# AlmaLinux-8 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: [] + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/amazonlinux-2.yaml b/test/integration/default/files/_mapdata/amazonlinux-2.yaml new file mode 100644 index 0000000..21d9e34 --- /dev/null +++ b/test/integration/default/files/_mapdata/amazonlinux-2.yaml @@ -0,0 +1,96 @@ +# yamllint disable rule:indentation rule:line-length +# Amazon Linux-2 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: {} + required: + pkgs: + - git + - yum-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/arch-base-latest.yaml b/test/integration/default/files/_mapdata/arch-base-latest.yaml new file mode 100644 index 0000000..45c0c75 --- /dev/null +++ b/test/integration/default/files/_mapdata/arch-base-latest.yaml @@ -0,0 +1,94 @@ +# yamllint disable rule:indentation rule:line-length +# Arch +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: [] + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - ruby + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: {} + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/centos-7.yaml b/test/integration/default/files/_mapdata/centos-7.yaml new file mode 100644 index 0000000..0b4178b --- /dev/null +++ b/test/integration/default/files/_mapdata/centos-7.yaml @@ -0,0 +1,95 @@ +# yamllint disable rule:indentation rule:line-length +# CentOS Linux-7 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - yum-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: [] + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/centos-8.yaml b/test/integration/default/files/_mapdata/centos-8.yaml new file mode 100644 index 0000000..6ad6dee --- /dev/null +++ b/test/integration/default/files/_mapdata/centos-8.yaml @@ -0,0 +1,96 @@ +# yamllint disable rule:indentation rule:line-length +# CentOS Linux-8 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: + - snap + packages: [] + required: + pkgs: [] + states: [] + service: + - snapd + symlink: true + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/debian-10.yaml b/test/integration/default/files/_mapdata/debian-10.yaml new file mode 100644 index 0000000..bdfae68 --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-10.yaml @@ -0,0 +1,141 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-10 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: + - /usr/local/boring_archive_software + wanted: + blockbox: + dest: /usr/local/src/ + dl: + format: raw + hashsum: 1751f8e4f6b4cddd8c4843a0f4473274 + source: https://raw.githubusercontent.com/openstack/cinder/master/contrib/block-box/docker-compose.yml + kubectl: + dest: /usr/local/bin + dl: + format: bin + source: https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/darwin/amd64/kubectl + phantomjs: + dest: /usr/local/src/ + dl: + format: tar + hashsum: md5=1c947d57fce2f21ce0b43fe2ed7cd361 + source: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 + mode: '0700' + user: root + terminator: + dest: /usr/local/terminator/ + dl: + format: tar + hashsum: md5=2eed999d7a41f2e18eaa511bbbf80f58 + source: https://launchpad.net/terminator/gtk3/1.91/+download/terminator-1.91.tar.gz + options: --strip-components=1 + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + dir: /home/kitchen/npms + group: kitchen + mode: '0755' + required: + pkgs: [] + states: + - node.package.install + unwanted: + - gist + user: kitchen + wanted: + - '@low-systems/example@1.1.58' + - hello-world-npm + - sax + - coffee-script@1.0.1 + pips: + config: + global: + default-timeout: 120 + timeout: 120 + required: + pkgs: + - libpython2.7-dev + - python-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - dxpy + - attrs + pkgs: + held: + - alien + - iotop + required: + pkgs: + - wget + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_amd64.deb + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: + - bare + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/debian-11.yaml b/test/integration/default/files/_mapdata/debian-11.yaml new file mode 100644 index 0000000..6999fd6 --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-11.yaml @@ -0,0 +1,141 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-11 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: + - /usr/local/boring_archive_software + wanted: + blockbox: + dest: /usr/local/src/ + dl: + format: raw + hashsum: 1751f8e4f6b4cddd8c4843a0f4473274 + source: https://raw.githubusercontent.com/openstack/cinder/master/contrib/block-box/docker-compose.yml + kubectl: + dest: /usr/local/bin + dl: + format: bin + source: https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/darwin/amd64/kubectl + phantomjs: + dest: /usr/local/src/ + dl: + format: tar + hashsum: md5=1c947d57fce2f21ce0b43fe2ed7cd361 + source: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 + mode: '0700' + user: root + terminator: + dest: /usr/local/terminator/ + dl: + format: tar + hashsum: md5=2eed999d7a41f2e18eaa511bbbf80f58 + source: https://launchpad.net/terminator/gtk3/1.91/+download/terminator-1.91.tar.gz + options: --strip-components=1 + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + dir: /home/kitchen/npms + group: kitchen + mode: '0755' + required: + pkgs: [] + states: + - node.package.install + unwanted: + - gist + user: kitchen + wanted: + - '@low-systems/example@1.1.58' + - hello-world-npm + - sax + - coffee-script@1.0.1 + pips: + config: + global: + default-timeout: 120 + timeout: 120 + required: + pkgs: + - libpython2.7-dev + - python-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - dxpy + - attrs + pkgs: + held: + - alien + - iotop + required: + pkgs: + - wget + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_amd64.deb + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: + - bare + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/debian-9.yaml b/test/integration/default/files/_mapdata/debian-9.yaml new file mode 100644 index 0000000..eb35f77 --- /dev/null +++ b/test/integration/default/files/_mapdata/debian-9.yaml @@ -0,0 +1,141 @@ +# yamllint disable rule:indentation rule:line-length +# Debian-9 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: + - /usr/local/boring_archive_software + wanted: + blockbox: + dest: /usr/local/src/ + dl: + format: raw + hashsum: 1751f8e4f6b4cddd8c4843a0f4473274 + source: https://raw.githubusercontent.com/openstack/cinder/master/contrib/block-box/docker-compose.yml + kubectl: + dest: /usr/local/bin + dl: + format: bin + source: https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/darwin/amd64/kubectl + phantomjs: + dest: /usr/local/src/ + dl: + format: tar + hashsum: md5=1c947d57fce2f21ce0b43fe2ed7cd361 + source: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 + mode: '0700' + user: root + terminator: + dest: /usr/local/terminator/ + dl: + format: tar + hashsum: md5=2eed999d7a41f2e18eaa511bbbf80f58 + source: https://launchpad.net/terminator/gtk3/1.91/+download/terminator-1.91.tar.gz + options: --strip-components=1 + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + dir: /home/kitchen/npms + group: kitchen + mode: '0755' + required: + pkgs: [] + states: + - node.package.install + unwanted: + - gist + user: kitchen + wanted: + - '@low-systems/example@1.1.58' + - hello-world-npm + - sax + - coffee-script@1.0.1 + pips: + config: + global: + default-timeout: 120 + timeout: 120 + required: + pkgs: + - libpython2.7-dev + - python-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - dxpy + - attrs + pkgs: + held: + - alien + - iotop + required: + pkgs: + - wget + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_amd64.deb + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: + - bare + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/fedora-33.yaml b/test/integration/default/files/_mapdata/fedora-33.yaml new file mode 100644 index 0000000..29885e1 --- /dev/null +++ b/test/integration/default/files/_mapdata/fedora-33.yaml @@ -0,0 +1,98 @@ +# yamllint disable rule:indentation rule:line-length +# Fedora-33 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: {} + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: + - snap + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: true + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/fedora-34.yaml b/test/integration/default/files/_mapdata/fedora-34.yaml new file mode 100644 index 0000000..00cbf6f --- /dev/null +++ b/test/integration/default/files/_mapdata/fedora-34.yaml @@ -0,0 +1,98 @@ +# yamllint disable rule:indentation rule:line-length +# Fedora-34 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: {} + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: + - snap + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: true + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml b/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml new file mode 100644 index 0000000..83b6aac --- /dev/null +++ b/test/integration/default/files/_mapdata/gentoo-2-sysd.yaml @@ -0,0 +1,94 @@ +# yamllint disable rule:indentation rule:line-length +# Gentoo-2 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: [] + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: [] + pkgs: + held: + - app-arch/alien + - sys-process/iotop + required: + pkgs: + - dev-vcs/git + states: [] + unwanted: + - net-dns/avahi + wanted: + - net-analyzer/netcat + - dev-lang/ruby + - dev-vcs/git + - sys-apps/less + - sys-devel/bc + - net-misc/curl + remote_pkgs: {} + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml b/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml new file mode 100644 index 0000000..83b6aac --- /dev/null +++ b/test/integration/default/files/_mapdata/gentoo-2-sysv.yaml @@ -0,0 +1,94 @@ +# yamllint disable rule:indentation rule:line-length +# Gentoo-2 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: [] + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: [] + pkgs: + held: + - app-arch/alien + - sys-process/iotop + required: + pkgs: + - dev-vcs/git + states: [] + unwanted: + - net-dns/avahi + wanted: + - net-analyzer/netcat + - dev-lang/ruby + - dev-vcs/git + - sys-apps/less + - sys-devel/bc + - net-misc/curl + remote_pkgs: {} + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/opensuse-15.yaml b/test/integration/default/files/_mapdata/opensuse-15.yaml new file mode 100644 index 0000000..0683fda --- /dev/null +++ b/test/integration/default/files/_mapdata/opensuse-15.yaml @@ -0,0 +1,90 @@ +# yamllint disable rule:indentation rule:line-length +# Leap-15 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby-common + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - python3-pip + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: {} + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml b/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml new file mode 100644 index 0000000..423e2d8 --- /dev/null +++ b/test/integration/default/files/_mapdata/opensuse-tumbleweed.yaml @@ -0,0 +1,90 @@ +# yamllint disable rule:indentation rule:line-length +# openSUSE Tumbleweed-20210620 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby-common + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - python3-pip + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: {} + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/oraclelinux-7.yaml b/test/integration/default/files/_mapdata/oraclelinux-7.yaml new file mode 100644 index 0000000..60ef79c --- /dev/null +++ b/test/integration/default/files/_mapdata/oraclelinux-7.yaml @@ -0,0 +1,97 @@ +# yamllint disable rule:indentation rule:line-length +# Oracle Linux Server-7 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - yum-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/oraclelinux-8.yaml b/test/integration/default/files/_mapdata/oraclelinux-8.yaml new file mode 100644 index 0000000..bc29312 --- /dev/null +++ b/test/integration/default/files/_mapdata/oraclelinux-8.yaml @@ -0,0 +1,98 @@ +# yamllint disable rule:indentation rule:line-length +# Oracle Linux Server-8 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: + - snap + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: true + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/rockylinux-8.yaml b/test/integration/default/files/_mapdata/rockylinux-8.yaml new file mode 100644 index 0000000..567d611 --- /dev/null +++ b/test/integration/default/files/_mapdata/rockylinux-8.yaml @@ -0,0 +1,95 @@ +# yamllint disable rule:indentation rule:line-length +# Rocky Linux-8 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - rubygems + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + golang: + clean: [] + goget: [] + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: + - gcc + - python3-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + - iotop + required: + pkgs: + - git + - python3-dnf-plugin-versionlock + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_x86_64.rpm + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: [] + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/ubuntu-18.yaml b/test/integration/default/files/_mapdata/ubuntu-18.yaml new file mode 100644 index 0000000..6f3ab81 --- /dev/null +++ b/test/integration/default/files/_mapdata/ubuntu-18.yaml @@ -0,0 +1,128 @@ +# yamllint disable rule:indentation rule:line-length +# Ubuntu-18.04 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: + - /usr/local/boring_archive_software + wanted: + blockbox: + dest: /usr/local/src/ + dl: + format: raw + hashsum: 1751f8e4f6b4cddd8c4843a0f4473274 + source: https://raw.githubusercontent.com/openstack/cinder/master/contrib/block-box/docker-compose.yml + phantomjs: + dest: /usr/local/src/ + dl: + format: tar + hashsum: md5=1c947d57fce2f21ce0b43fe2ed7cd361 + source: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 + mode: '0700' + user: root + terminator: + dest: /usr/local/terminator/ + dl: + format: tar + hashsum: md5=2eed999d7a41f2e18eaa511bbbf80f58 + source: https://launchpad.net/terminator/gtk3/1.91/+download/terminator-1.91.tar.gz + options: --strip-components=1 + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: + - github.com/golang/example/hello + - github.com/golang/example/outyet + goget: + - github.com/golang/example/hello + - github.com/golang/example/outyet + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: + global: + default-timeout: 120 + timeout: 120 + required: + pkgs: + - libpython2.7-dev + - python-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + alien: 8.95 + iotop: 0.6-2 + required: + pkgs: + - wget + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_amd64.deb + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/default/files/_mapdata/ubuntu-20.yaml b/test/integration/default/files/_mapdata/ubuntu-20.yaml new file mode 100644 index 0000000..20b3521 --- /dev/null +++ b/test/integration/default/files/_mapdata/ubuntu-20.yaml @@ -0,0 +1,128 @@ +# yamllint disable rule:indentation rule:line-length +# Ubuntu-20.04 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: + - /usr/local/boring_archive_software + wanted: + blockbox: + dest: /usr/local/src/ + dl: + format: raw + hashsum: 1751f8e4f6b4cddd8c4843a0f4473274 + source: https://raw.githubusercontent.com/openstack/cinder/master/contrib/block-box/docker-compose.yml + phantomjs: + dest: /usr/local/src/ + dl: + format: tar + hashsum: md5=1c947d57fce2f21ce0b43fe2ed7cd361 + source: https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 + mode: '0700' + user: root + terminator: + dest: /usr/local/terminator/ + dl: + format: tar + hashsum: md5=2eed999d7a41f2e18eaa511bbbf80f58 + source: https://launchpad.net/terminator/gtk3/1.91/+download/terminator-1.91.tar.gz + options: --strip-components=1 + chocolatey: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + gems: + required: + pkgs: + - ruby + states: [] + unwanted: + - diff-lcs + - kitchen-vagrant + - kwalify + wanted: + - progressbar + - minitest + golang: + clean: + - github.com/golang/example/hello + - github.com/golang/example/outyet + goget: + - github.com/golang/example/hello + - github.com/golang/example/outyet + kernel: linux + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: + global: + default-timeout: 120 + timeout: 120 + required: + pkgs: + - libpython2.7-dev + - python-pip + states: [] + unwanted: + - campbel + - reverse_geocode + - indy-crypto + wanted: + - attrs + pkgs: + held: + alien: 8.95 + iotop: 0.6-2 + required: + pkgs: + - wget + - git + states: [] + unwanted: + - avahi-daemon + wanted: + - git + - less + - bc + - curl + - fail2ban + remote_pkgs: + zoom: https://zoom.us/client/latest/zoom_amd64.deb + retry_options: + attempts: 1 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: /tmp/saltstack-packages-formula-archives diff --git a/test/integration/windows/files/_mapdata/windows-10.yaml b/test/integration/windows/files/_mapdata/windows-10.yaml new file mode 100644 index 0000000..13cd9de --- /dev/null +++ b/test/integration/windows/files/_mapdata/windows-10.yaml @@ -0,0 +1,85 @@ +# yamllint disable rule:indentation rule:line-length +# Windows-10 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: + - GoogleChrome + - hg + wanted: + Firefox: + package_args: "/l:en-GB" + jq: + force: true + version: '1.5' + notepadplusplus: + version: 7.8.8 + gems: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + golang: + clean: [] + goget: [] + kernel: windows + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + remote_pkgs: {} + retry_options: + attempts: 3 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: "/tmp/saltstack-packages-formula-archives" diff --git a/test/integration/windows/files/_mapdata/windows-2016-server.yaml b/test/integration/windows/files/_mapdata/windows-2016-server.yaml new file mode 100644 index 0000000..a3e0449 --- /dev/null +++ b/test/integration/windows/files/_mapdata/windows-2016-server.yaml @@ -0,0 +1,85 @@ +# yamllint disable rule:indentation rule:line-length +# Windows-2016Server +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: + - GoogleChrome + - hg + wanted: + Firefox: + package_args: "/l:en-GB" + jq: + force: true + version: '1.5' + notepadplusplus: + version: 7.8.8 + gems: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + golang: + clean: [] + goget: [] + kernel: windows + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + remote_pkgs: {} + retry_options: + attempts: 3 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: "/tmp/saltstack-packages-formula-archives" diff --git a/test/integration/windows/files/_mapdata/windows-2019-server.yaml b/test/integration/windows/files/_mapdata/windows-2019-server.yaml new file mode 100644 index 0000000..5cf7406 --- /dev/null +++ b/test/integration/windows/files/_mapdata/windows-2019-server.yaml @@ -0,0 +1,85 @@ +# yamllint disable rule:indentation rule:line-length +# Windows-2019Server +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: + - GoogleChrome + - hg + wanted: + Firefox: + package_args: "/l:en-GB" + jq: + force: true + version: '1.5' + notepadplusplus: + version: 7.8.8 + gems: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + golang: + clean: [] + goget: [] + kernel: windows + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + remote_pkgs: {} + retry_options: + attempts: 3 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: "/tmp/saltstack-packages-formula-archives" diff --git a/test/integration/windows/files/_mapdata/windows-8.yaml b/test/integration/windows/files/_mapdata/windows-8.yaml new file mode 100644 index 0000000..8c756ef --- /dev/null +++ b/test/integration/windows/files/_mapdata/windows-8.yaml @@ -0,0 +1,85 @@ +# yamllint disable rule:indentation rule:line-length +# Windows-8.1 +--- +values: + archives: + pkgs: + required: + - curl + - bzip2 + - gzip + required: + archives: {} + types: + - tar + - zip + - rar + unwanted: [] + wanted: {} + chocolatey: + required: + pkgs: [] + states: [] + unwanted: + - GoogleChrome + - hg + wanted: + Firefox: + package_args: "/l:en-GB" + jq: + force: true + version: '1.5' + notepadplusplus: + version: 7.8.8 + gems: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + golang: + clean: [] + goget: [] + kernel: windows + npms: + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pips: + config: [] + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + pkgs: + held: {} + required: + pkgs: [] + states: [] + unwanted: [] + wanted: [] + remote_pkgs: {} + retry_options: + attempts: 3 + interval: 60 + splay: 10 + until: true + rootuser: root + snaps: + classic: [] + collides: [] + packages: + - snapd + - fuse + required: + pkgs: [] + states: [] + service: + - snapd + symlink: false + unwanted: [] + wanted: [] + tmpdir: "/tmp/saltstack-packages-formula-archives"