diff --git a/ssf/defaults.yaml b/ssf/defaults.yaml index 6d312f36..03dcaf4b 100644 --- a/ssf/defaults.yaml +++ b/ssf/defaults.yaml @@ -64,8 +64,8 @@ ssf_node_anchors: upstream: 'upstream' commit: # yamllint disable rule:line-length rule:quoted-strings - title: "ci(vagrant): use '`'linked_clone'`' at all times (inc. CI) [skip ci]" - body: '* Automated using https://github.com/myii/ssf-formula/pull/441' + title: "test(system.rb): add support for '`'mac_os_x'`' [skip ci]" + body: '* Automated using https://github.com/myii/ssf-formula/pull/442' # yamllint enable rule:line-length rule:quoted-strings github: owner: 'saltstack-formulas' diff --git a/ssf/files/default/test/integration/share/inspec.yml b/ssf/files/default/test/integration/share/inspec.yml index ee200809..28a97b94 100644 --- a/ssf/files/default/test/integration/share/inspec.yml +++ b/ssf/files/default/test/integration/share/inspec.yml @@ -21,4 +21,5 @@ supports: - platform-name: gentoo - platform-name: almalinux - platform-name: rocky + - platform-name: mac_os_x - platform: windows diff --git a/ssf/files/default/test/integration/share/libraries/system.rb b/ssf/files/default/test/integration/share/libraries/system.rb index 64fe7ea7..0db9d0b1 100644 --- a/ssf/files/default/test/integration/share/libraries/system.rb +++ b/ssf/files/default/test/integration/share/libraries/system.rb @@ -57,6 +57,8 @@ def build_platform_release 'base-latest' when 'gentoo' "#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}" + when 'mac_os_x' + inspec.command('sw_vers -productVersion').stdout.to_s when 'opensuse' # rubocop:disable Style/NumericLiterals,Layout/LineLength inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]