Browse Source

fix(inspec): use the name `_mapdata` everywhere for coherency

tags/v1.3.1
Daniel Dehennin 4 years ago
parent
commit
14e843ec2b
15 changed files with 1 additions and 1 deletions
  1. +1
    -1
      test/integration/default/controls/_mapdata_spec.rb
  2. +0
    -0
      test/integration/default/files/_mapdata/amazonlinux-1.yaml
  3. +0
    -0
      test/integration/default/files/_mapdata/amazonlinux-2.yaml
  4. +0
    -0
      test/integration/default/files/_mapdata/arch-base-latest.yaml
  5. +0
    -0
      test/integration/default/files/_mapdata/centos-6.yaml
  6. +0
    -0
      test/integration/default/files/_mapdata/centos-7.yaml
  7. +0
    -0
      test/integration/default/files/_mapdata/centos-8.yaml
  8. +0
    -0
      test/integration/default/files/_mapdata/debian-10.yaml
  9. +0
    -0
      test/integration/default/files/_mapdata/debian-9.yaml
  10. +0
    -0
      test/integration/default/files/_mapdata/fedora-31.yaml
  11. +0
    -0
      test/integration/default/files/_mapdata/fedora-32.yaml
  12. +0
    -0
      test/integration/default/files/_mapdata/opensuse-15.yaml
  13. +0
    -0
      test/integration/default/files/_mapdata/ubuntu-16.yaml
  14. +0
    -0
      test/integration/default/files/_mapdata/ubuntu-18.yaml
  15. +0
    -0
      test/integration/default/files/_mapdata/ubuntu-20.yaml

+ 1
- 1
test/integration/default/controls/_mapdata_spec.rb View File

@@ -5,7 +5,7 @@ replacement = {
hostname: system.hostname
}

mapdata_file = "mapdata/#{system.platform[:finger].split('.').first}.yaml"
mapdata_file = "_mapdata/#{system.platform[:finger].split('.').first}.yaml"
mapdata_dump = inspec.profile.file(mapdata_file) % replacement

control '`map.jinja` YAML dump' do

test/integration/default/files/mapdata/amazonlinux-1.yaml → test/integration/default/files/_mapdata/amazonlinux-1.yaml View File


test/integration/default/files/mapdata/amazonlinux-2.yaml → test/integration/default/files/_mapdata/amazonlinux-2.yaml View File


test/integration/default/files/mapdata/arch-base-latest.yaml → test/integration/default/files/_mapdata/arch-base-latest.yaml View File


test/integration/default/files/mapdata/centos-6.yaml → test/integration/default/files/_mapdata/centos-6.yaml View File


test/integration/default/files/mapdata/centos-7.yaml → test/integration/default/files/_mapdata/centos-7.yaml View File


test/integration/default/files/mapdata/centos-8.yaml → test/integration/default/files/_mapdata/centos-8.yaml View File


test/integration/default/files/mapdata/debian-10.yaml → test/integration/default/files/_mapdata/debian-10.yaml View File


test/integration/default/files/mapdata/debian-9.yaml → test/integration/default/files/_mapdata/debian-9.yaml View File


test/integration/default/files/mapdata/fedora-31.yaml → test/integration/default/files/_mapdata/fedora-31.yaml View File


test/integration/default/files/mapdata/fedora-32.yaml → test/integration/default/files/_mapdata/fedora-32.yaml View File


test/integration/default/files/mapdata/opensuse-15.yaml → test/integration/default/files/_mapdata/opensuse-15.yaml View File


test/integration/default/files/mapdata/ubuntu-16.yaml → test/integration/default/files/_mapdata/ubuntu-16.yaml View File


test/integration/default/files/mapdata/ubuntu-18.yaml → test/integration/default/files/_mapdata/ubuntu-18.yaml View File


test/integration/default/files/mapdata/ubuntu-20.yaml → test/integration/default/files/_mapdata/ubuntu-20.yaml View File


Loading…
Cancel
Save