Pārlūkot izejas kodu

test: standardise use of `share` suite & `_mapdata` state [skip ci]

* Automated using https://github.com/myii/ssf-formula/pull/302
tags/v1.8.1
Imran Iqbal pirms 3 gadiem
vecāks
revīzija
9816f473c5
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
8 mainītis faili ar 11 papildinājumiem un 4 dzēšanām
  1. +1
    -1
      .rubocop.yml
  2. +1
    -1
      Gemfile
  3. +1
    -0
      test/integration/share/inspec.yml
  4. +4
    -2
      test/integration/share/libraries/system.rb
  5. +1
    -0
      test/integration/v3000-py2/inspec.yml
  6. +1
    -0
      test/integration/v3000-py3/inspec.yml
  7. +1
    -0
      test/integration/v3001-py3/inspec.yml
  8. +1
    -0
      test/integration/v3002-py3/inspec.yml

+ 1
- 1
.rubocop.yml Parādīt failu

@@ -7,7 +7,7 @@ Layout/LineLength:
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
Max: 88
Metrics/BlockLength:
ExcludedMethods:
IgnoredMethods:
- control
- describe
# Increase from default of `25`

+ 1
- 1
Gemfile Parādīt failu

@@ -5,7 +5,7 @@ source 'https://rubygems.org'
# Use the latest version of `inspec` prior to `4.23.4`, which introduces a
# regression where the diff isn't displayed when comparing using `eq`.
gem 'inspec', '~> 4.22.22'
# Install the `kitchen-docker` gem from GitHub because the latest version
# Install the `kitchen-docker` gem using `git` because the latest version
# currently available (`2.10.0`) doesn't include a recent fix for Gentoo.
# rubocop:disable Layout/LineLength
gem 'kitchen-docker', git: 'https://gitlab.com/saltstack-formulas/infrastructure/kitchen-docker', branch: 'ssf'

+ 1
- 0
test/integration/share/inspec.yml Parādīt failu

@@ -14,6 +14,7 @@ supports:
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: openbsd
- platform-name: amazon
- platform-name: oracle
- platform-name: arch

+ 4
- 2
test/integration/share/libraries/system.rb Parādīt failu

@@ -38,8 +38,8 @@ class SystemResource < Inspec.resource(1)
case inspec.platform[:name]
when 'amazon', 'oracle'
"#{inspec.platform[:name]}linux"
when 'windows_8.1_pro', 'windows_server_2019_datacenter'
'windows'
when /^windows_/
inspec.platform[:family]
else
inspec.platform[:name]
end
@@ -63,6 +63,8 @@ class SystemResource < Inspec.resource(1)
'8.1'
when 'windows_server_2019_datacenter'
'2019-server'
when 'windows_server_2016_datacenter'
'2016-server'
else
inspec.platform[:release]
end

+ 1
- 0
test/integration/v3000-py2/inspec.yml Parādīt failu

@@ -17,6 +17,7 @@ supports:
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: openbsd
- platform-name: amazon
- platform-name: oracle
- platform-name: arch

+ 1
- 0
test/integration/v3000-py3/inspec.yml Parādīt failu

@@ -17,6 +17,7 @@ supports:
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: openbsd
- platform-name: amazon
- platform-name: oracle
- platform-name: arch

+ 1
- 0
test/integration/v3001-py3/inspec.yml Parādīt failu

@@ -17,6 +17,7 @@ supports:
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: openbsd
- platform-name: amazon
- platform-name: oracle
- platform-name: arch

+ 1
- 0
test/integration/v3002-py3/inspec.yml Parādīt failu

@@ -17,6 +17,7 @@ supports:
- platform-name: opensuse
- platform-name: suse
- platform-name: freebsd
- platform-name: openbsd
- platform-name: amazon
- platform-name: oracle
- platform-name: arch

Notiek ielāde…
Atcelt
Saglabāt