Sfoglia il codice sorgente

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

tags/v1.3.1
Daniel Dehennin 4 anni fa
parent
commit
14e843ec2b
15 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 Vedi 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 Vedi File


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


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


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


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


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


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


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


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


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


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


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


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


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


Loading…
Annulla
Salva