浏览代码

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

tags/v1.3.1
Daniel Dehennin 4 年前
父节点
当前提交
14e843ec2b
共有 15 个文件被更改,包括 1 次插入1 次删除
  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 查看文件

@@ -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 查看文件


test/integration/default/files/mapdata/amazonlinux-2.yaml → test/integration/default/files/_mapdata/amazonlinux-2.yaml 查看文件


test/integration/default/files/mapdata/arch-base-latest.yaml → test/integration/default/files/_mapdata/arch-base-latest.yaml 查看文件


test/integration/default/files/mapdata/centos-6.yaml → test/integration/default/files/_mapdata/centos-6.yaml 查看文件


test/integration/default/files/mapdata/centos-7.yaml → test/integration/default/files/_mapdata/centos-7.yaml 查看文件


test/integration/default/files/mapdata/centos-8.yaml → test/integration/default/files/_mapdata/centos-8.yaml 查看文件


test/integration/default/files/mapdata/debian-10.yaml → test/integration/default/files/_mapdata/debian-10.yaml 查看文件


test/integration/default/files/mapdata/debian-9.yaml → test/integration/default/files/_mapdata/debian-9.yaml 查看文件


test/integration/default/files/mapdata/fedora-31.yaml → test/integration/default/files/_mapdata/fedora-31.yaml 查看文件


test/integration/default/files/mapdata/fedora-32.yaml → test/integration/default/files/_mapdata/fedora-32.yaml 查看文件


test/integration/default/files/mapdata/opensuse-15.yaml → test/integration/default/files/_mapdata/opensuse-15.yaml 查看文件


test/integration/default/files/mapdata/ubuntu-16.yaml → test/integration/default/files/_mapdata/ubuntu-16.yaml 查看文件


test/integration/default/files/mapdata/ubuntu-18.yaml → test/integration/default/files/_mapdata/ubuntu-18.yaml 查看文件


test/integration/default/files/mapdata/ubuntu-20.yaml → test/integration/default/files/_mapdata/ubuntu-20.yaml 查看文件


正在加载...
取消
保存