beaker-hostgenerator 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -24
- data/HISTORY.md +150 -2
- data/MAINTAINERS +1 -0
- data/Rakefile +0 -17
- data/beaker-hostgenerator.gemspec +2 -3
- data/lib/beaker-hostgenerator/data.rb +18 -0
- data/lib/beaker-hostgenerator/version.rb +1 -1
- metadata +16 -472
- data/acceptance/config/nodes/vagrant-ubuntu-1404.yml +0 -8
- data/acceptance/tests/first.rb +0 -8
- data/spec/beaker-hostgenerator/abs-support_spec.rb +0 -14
- data/spec/beaker-hostgenerator/generator_spec.rb +0 -94
- data/spec/beaker-hostgenerator/parser_spec.rb +0 -146
- data/spec/helpers.rb +0 -109
- data/spec/spec_helper.rb +0 -10
- data/test/fixtures/generated/default/aix53-POWERa +0 -19
- data/test/fixtures/generated/default/aix61-POWERu +0 -20
- data/test/fixtures/generated/default/aix71-POWERl +0 -20
- data/test/fixtures/generated/default/arista4-32c +0 -21
- data/test/fixtures/generated/default/centos4-32d +0 -21
- data/test/fixtures/generated/default/centos4-64f +0 -21
- data/test/fixtures/generated/default/centos5-32m +0 -21
- data/test/fixtures/generated/default/centos5-64aulcdfm +0 -26
- data/test/fixtures/generated/default/centos6-32a +0 -20
- data/test/fixtures/generated/default/centos6-64u +0 -21
- data/test/fixtures/generated/default/centos7-64l +0 -21
- data/test/fixtures/generated/default/cisconx-64c +0 -24
- data/test/fixtures/generated/default/ciscoxr-64d +0 -21
- data/test/fixtures/generated/default/cumulus25-64f +0 -21
- data/test/fixtures/generated/default/debian6-32m +0 -21
- data/test/fixtures/generated/default/debian6-64aulcdfm +0 -26
- data/test/fixtures/generated/default/debian7-32a +0 -20
- data/test/fixtures/generated/default/debian7-64u +0 -21
- data/test/fixtures/generated/default/debian8-32l +0 -21
- data/test/fixtures/generated/default/debian8-64c +0 -21
- data/test/fixtures/generated/default/debian9-32d +0 -21
- data/test/fixtures/generated/default/debian9-64f +0 -21
- data/test/fixtures/generated/default/fedora14-32m +0 -21
- data/test/fixtures/generated/default/fedora19-32aulcdfm +0 -26
- data/test/fixtures/generated/default/fedora19-64a +0 -20
- data/test/fixtures/generated/default/fedora20-32u +0 -21
- data/test/fixtures/generated/default/fedora20-64l +0 -21
- data/test/fixtures/generated/default/fedora21-32c +0 -21
- data/test/fixtures/generated/default/fedora21-64d +0 -21
- data/test/fixtures/generated/default/fedora22-32f +0 -21
- data/test/fixtures/generated/default/fedora22-64m +0 -21
- data/test/fixtures/generated/default/fedora23-32aulcdfm +0 -26
- data/test/fixtures/generated/default/fedora23-64a +0 -20
- data/test/fixtures/generated/default/fedora24-32u +0 -21
- data/test/fixtures/generated/default/fedora24-64l +0 -21
- data/test/fixtures/generated/default/huaweios6-POWERc +0 -20
- data/test/fixtures/generated/default/opensuse11-32c +0 -21
- data/test/fixtures/generated/default/opensuse11-64d +0 -21
- data/test/fixtures/generated/default/oracle5-32f +0 -21
- data/test/fixtures/generated/default/oracle5-64m +0 -21
- data/test/fixtures/generated/default/oracle6-32aulcdfm +0 -26
- data/test/fixtures/generated/default/oracle6-64a +0 -20
- data/test/fixtures/generated/default/oracle7-64u +0 -21
- data/test/fixtures/generated/default/osx1010-64c +0 -21
- data/test/fixtures/generated/default/osx1011-64d +0 -21
- data/test/fixtures/generated/default/osx1012-64m +0 -21
- data/test/fixtures/generated/default/osx109-64l +0 -21
- data/test/fixtures/generated/default/redhat4-32f +0 -21
- data/test/fixtures/generated/default/redhat4-64m +0 -21
- data/test/fixtures/generated/default/redhat5-32aulcdfm +0 -26
- data/test/fixtures/generated/default/redhat5-64a +0 -20
- data/test/fixtures/generated/default/redhat6-32u +0 -21
- data/test/fixtures/generated/default/redhat6-64l +0 -21
- data/test/fixtures/generated/default/redhat6-S390Xc +0 -20
- data/test/fixtures/generated/default/redhat7-64d +0 -21
- data/test/fixtures/generated/default/redhat7-S390Xf +0 -20
- data/test/fixtures/generated/default/scientific5-32m +0 -21
- data/test/fixtures/generated/default/scientific5-64aulcdfm +0 -26
- data/test/fixtures/generated/default/scientific6-32a +0 -20
- data/test/fixtures/generated/default/scientific6-64u +0 -21
- data/test/fixtures/generated/default/scientific7-64l +0 -21
- data/test/fixtures/generated/default/sles10-32c +0 -21
- data/test/fixtures/generated/default/sles10-64d +0 -21
- data/test/fixtures/generated/default/sles11-32f +0 -21
- data/test/fixtures/generated/default/sles11-64m +0 -21
- data/test/fixtures/generated/default/sles11-S390Xaulcdfm +0 -25
- data/test/fixtures/generated/default/sles12-64a +0 -20
- data/test/fixtures/generated/default/sles12-S390Xu +0 -20
- data/test/fixtures/generated/default/solaris10-32l +0 -21
- data/test/fixtures/generated/default/solaris10-64c +0 -21
- data/test/fixtures/generated/default/solaris10-SPARCd +0 -20
- data/test/fixtures/generated/default/solaris11-32f +0 -21
- data/test/fixtures/generated/default/solaris11-64m +0 -21
- data/test/fixtures/generated/default/solaris11-SPARCaulcdfm +0 -25
- data/test/fixtures/generated/default/solaris112-32a +0 -20
- data/test/fixtures/generated/default/solaris112-64u +0 -21
- data/test/fixtures/generated/default/ubuntu1004-32l +0 -21
- data/test/fixtures/generated/default/ubuntu1004-64c +0 -21
- data/test/fixtures/generated/default/ubuntu1204-32d +0 -21
- data/test/fixtures/generated/default/ubuntu1204-64f +0 -21
- data/test/fixtures/generated/default/ubuntu1404-32m +0 -21
- data/test/fixtures/generated/default/ubuntu1404-64aulcdfm +0 -26
- data/test/fixtures/generated/default/ubuntu1504-32a +0 -20
- data/test/fixtures/generated/default/ubuntu1504-64u +0 -21
- data/test/fixtures/generated/default/ubuntu1510-32l +0 -21
- data/test/fixtures/generated/default/ubuntu1510-64c +0 -21
- data/test/fixtures/generated/default/ubuntu1604-32d +0 -21
- data/test/fixtures/generated/default/ubuntu1604-64f +0 -21
- data/test/fixtures/generated/default/windows10ent-32aulcdfm +0 -27
- data/test/fixtures/generated/default/windows10ent-64a +0 -21
- data/test/fixtures/generated/default/windows10pro-64u +0 -22
- data/test/fixtures/generated/default/windows2003-6432aulcdfm +0 -27
- data/test/fixtures/generated/default/windows2003-64m +0 -22
- data/test/fixtures/generated/default/windows2003r2-32a +0 -21
- data/test/fixtures/generated/default/windows2003r2-6432l +0 -22
- data/test/fixtures/generated/default/windows2003r2-64u +0 -22
- data/test/fixtures/generated/default/windows2008-6432d +0 -22
- data/test/fixtures/generated/default/windows2008-64c +0 -22
- data/test/fixtures/generated/default/windows2008r2-6432m +0 -22
- data/test/fixtures/generated/default/windows2008r2-64f +0 -22
- data/test/fixtures/generated/default/windows2012-6432a +0 -21
- data/test/fixtures/generated/default/windows2012-64aulcdfm +0 -27
- data/test/fixtures/generated/default/windows2012r2-6432l +0 -22
- data/test/fixtures/generated/default/windows2012r2-64u +0 -22
- data/test/fixtures/generated/default/windows2016-6432m +0 -22
- data/test/fixtures/generated/default/windows2016-64f +0 -22
- data/test/fixtures/generated/default/windows7-64c +0 -22
- data/test/fixtures/generated/default/windows8-64d +0 -22
- data/test/fixtures/generated/default/windows81-64f +0 -22
- data/test/fixtures/generated/default/windowsvista-64m +0 -22
- data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family/centos6-32a +0 -24
- data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family_no_upgrade/centos6-32a +0 -22
- data/test/fixtures/generated/environment_variable_tests/pe_version_and_pe_family_upgrade_only/centos6-32a +0 -22
- data/test/fixtures/generated/multiplatform/aix53-POWERa-windows10pro-64-aix53-POWERaulcdfm +0 -45
- data/test/fixtures/generated/multiplatform/aix61-POWERu-windows10ent-64-aix61-POWERm +0 -41
- data/test/fixtures/generated/multiplatform/aix71-POWERl-windows10ent-32-aix71-POWERf +0 -41
- data/test/fixtures/generated/multiplatform/arista4-32c-windowsvista-64-arista4-32d +0 -43
- data/test/fixtures/generated/multiplatform/centos4-32d-windows81-64-centos4-32c +0 -43
- data/test/fixtures/generated/multiplatform/centos4-64f-windows8-64-centos4-64l +0 -43
- data/test/fixtures/generated/multiplatform/centos5-32m-windows7-64-centos5-32u +0 -43
- data/test/fixtures/generated/multiplatform/centos5-64aulcdfm-windows2012r2-6432-centos5-64a +0 -47
- data/test/fixtures/generated/multiplatform/centos5-64aulcdfm-windows2016-6432-centos5-64a +0 -47
- data/test/fixtures/generated/multiplatform/centos6-32a-windows2012r2-64-centos6-32aulcdfm +0 -47
- data/test/fixtures/generated/multiplatform/centos6-32a-windows2016-64-centos6-32aulcdfm +0 -47
- data/test/fixtures/generated/multiplatform/centos6-64u-windows2012-6432-centos6-64m +0 -43
- data/test/fixtures/generated/multiplatform/centos7-64l-windows2012-64-centos7-64f +0 -43
- data/test/fixtures/generated/multiplatform/cisconx-64c-windows2008r2-6432-cisconx-64d +0 -49
- data/test/fixtures/generated/multiplatform/ciscoxr-64d-windows2008r2-64-ciscoxr-64c +0 -43
- data/test/fixtures/generated/multiplatform/cumulus25-64f-windows2008-6432-cumulus25-64l +0 -43
- data/test/fixtures/generated/multiplatform/debian6-32m-windows2008-64-debian6-32u +0 -43
- data/test/fixtures/generated/multiplatform/debian6-64aulcdfm-windows2003r2-6432-debian6-64a +0 -47
- data/test/fixtures/generated/multiplatform/debian7-32a-windows2003r2-64-debian7-32aulcdfm +0 -47
- data/test/fixtures/generated/multiplatform/debian7-64u-windows2003r2-32-debian7-64m +0 -43
- data/test/fixtures/generated/multiplatform/debian8-32l-windows2003-6432-debian8-32f +0 -43
- data/test/fixtures/generated/multiplatform/debian8-64c-windows2003-64-debian8-64d +0 -43
- data/test/fixtures/generated/multiplatform/debian9-32d-ubuntu1604-64-debian9-32c +0 -42
- data/test/fixtures/generated/multiplatform/debian9-64f-ubuntu1604-32-debian9-64l +0 -42
- data/test/fixtures/generated/multiplatform/fedora14-32m-ubuntu1510-64-fedora14-32u +0 -42
- data/test/fixtures/generated/multiplatform/fedora19-32aulcdfm-ubuntu1510-32-fedora19-32a +0 -46
- data/test/fixtures/generated/multiplatform/fedora19-64a-ubuntu1504-64-fedora19-64aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/fedora20-32u-ubuntu1504-32-fedora20-32m +0 -42
- data/test/fixtures/generated/multiplatform/fedora20-64l-ubuntu1404-64-fedora20-64f +0 -42
- data/test/fixtures/generated/multiplatform/fedora21-32c-ubuntu1404-32-fedora21-32d +0 -42
- data/test/fixtures/generated/multiplatform/fedora21-64d-ubuntu1204-64-fedora21-64c +0 -42
- data/test/fixtures/generated/multiplatform/fedora22-32f-ubuntu1204-32-fedora22-32l +0 -42
- data/test/fixtures/generated/multiplatform/fedora22-64m-ubuntu1004-64-fedora22-64u +0 -42
- data/test/fixtures/generated/multiplatform/fedora23-32aulcdfm-ubuntu1004-32-fedora23-32a +0 -46
- data/test/fixtures/generated/multiplatform/fedora23-64a-solaris112-64-fedora23-64aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/fedora24-32u-solaris112-32-fedora24-32m +0 -42
- data/test/fixtures/generated/multiplatform/fedora24-64l-solaris11-SPARC-fedora24-64f +0 -41
- data/test/fixtures/generated/multiplatform/huaweios6-POWERc-solaris11-64-huaweios6-POWERd +0 -40
- data/test/fixtures/generated/multiplatform/opensuse11-32c-solaris11-64-opensuse11-32d +0 -42
- data/test/fixtures/generated/multiplatform/opensuse11-64d-solaris11-32-opensuse11-64c +0 -42
- data/test/fixtures/generated/multiplatform/oracle5-32f-solaris10-SPARC-oracle5-32l +0 -41
- data/test/fixtures/generated/multiplatform/oracle5-64m-solaris10-64-oracle5-64u +0 -42
- data/test/fixtures/generated/multiplatform/oracle6-32aulcdfm-solaris10-32-oracle6-32a +0 -46
- data/test/fixtures/generated/multiplatform/oracle6-64a-sles12-S390X-oracle6-64aulcdfm +0 -45
- data/test/fixtures/generated/multiplatform/oracle7-64u-sles12-64-oracle7-64m +0 -42
- data/test/fixtures/generated/multiplatform/osx1010-64c-sles11-64-osx1010-64d +0 -42
- data/test/fixtures/generated/multiplatform/osx1011-64d-sles11-32-osx1011-64c +0 -42
- data/test/fixtures/generated/multiplatform/osx1012-64m-sles10-32-osx1012-64u +0 -42
- data/test/fixtures/generated/multiplatform/osx1012-64m-sles11-32-osx1012-64u +0 -42
- data/test/fixtures/generated/multiplatform/osx109-64l-sles11-S390X-osx109-64f +0 -41
- data/test/fixtures/generated/multiplatform/redhat4-32f-sles10-64-redhat4-32l +0 -42
- data/test/fixtures/generated/multiplatform/redhat4-64m-sles10-32-redhat4-64u +0 -42
- data/test/fixtures/generated/multiplatform/redhat5-32aulcdfm-scientific7-64-redhat5-32a +0 -46
- data/test/fixtures/generated/multiplatform/redhat5-64a-scientific6-64-redhat5-64aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/redhat6-32u-scientific6-32-redhat6-32m +0 -42
- data/test/fixtures/generated/multiplatform/redhat6-64l-scientific5-64-redhat6-64f +0 -42
- data/test/fixtures/generated/multiplatform/redhat6-S390Xc-scientific5-32-redhat6-S390Xd +0 -40
- data/test/fixtures/generated/multiplatform/redhat7-64d-redhat7-S390X-redhat7-64c +0 -41
- data/test/fixtures/generated/multiplatform/redhat7-S390Xf-redhat7-64-redhat7-S390Xl +0 -40
- data/test/fixtures/generated/multiplatform/scientific5-32m-redhat6-S390X-scientific5-32u +0 -41
- data/test/fixtures/generated/multiplatform/scientific5-64aulcdfm-redhat6-64-scientific5-64a +0 -46
- data/test/fixtures/generated/multiplatform/scientific6-32a-redhat6-32-scientific6-32aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/scientific6-64u-redhat5-64-scientific6-64m +0 -42
- data/test/fixtures/generated/multiplatform/scientific7-64l-redhat5-32-scientific7-64f +0 -42
- data/test/fixtures/generated/multiplatform/sles10-32c-redhat4-64-sles10-32d +0 -42
- data/test/fixtures/generated/multiplatform/sles10-32f-osx1012-64-sles10-32l +0 -42
- data/test/fixtures/generated/multiplatform/sles10-64d-redhat4-32-sles10-64c +0 -42
- data/test/fixtures/generated/multiplatform/sles11-32aulcdfm-osx1012-64-sles11-32a +0 -46
- data/test/fixtures/generated/multiplatform/sles11-32f-osx1011-64-sles11-32l +0 -42
- data/test/fixtures/generated/multiplatform/sles11-64m-osx1010-64-sles11-64u +0 -42
- data/test/fixtures/generated/multiplatform/sles11-S390Xaulcdfm-osx109-64-sles11-S390Xa +0 -44
- data/test/fixtures/generated/multiplatform/sles12-64a-oracle7-64-sles12-64aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/sles12-S390Xu-oracle6-64-sles12-S390Xm +0 -40
- data/test/fixtures/generated/multiplatform/solaris10-32l-oracle6-32-solaris10-32f +0 -42
- data/test/fixtures/generated/multiplatform/solaris10-64c-oracle5-64-solaris10-64d +0 -42
- data/test/fixtures/generated/multiplatform/solaris10-SPARCd-oracle5-32-solaris10-SPARCc +0 -40
- data/test/fixtures/generated/multiplatform/solaris11-32f-opensuse11-64-solaris11-32l +0 -42
- data/test/fixtures/generated/multiplatform/solaris11-64aulcdfm-huaweios6-POWER-solaris11-64a +0 -45
- data/test/fixtures/generated/multiplatform/solaris11-64m-opensuse11-32-solaris11-64u +0 -42
- data/test/fixtures/generated/multiplatform/solaris11-SPARCaulcdfm-fedora24-64-solaris11-SPARCa +0 -44
- data/test/fixtures/generated/multiplatform/solaris112-32a-fedora24-32-solaris112-32aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/solaris112-64u-fedora23-64-solaris112-64m +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1004-32l-fedora23-32-ubuntu1004-32f +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1004-64c-fedora22-64-ubuntu1004-64d +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1204-32d-fedora22-32-ubuntu1204-32c +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1204-64f-fedora21-64-ubuntu1204-64l +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1404-32m-fedora21-32-ubuntu1404-32u +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1404-64aulcdfm-fedora20-64-ubuntu1404-64a +0 -46
- data/test/fixtures/generated/multiplatform/ubuntu1504-32a-fedora20-32-ubuntu1504-32aulcdfm +0 -46
- data/test/fixtures/generated/multiplatform/ubuntu1504-64u-fedora19-64-ubuntu1504-64m +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1510-32l-fedora19-32-ubuntu1510-32f +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1510-64c-fedora14-32-ubuntu1510-64d +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1604-32d-debian9-64-ubuntu1604-32c +0 -42
- data/test/fixtures/generated/multiplatform/ubuntu1604-64f-debian9-32-ubuntu1604-64l +0 -42
- data/test/fixtures/generated/multiplatform/windows10ent-32aulcdfm-aix71-POWER-windows10ent-32a +0 -47
- data/test/fixtures/generated/multiplatform/windows10ent-64a-aix61-POWER-windows10ent-64aulcdfm +0 -47
- data/test/fixtures/generated/multiplatform/windows10pro-64u-aix53-POWER-windows10pro-64m +0 -43
- data/test/fixtures/generated/multiplatform/windows2003-6432aulcdfm-debian8-32-windows2003-6432a +0 -48
- data/test/fixtures/generated/multiplatform/windows2003-64m-debian8-64-windows2003-64u +0 -44
- data/test/fixtures/generated/multiplatform/windows2003r2-32a-debian7-64-windows2003r2-32aulcdfm +0 -48
- data/test/fixtures/generated/multiplatform/windows2003r2-6432l-debian6-64-windows2003r2-6432f +0 -44
- data/test/fixtures/generated/multiplatform/windows2003r2-64u-debian7-32-windows2003r2-64m +0 -44
- data/test/fixtures/generated/multiplatform/windows2008-6432d-cumulus25-64-windows2008-6432c +0 -44
- data/test/fixtures/generated/multiplatform/windows2008-64c-debian6-32-windows2008-64d +0 -44
- data/test/fixtures/generated/multiplatform/windows2008r2-6432m-cisconx-64-windows2008r2-6432u +0 -47
- data/test/fixtures/generated/multiplatform/windows2008r2-64f-ciscoxr-64-windows2008r2-64l +0 -44
- data/test/fixtures/generated/multiplatform/windows2012-6432a-centos6-64-windows2012-6432aulcdfm +0 -48
- data/test/fixtures/generated/multiplatform/windows2012-64aulcdfm-centos7-64-windows2012-64a +0 -48
- data/test/fixtures/generated/multiplatform/windows2012r2-6432l-centos5-64-windows2012r2-6432f +0 -44
- data/test/fixtures/generated/multiplatform/windows2012r2-64u-centos6-32-windows2012r2-64m +0 -44
- data/test/fixtures/generated/multiplatform/windows2016-6432m-centos5-64-windows2016-6432u +0 -44
- data/test/fixtures/generated/multiplatform/windows2016-64f-centos6-32-windows2016-64l +0 -44
- data/test/fixtures/generated/multiplatform/windows7-64c-centos5-32-windows7-64d +0 -44
- data/test/fixtures/generated/multiplatform/windows8-64d-centos4-64-windows8-64c +0 -44
- data/test/fixtures/generated/multiplatform/windows81-64f-centos4-32-windows81-64l +0 -44
- data/test/fixtures/generated/multiplatform/windowsvista-64m-arista4-32-windowsvista-64u +0 -44
- data/test/fixtures/generated/osinfo-version-0/aix53-POWERa +0 -19
- data/test/fixtures/generated/osinfo-version-0/aix61-POWERu +0 -20
- data/test/fixtures/generated/osinfo-version-0/aix71-POWERl +0 -20
- data/test/fixtures/generated/osinfo-version-0/arista4-32c +0 -21
- data/test/fixtures/generated/osinfo-version-0/centos4-32d +0 -21
- data/test/fixtures/generated/osinfo-version-0/centos4-64f +0 -21
- data/test/fixtures/generated/osinfo-version-0/centos5-32m +0 -21
- data/test/fixtures/generated/osinfo-version-0/centos5-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/centos6-32a +0 -20
- data/test/fixtures/generated/osinfo-version-0/centos6-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/centos7-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/cisconx-64c +0 -24
- data/test/fixtures/generated/osinfo-version-0/ciscoxr-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/cumulus25-64f +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian6-32m +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian6-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/debian7-32a +0 -20
- data/test/fixtures/generated/osinfo-version-0/debian7-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian8-32l +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian8-64c +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian9-32d +0 -21
- data/test/fixtures/generated/osinfo-version-0/debian9-64f +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora14-32m +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora19-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/fedora19-64a +0 -20
- data/test/fixtures/generated/osinfo-version-0/fedora20-32u +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora20-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora21-32c +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora21-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora22-32f +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora22-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora23-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/fedora23-64a +0 -20
- data/test/fixtures/generated/osinfo-version-0/fedora24-32u +0 -21
- data/test/fixtures/generated/osinfo-version-0/fedora24-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/huaweios6-POWERc +0 -20
- data/test/fixtures/generated/osinfo-version-0/opensuse11-32c +0 -21
- data/test/fixtures/generated/osinfo-version-0/opensuse11-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/oracle5-32f +0 -21
- data/test/fixtures/generated/osinfo-version-0/oracle5-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/oracle6-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/oracle6-64a +0 -20
- data/test/fixtures/generated/osinfo-version-0/oracle7-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/osx1010-64c +0 -21
- data/test/fixtures/generated/osinfo-version-0/osx1011-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/osx1012-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/osx109-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat4-32f +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat4-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat5-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/redhat5-64a +0 -20
- data/test/fixtures/generated/osinfo-version-0/redhat6-32u +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat6-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat6-S390Xc +0 -20
- data/test/fixtures/generated/osinfo-version-0/redhat7-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/redhat7-S390Xf +0 -20
- data/test/fixtures/generated/osinfo-version-0/scientific5-32m +0 -21
- data/test/fixtures/generated/osinfo-version-0/scientific5-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/scientific6-32a +0 -20
- data/test/fixtures/generated/osinfo-version-0/scientific6-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/scientific7-64l +0 -21
- data/test/fixtures/generated/osinfo-version-0/sles10-32c +0 -21
- data/test/fixtures/generated/osinfo-version-0/sles10-64d +0 -21
- data/test/fixtures/generated/osinfo-version-0/sles11-32f +0 -21
- data/test/fixtures/generated/osinfo-version-0/sles11-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/sles11-S390Xaulcdfm +0 -25
- data/test/fixtures/generated/osinfo-version-0/sles12-64a +0 -20
- data/test/fixtures/generated/osinfo-version-0/sles12-S390Xu +0 -20
- data/test/fixtures/generated/osinfo-version-0/solaris10-32l +0 -21
- data/test/fixtures/generated/osinfo-version-0/solaris10-64c +0 -21
- data/test/fixtures/generated/osinfo-version-0/solaris10-SPARCd +0 -20
- data/test/fixtures/generated/osinfo-version-0/solaris11-32f +0 -21
- data/test/fixtures/generated/osinfo-version-0/solaris11-64m +0 -21
- data/test/fixtures/generated/osinfo-version-0/solaris11-SPARCaulcdfm +0 -25
- data/test/fixtures/generated/osinfo-version-0/solaris112-32a +0 -20
- data/test/fixtures/generated/osinfo-version-0/solaris112-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1004-32l +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1004-64c +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1204-32d +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1204-64f +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1404-32m +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1404-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-0/ubuntu1504-32a +0 -20
- data/test/fixtures/generated/osinfo-version-0/ubuntu1504-64u +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1510-32l +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1510-64c +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1604-32d +0 -21
- data/test/fixtures/generated/osinfo-version-0/ubuntu1604-64f +0 -21
- data/test/fixtures/generated/osinfo-version-0/windows10ent-32aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-0/windows10ent-64a +0 -21
- data/test/fixtures/generated/osinfo-version-0/windows10pro-64u +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2003-6432aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-0/windows2003-64m +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2003r2-32a +0 -21
- data/test/fixtures/generated/osinfo-version-0/windows2003r2-6432l +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2003r2-64u +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2008-6432d +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2008-64c +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2008r2-6432m +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2008r2-64f +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2012-6432a +0 -21
- data/test/fixtures/generated/osinfo-version-0/windows2012-64aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-0/windows2012r2-6432l +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2012r2-64u +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2016-6432m +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows2016-64f +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows7-64c +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows8-64d +0 -22
- data/test/fixtures/generated/osinfo-version-0/windows81-64f +0 -22
- data/test/fixtures/generated/osinfo-version-0/windowsvista-64m +0 -22
- data/test/fixtures/generated/osinfo-version-1/aix53-POWERa +0 -19
- data/test/fixtures/generated/osinfo-version-1/aix61-POWERu +0 -20
- data/test/fixtures/generated/osinfo-version-1/aix71-POWERl +0 -20
- data/test/fixtures/generated/osinfo-version-1/arista4-32c +0 -21
- data/test/fixtures/generated/osinfo-version-1/centos4-32d +0 -21
- data/test/fixtures/generated/osinfo-version-1/centos4-64f +0 -21
- data/test/fixtures/generated/osinfo-version-1/centos5-32m +0 -21
- data/test/fixtures/generated/osinfo-version-1/centos5-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/centos6-32a +0 -20
- data/test/fixtures/generated/osinfo-version-1/centos6-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/centos7-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/cisconx-64c +0 -24
- data/test/fixtures/generated/osinfo-version-1/ciscoxr-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/cumulus25-64f +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian6-32m +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian6-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/debian7-32a +0 -20
- data/test/fixtures/generated/osinfo-version-1/debian7-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian8-32l +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian8-64c +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian9-32d +0 -21
- data/test/fixtures/generated/osinfo-version-1/debian9-64f +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora14-32m +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora19-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/fedora19-64a +0 -20
- data/test/fixtures/generated/osinfo-version-1/fedora20-32u +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora20-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora21-32c +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora21-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora22-32f +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora22-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora23-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/fedora23-64a +0 -20
- data/test/fixtures/generated/osinfo-version-1/fedora24-32u +0 -21
- data/test/fixtures/generated/osinfo-version-1/fedora24-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/huaweios6-POWERc +0 -20
- data/test/fixtures/generated/osinfo-version-1/opensuse11-32c +0 -21
- data/test/fixtures/generated/osinfo-version-1/opensuse11-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/oracle5-32f +0 -21
- data/test/fixtures/generated/osinfo-version-1/oracle5-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/oracle6-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/oracle6-64a +0 -20
- data/test/fixtures/generated/osinfo-version-1/oracle7-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/osx1010-64c +0 -21
- data/test/fixtures/generated/osinfo-version-1/osx1011-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/osx1012-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/osx109-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat4-32f +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat4-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat5-32aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/redhat5-64a +0 -20
- data/test/fixtures/generated/osinfo-version-1/redhat6-32u +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat6-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat6-S390Xc +0 -20
- data/test/fixtures/generated/osinfo-version-1/redhat7-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/redhat7-S390Xf +0 -20
- data/test/fixtures/generated/osinfo-version-1/scientific5-32m +0 -21
- data/test/fixtures/generated/osinfo-version-1/scientific5-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/scientific6-32a +0 -20
- data/test/fixtures/generated/osinfo-version-1/scientific6-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/scientific7-64l +0 -21
- data/test/fixtures/generated/osinfo-version-1/sles10-32c +0 -21
- data/test/fixtures/generated/osinfo-version-1/sles10-64d +0 -21
- data/test/fixtures/generated/osinfo-version-1/sles11-32f +0 -21
- data/test/fixtures/generated/osinfo-version-1/sles11-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/sles11-S390Xaulcdfm +0 -25
- data/test/fixtures/generated/osinfo-version-1/sles12-64a +0 -20
- data/test/fixtures/generated/osinfo-version-1/sles12-S390Xu +0 -20
- data/test/fixtures/generated/osinfo-version-1/solaris10-32l +0 -21
- data/test/fixtures/generated/osinfo-version-1/solaris10-64c +0 -21
- data/test/fixtures/generated/osinfo-version-1/solaris10-SPARCd +0 -20
- data/test/fixtures/generated/osinfo-version-1/solaris11-32f +0 -21
- data/test/fixtures/generated/osinfo-version-1/solaris11-64m +0 -21
- data/test/fixtures/generated/osinfo-version-1/solaris11-SPARCaulcdfm +0 -25
- data/test/fixtures/generated/osinfo-version-1/solaris112-32a +0 -20
- data/test/fixtures/generated/osinfo-version-1/solaris112-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1004-32l +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1004-64c +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1204-32d +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1204-64f +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1404-32m +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1404-64aulcdfm +0 -26
- data/test/fixtures/generated/osinfo-version-1/ubuntu1504-32a +0 -20
- data/test/fixtures/generated/osinfo-version-1/ubuntu1504-64u +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1510-32l +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1510-64c +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1604-32d +0 -21
- data/test/fixtures/generated/osinfo-version-1/ubuntu1604-64f +0 -21
- data/test/fixtures/generated/osinfo-version-1/windows10ent-32aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-1/windows10ent-64a +0 -21
- data/test/fixtures/generated/osinfo-version-1/windows10pro-64u +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2003-6432aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-1/windows2003-64m +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2003r2-32a +0 -21
- data/test/fixtures/generated/osinfo-version-1/windows2003r2-6432l +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2003r2-64u +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2008-6432d +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2008-64c +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2008r2-6432m +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2008r2-64f +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2012-6432a +0 -21
- data/test/fixtures/generated/osinfo-version-1/windows2012-64aulcdfm +0 -27
- data/test/fixtures/generated/osinfo-version-1/windows2012r2-6432l +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2012r2-64u +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2016-6432m +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows2016-64f +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows7-64c +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows8-64d +0 -22
- data/test/fixtures/generated/osinfo-version-1/windows81-64f +0 -22
- data/test/fixtures/generated/osinfo-version-1/windowsvista-64m +0 -22
- data/test/fixtures/generated/pe_dir/centos6-64mdc +0 -23
- data/test/fixtures/generated/pe_upgrade_dir/centos6-64mdc +0 -23
- data/test/fixtures/generated/pe_upgrade_ver/centos6-64mdc +0 -23
- data/test/fixtures/generated/pe_ver/centos6-64mdc +0 -23
- data/test/fixtures/per-host-settings/arbitrary-hypervisor.yaml +0 -39
- data/test/fixtures/per-host-settings/arbitrary-settings.yaml +0 -57
- data/test/fixtures/per-host-settings/every-hypervisor.yaml +0 -41
- data/test/fixtures/per-host-settings/malformed-input.yaml +0 -5
- data/test/fixtures/per-host-settings/url-encoded.yaml +0 -44
- data/test/fixtures/per-host-settings/with-global-settings.yaml +0 -25
- data/test/test_cli.rb +0 -15
- data/test/test_generator.rb +0 -27
- data/test/test_stdout.rb +0 -21
- data/test/util/generator_helpers.rb +0 -158
data/acceptance/tests/first.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
|
2
|
-
# Acceptance level testing goes into files in the tests directory like this one,
|
3
|
-
# Each file corresponding to a new test made up of individual testing steps
|
4
|
-
test_name "Template Acceptance Test Example"
|
5
|
-
|
6
|
-
step "Fail fast!"
|
7
|
-
|
8
|
-
fail_test("There are no acceptance tests yet!")
|
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'beaker-hostgenerator/cli'
|
2
|
-
require 'json'
|
3
|
-
|
4
|
-
module BeakerHostGenerator
|
5
|
-
describe AbsSupport do
|
6
|
-
describe 'extract_templates' do
|
7
|
-
it 'Returns a JSON map with template counts' do
|
8
|
-
input = ['--templates-only', 'centos6-64m-centos6-64m-redhat7-64m']
|
9
|
-
expect( JSON.load(BeakerHostGenerator::CLI.new(input).execute) ).
|
10
|
-
to eq({"centos-6-x86_64" => 2, "redhat-7-x86_64" => 1})
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
require 'find'
|
2
|
-
|
3
|
-
require 'spec_helper'
|
4
|
-
|
5
|
-
require 'beaker-hostgenerator'
|
6
|
-
require 'util/generator_helpers'
|
7
|
-
|
8
|
-
module BeakerHostGenerator
|
9
|
-
describe Generator do
|
10
|
-
let(:generator) { BeakerHostGenerator::Generator.new }
|
11
|
-
|
12
|
-
describe 'get_host_roles' do
|
13
|
-
it 'Expands default roles and merges in arbitrary roles' do
|
14
|
-
{
|
15
|
-
{
|
16
|
-
"roles" => "aulcdfm",
|
17
|
-
"arbitrary_roles" => [],
|
18
|
-
} => [
|
19
|
-
'agent',
|
20
|
-
'ca',
|
21
|
-
'classifier',
|
22
|
-
'dashboard',
|
23
|
-
'database',
|
24
|
-
'frictionless',
|
25
|
-
'master',
|
26
|
-
],
|
27
|
-
{
|
28
|
-
"roles" => "a",
|
29
|
-
"arbitrary_roles" => ["meow","hello","compile_master"],
|
30
|
-
} => [
|
31
|
-
'agent',
|
32
|
-
'meow',
|
33
|
-
'hello',
|
34
|
-
'compile_master',
|
35
|
-
],
|
36
|
-
{
|
37
|
-
"roles" => "",
|
38
|
-
"arbitrary_roles" => ["compile_master"],
|
39
|
-
} => [
|
40
|
-
'compile_master'
|
41
|
-
],
|
42
|
-
{
|
43
|
-
"roles" => "",
|
44
|
-
"arbitrary_roles" => [],
|
45
|
-
} => [],
|
46
|
-
}.each do |node_info, roles|
|
47
|
-
expect( generator.get_host_roles(node_info) ).to eq( roles )
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
shared_examples "fixtures" do |fixture_hash|
|
53
|
-
arguments = fixture_hash["arguments_string"]
|
54
|
-
it "beaker-hostgenerator #{arguments}" do
|
55
|
-
arguments = arguments.split
|
56
|
-
STDERR.reopen("stderr.txt", "w")
|
57
|
-
fixture_hash['environment_variables'].each do |key, value|
|
58
|
-
ENV[key] = value
|
59
|
-
end
|
60
|
-
|
61
|
-
cli = BeakerHostGenerator::CLI.new(arguments)
|
62
|
-
if fixture_hash['expected_exception']
|
63
|
-
# Turn fully-qualified classname string into actual Class object.
|
64
|
-
# We have to manually descend into each Module that makes up the
|
65
|
-
# fully-qualified path to the error class.
|
66
|
-
qualified_classname = fixture_hash['expected_exception'].split('::')
|
67
|
-
expected_class = qualified_classname.reduce(Object) do |accum, e|
|
68
|
-
accum.const_get(e)
|
69
|
-
end
|
70
|
-
expect { cli.execute }.to raise_error(expected_class)
|
71
|
-
else
|
72
|
-
test_hash = YAML.load(cli.execute)
|
73
|
-
expect(test_hash).to eq(fixture_hash['expected_hash'])
|
74
|
-
end
|
75
|
-
|
76
|
-
fixture_hash['environment_variables'].each_key do |key|
|
77
|
-
ENV[key] = nil
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|
82
|
-
context "Fixtures" do
|
83
|
-
Find.find 'test/fixtures' do |f|
|
84
|
-
context "#{f}" do
|
85
|
-
if File.directory?(f)
|
86
|
-
next
|
87
|
-
end
|
88
|
-
include_examples "fixtures", YAML.load_file(f)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
end
|
@@ -1,146 +0,0 @@
|
|
1
|
-
require 'beaker-hostgenerator/parser'
|
2
|
-
|
3
|
-
module BeakerHostGenerator
|
4
|
-
describe Parser do
|
5
|
-
include BeakerHostGenerator::Parser
|
6
|
-
|
7
|
-
describe 'prepare' do
|
8
|
-
it 'Supports URL-encoded input' do
|
9
|
-
expect( prepare('centos6-64m%7Bfoo=bar-baz,this=that%7D-32a') ).
|
10
|
-
to eq('centos6-64m{foo=bar-baz,this=that}-32a')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
|
-
describe 'parse_node_info_token' do
|
15
|
-
|
16
|
-
it 'Raises InvalidNodeSpecError for invalid tokens.' do
|
17
|
-
expect { parse_node_info_token("64compile_master") }.
|
18
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
19
|
-
end
|
20
|
-
|
21
|
-
it 'Supports no roles in the spec.' do
|
22
|
-
expect( parse_node_info_token("64") ).
|
23
|
-
to eq({
|
24
|
-
"roles" => "",
|
25
|
-
"arbitrary_roles" => [],
|
26
|
-
"bits" => "64",
|
27
|
-
"host_settings" => {}
|
28
|
-
})
|
29
|
-
end
|
30
|
-
|
31
|
-
context 'When specifying architecture bits' do
|
32
|
-
|
33
|
-
it 'Supports uppercase alphanumeric architecture bits' do
|
34
|
-
expect( parse_node_info_token("SPARC") ).
|
35
|
-
to eq({
|
36
|
-
"roles" => "",
|
37
|
-
"arbitrary_roles" => [],
|
38
|
-
"bits" => "SPARC",
|
39
|
-
"host_settings" => {}
|
40
|
-
})
|
41
|
-
|
42
|
-
expect( parse_node_info_token("POWER6") ).
|
43
|
-
to eq({
|
44
|
-
"roles" => "",
|
45
|
-
"arbitrary_roles" => [],
|
46
|
-
"bits" => "POWER6",
|
47
|
-
"host_settings" => {}
|
48
|
-
})
|
49
|
-
|
50
|
-
expect( parse_node_info_token("S390X") ).
|
51
|
-
to eq({
|
52
|
-
"roles" => "",
|
53
|
-
"arbitrary_roles" => [],
|
54
|
-
"bits" => "S390X",
|
55
|
-
"host_settings" => {}
|
56
|
-
})
|
57
|
-
|
58
|
-
end
|
59
|
-
|
60
|
-
it 'Trailing lowercase characters are parsed as roles' do
|
61
|
-
expect( parse_node_info_token("S390Xm") ).
|
62
|
-
to eq({
|
63
|
-
"roles" => "m",
|
64
|
-
"arbitrary_roles" => [],
|
65
|
-
"bits" => "S390X",
|
66
|
-
"host_settings" => {}
|
67
|
-
})
|
68
|
-
|
69
|
-
expect( parse_node_info_token("S390Xcustom.m") ).
|
70
|
-
to eq({
|
71
|
-
"roles" => "m",
|
72
|
-
"arbitrary_roles" => ["custom"],
|
73
|
-
"bits" => "S390X",
|
74
|
-
"host_settings" => {}
|
75
|
-
})
|
76
|
-
end
|
77
|
-
|
78
|
-
it 'Rejects lowercase characters that are not at the end' do
|
79
|
-
expect { parse_node_info_token("AbC3") }.
|
80
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
81
|
-
|
82
|
-
expect { parse_node_info_token("aBC3") }.
|
83
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
it 'Supports the use of arbitrary roles.' do
|
88
|
-
expect( parse_node_info_token("64compile_master,ca,blah.mad") ).
|
89
|
-
to eq({
|
90
|
-
"roles" => "mad",
|
91
|
-
"arbitrary_roles" => ["compile_master", "ca", "blah"],
|
92
|
-
"bits" => "64",
|
93
|
-
"host_settings" => {}
|
94
|
-
})
|
95
|
-
end
|
96
|
-
|
97
|
-
context 'When using arbitrary roles' do
|
98
|
-
|
99
|
-
it 'Fails without a role-type delimiter (a period)' do
|
100
|
-
expect { parse_node_info_token("64compile_master,ca,blah") }.
|
101
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
102
|
-
end
|
103
|
-
|
104
|
-
it 'It supports no static roles.' do
|
105
|
-
expect( parse_node_info_token("64compile_master,ca,blah.") ).
|
106
|
-
to eq({
|
107
|
-
"roles" => "",
|
108
|
-
"arbitrary_roles" => ["compile_master", "ca", "blah"],
|
109
|
-
"bits" => "64",
|
110
|
-
"host_settings" => {}
|
111
|
-
})
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
context 'When using arbitrary host settings' do
|
116
|
-
it 'Supports arbitrary whitespace in values' do
|
117
|
-
expect( parse_node_info_token("64{k1=value 1,k2=v2,k3= v3 }") ).
|
118
|
-
to eq({
|
119
|
-
"roles" => "",
|
120
|
-
"arbitrary_roles" => [],
|
121
|
-
"bits" => "64",
|
122
|
-
"host_settings" => {
|
123
|
-
"k1" => "value 1",
|
124
|
-
"k2" => "v2",
|
125
|
-
"k3" => " v3 "
|
126
|
-
}
|
127
|
-
})
|
128
|
-
end
|
129
|
-
|
130
|
-
it 'Raises InvalidNodeSpecError for malformed key-value pairs' do
|
131
|
-
expect { parse_node_info_token("64{foo=bar=baz}") }.
|
132
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
133
|
-
|
134
|
-
expect { parse_node_info_token("64{foo=}") }.
|
135
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
136
|
-
|
137
|
-
expect { parse_node_info_token("64{=bar}") }.
|
138
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
139
|
-
|
140
|
-
expect { parse_node_info_token("64{=}") }.
|
141
|
-
to raise_error(BeakerHostGenerator::Exceptions::InvalidNodeSpecError)
|
142
|
-
end
|
143
|
-
end
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
data/spec/helpers.rb
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
module TestFileHelpers
|
2
|
-
def create_files file_array
|
3
|
-
file_array.each do |f|
|
4
|
-
FileUtils.mkdir_p File.dirname(f)
|
5
|
-
FileUtils.touch f
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
def fog_file_contents
|
10
|
-
{ :default => { :aws_access_key_id => "IMANACCESSKEY",
|
11
|
-
:aws_secret_access_key => "supersekritkey",
|
12
|
-
:aix_hypervisor_server => "aix_hypervisor.labs.net",
|
13
|
-
:aix_hypervisor_username => "aixer",
|
14
|
-
:aix_hypervisor_keyfile => "/Users/user/.ssh/id_rsa-acceptance",
|
15
|
-
:solaris_hypervisor_server => "solaris_hypervisor.labs.net",
|
16
|
-
:solaris_hypervisor_username => "harness",
|
17
|
-
:solaris_hypervisor_keyfile => "/Users/user/.ssh/id_rsa-old.private",
|
18
|
-
:solaris_hypervisor_vmpath => "rpoooool/zs",
|
19
|
-
:solaris_hypervisor_snappaths => ["rpoooool/USER/z0"],
|
20
|
-
:vsphere_server => "vsphere.labs.net",
|
21
|
-
:vsphere_username => "vsphere@labs.com",
|
22
|
-
:vsphere_password => "supersekritpassword"} }
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
module HostHelpers
|
28
|
-
HOST_DEFAULTS = { :platform => 'unix',
|
29
|
-
:snapshot => 'pe',
|
30
|
-
:box => 'box_name',
|
31
|
-
:roles => ['agent'],
|
32
|
-
:snapshot => 'snap',
|
33
|
-
:ip => 'default.ip.address',
|
34
|
-
:box => 'default_box_name',
|
35
|
-
:box_url => 'http://default.box.url',
|
36
|
-
}
|
37
|
-
|
38
|
-
HOST_NAME = "vm%d"
|
39
|
-
HOST_SNAPSHOT = "snapshot%d"
|
40
|
-
HOST_IP = "ip.address.for.%s"
|
41
|
-
HOST_BOX = "%s_of_my_box"
|
42
|
-
HOST_BOX_URL = "http://address.for.my.box.%s"
|
43
|
-
HOST_TEMPLATE = "%s_has_a_template"
|
44
|
-
|
45
|
-
def logger
|
46
|
-
double( 'logger' ).as_null_object
|
47
|
-
end
|
48
|
-
|
49
|
-
def make_opts
|
50
|
-
opts = StringifyHash.new
|
51
|
-
opts.merge( { :logger => logger,
|
52
|
-
:host_config => 'sample.config',
|
53
|
-
:type => nil,
|
54
|
-
:pooling_api => 'http://vcloud.delivery.puppetlabs.net/',
|
55
|
-
:datastore => 'instance0',
|
56
|
-
:folder => 'Delivery/Quality Assurance/Staging/Dynamic',
|
57
|
-
:resourcepool => 'delivery/Quality Assurance/Staging/Dynamic',
|
58
|
-
:gce_project => 'beaker-compute',
|
59
|
-
:gce_keyfile => '/path/to/keyfile.p12',
|
60
|
-
:gce_password => 'notasecret',
|
61
|
-
:gce_email => '12345678910@developer.gserviceaccount.com' } )
|
62
|
-
end
|
63
|
-
|
64
|
-
def generate_result (name, opts )
|
65
|
-
result = double( 'result' )
|
66
|
-
stdout = opts.has_key?(:stdout) ? opts[:stdout] : name
|
67
|
-
stderr = opts.has_key?(:stderr) ? opts[:stderr] : name
|
68
|
-
exit_code = opts.has_key?(:exit_code) ? opts[:exit_code] : 0
|
69
|
-
exit_code = [exit_code].flatten
|
70
|
-
allow( result ).to receive( :stdout ).and_return( stdout )
|
71
|
-
allow( result ).to receive( :stderr ).and_return( stderr )
|
72
|
-
allow( result ).to receive( :exit_code ).and_return( *exit_code )
|
73
|
-
result
|
74
|
-
end
|
75
|
-
|
76
|
-
def make_host_opts name, opts
|
77
|
-
make_opts.merge( { 'HOSTS' => { name => opts } } ).merge( opts )
|
78
|
-
end
|
79
|
-
|
80
|
-
def make_host name, host_hash
|
81
|
-
host_hash = StringifyHash.new.merge(HOST_DEFAULTS.merge(host_hash))
|
82
|
-
|
83
|
-
host = make_opts.merge(host_hash)
|
84
|
-
|
85
|
-
allow(host).to receive( :name ).and_return( name )
|
86
|
-
allow(host).to receive( :to_s ).and_return( name )
|
87
|
-
allow(host).to receive( :exec ).and_return( generate_result( name, host_hash ) )
|
88
|
-
host
|
89
|
-
end
|
90
|
-
|
91
|
-
def make_hosts preset_opts = {}, amt = 3
|
92
|
-
hosts = []
|
93
|
-
(1..amt).each do |num|
|
94
|
-
name = HOST_NAME % num
|
95
|
-
opts = { :snapshot => HOST_SNAPSHOT % num,
|
96
|
-
:ip => HOST_IP % name,
|
97
|
-
:template => HOST_TEMPLATE % name,
|
98
|
-
:box => HOST_BOX % name,
|
99
|
-
:box_url => HOST_BOX_URL % name }.merge( preset_opts )
|
100
|
-
hosts << make_host(name, opts)
|
101
|
-
end
|
102
|
-
hosts
|
103
|
-
end
|
104
|
-
|
105
|
-
def make_instance instance_data = {}
|
106
|
-
OpenStruct.new instance_data
|
107
|
-
end
|
108
|
-
|
109
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
arguments_string: aix53-POWERa
|
3
|
-
environment_variables: {}
|
4
|
-
expected_hash:
|
5
|
-
HOSTS:
|
6
|
-
aix53-POWER-1:
|
7
|
-
pe_dir:
|
8
|
-
pe_ver:
|
9
|
-
pe_upgrade_dir:
|
10
|
-
pe_upgrade_ver:
|
11
|
-
hypervisor: vmpooler
|
12
|
-
platform: aix-5.3-power
|
13
|
-
roles:
|
14
|
-
- agent
|
15
|
-
CONFIG:
|
16
|
-
nfs_server: none
|
17
|
-
consoleport: 443
|
18
|
-
pooling_api: http://vmpooler.delivery.puppetlabs.net/
|
19
|
-
expected_exception:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
arguments_string: aix61-POWERu
|
3
|
-
environment_variables: {}
|
4
|
-
expected_hash:
|
5
|
-
HOSTS:
|
6
|
-
aix61-POWER-1:
|
7
|
-
pe_dir:
|
8
|
-
pe_ver:
|
9
|
-
pe_upgrade_dir:
|
10
|
-
pe_upgrade_ver:
|
11
|
-
hypervisor: vmpooler
|
12
|
-
platform: aix-6.1-power
|
13
|
-
roles:
|
14
|
-
- agent
|
15
|
-
- ca
|
16
|
-
CONFIG:
|
17
|
-
nfs_server: none
|
18
|
-
consoleport: 443
|
19
|
-
pooling_api: http://vmpooler.delivery.puppetlabs.net/
|
20
|
-
expected_exception:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
---
|
2
|
-
arguments_string: aix71-POWERl
|
3
|
-
environment_variables: {}
|
4
|
-
expected_hash:
|
5
|
-
HOSTS:
|
6
|
-
aix71-POWER-1:
|
7
|
-
pe_dir:
|
8
|
-
pe_ver:
|
9
|
-
pe_upgrade_dir:
|
10
|
-
pe_upgrade_ver:
|
11
|
-
hypervisor: vmpooler
|
12
|
-
platform: aix-7.1-power
|
13
|
-
roles:
|
14
|
-
- agent
|
15
|
-
- classifier
|
16
|
-
CONFIG:
|
17
|
-
nfs_server: none
|
18
|
-
consoleport: 443
|
19
|
-
pooling_api: http://vmpooler.delivery.puppetlabs.net/
|
20
|
-
expected_exception:
|