diff options
author | danielsdeleo <dan@opscode.com> | 2013-07-29 16:11:26 -0700 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2013-08-02 09:29:04 -0700 |
commit | 7c416115a891b01319ae908e68f164a24b80240e (patch) | |
tree | ee8fa00a8b895a007f691afa6b1b93908cd275de /spec/data | |
parent | b1819c306382fabece4a0d1ed9343590967bc775 (diff) | |
download | chef-7c416115a891b01319ae908e68f164a24b80240e.tar.gz |
Add functional tests for (apt) package resource
Repro/regression test for CHEF-4406 included but is marked pending.
Diffstat (limited to 'spec/data')
38 files changed, 246 insertions, 0 deletions
diff --git a/spec/data/apt/chef-integration-test-1.0/debian/changelog b/spec/data/apt/chef-integration-test-1.0/debian/changelog new file mode 100644 index 0000000000..bb34505e65 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/changelog @@ -0,0 +1,5 @@ +chef-integration-test (1.0-1) unstable; urgency=low + + * Initial release (Closes: #CHEF-1718) + + -- Joshua Timberman <joshua@opscode.com> Thu, 30 Sep 2010 09:53:45 -0600 diff --git a/spec/data/apt/chef-integration-test-1.0/debian/compat b/spec/data/apt/chef-integration-test-1.0/debian/compat new file mode 100644 index 0000000000..7f8f011eb7 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/compat @@ -0,0 +1 @@ +7 diff --git a/spec/data/apt/chef-integration-test-1.0/debian/control b/spec/data/apt/chef-integration-test-1.0/debian/control new file mode 100644 index 0000000000..e77b01b1d2 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/control @@ -0,0 +1,13 @@ +Source: chef-integration-test +Section: ruby +Priority: extra +Maintainer: Joshua Timberman <Joshua Timberman <joshua@opscode.com>> +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.8.4 +Homepage: http://tickets.opscode.com + +Package: chef-integration-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Chef integration tests for APT in Cucumber + This package is used for cucumber integration testing in Chef. diff --git a/spec/data/apt/chef-integration-test-1.0/debian/copyright b/spec/data/apt/chef-integration-test-1.0/debian/copyright new file mode 100644 index 0000000000..72b6c65542 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/copyright @@ -0,0 +1,34 @@ +This work was packaged by: + + Joshua Timberman <Joshua Timberman <joshua@opscode.com>> on Thu, 30 Sep 2010 09:53:45 -0600 + +Upstream Author(s): + + Opscode, Inc. + +Copyright: + + Copyright (C) 2010 Opscode, Inc + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +The Debian packaging is: + + Copyright (C) 2010 Opscode, Inc (<legal@opscode.com>) + + +and is licensed under the Apache 2.0 license. + +See "/usr/share/common-licenses/Apache-2.0" diff --git a/spec/data/apt/chef-integration-test-1.0/debian/files b/spec/data/apt/chef-integration-test-1.0/debian/files new file mode 100644 index 0000000000..536f4beabc --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/files @@ -0,0 +1 @@ +chef-integration-test_1.0-1_amd64.deb ruby extra diff --git a/spec/data/apt/chef-integration-test-1.0/debian/rules b/spec/data/apt/chef-integration-test-1.0/debian/rules new file mode 100755 index 0000000000..b760bee7f4 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/spec/data/apt/chef-integration-test-1.0/debian/source/format b/spec/data/apt/chef-integration-test-1.0/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.0/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/spec/data/apt/chef-integration-test-1.1/debian/changelog b/spec/data/apt/chef-integration-test-1.1/debian/changelog new file mode 100644 index 0000000000..fc693c1ec8 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/changelog @@ -0,0 +1,11 @@ +chef-integration-test (1.1-1) unstable; urgency=low + + * New upstream release (1.1) + + -- Joshua Timberman <joshua@opscode.com> Thu, 30 Sep 2010 10:09:34 -0600 + +chef-integration-test (1.0-1) unstable; urgency=low + + * Initial release (Closes: #CHEF-1718) + + -- Joshua Timberman <joshua@opscode.com> Thu, 30 Sep 2010 09:53:45 -0600 diff --git a/spec/data/apt/chef-integration-test-1.1/debian/compat b/spec/data/apt/chef-integration-test-1.1/debian/compat new file mode 100644 index 0000000000..7f8f011eb7 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/compat @@ -0,0 +1 @@ +7 diff --git a/spec/data/apt/chef-integration-test-1.1/debian/control b/spec/data/apt/chef-integration-test-1.1/debian/control new file mode 100644 index 0000000000..e77b01b1d2 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/control @@ -0,0 +1,13 @@ +Source: chef-integration-test +Section: ruby +Priority: extra +Maintainer: Joshua Timberman <Joshua Timberman <joshua@opscode.com>> +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.8.4 +Homepage: http://tickets.opscode.com + +Package: chef-integration-test +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Chef integration tests for APT in Cucumber + This package is used for cucumber integration testing in Chef. diff --git a/spec/data/apt/chef-integration-test-1.1/debian/copyright b/spec/data/apt/chef-integration-test-1.1/debian/copyright new file mode 100644 index 0000000000..72b6c65542 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/copyright @@ -0,0 +1,34 @@ +This work was packaged by: + + Joshua Timberman <Joshua Timberman <joshua@opscode.com>> on Thu, 30 Sep 2010 09:53:45 -0600 + +Upstream Author(s): + + Opscode, Inc. + +Copyright: + + Copyright (C) 2010 Opscode, Inc + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +The Debian packaging is: + + Copyright (C) 2010 Opscode, Inc (<legal@opscode.com>) + + +and is licensed under the Apache 2.0 license. + +See "/usr/share/common-licenses/Apache-2.0" diff --git a/spec/data/apt/chef-integration-test-1.1/debian/files b/spec/data/apt/chef-integration-test-1.1/debian/files new file mode 100644 index 0000000000..d72553c027 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/files @@ -0,0 +1 @@ +chef-integration-test_1.1-1_amd64.deb ruby extra diff --git a/spec/data/apt/chef-integration-test-1.1/debian/rules b/spec/data/apt/chef-integration-test-1.1/debian/rules new file mode 100755 index 0000000000..b760bee7f4 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/spec/data/apt/chef-integration-test-1.1/debian/source/format b/spec/data/apt/chef-integration-test-1.1/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/spec/data/apt/chef-integration-test-1.1/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/spec/data/apt/chef-integration-test_1.0-1_amd64.changes b/spec/data/apt/chef-integration-test_1.0-1_amd64.changes new file mode 100644 index 0000000000..4746b834e5 --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.0-1_amd64.changes @@ -0,0 +1,22 @@ +Format: 1.8 +Date: Thu, 30 Sep 2010 09:53:45 -0600 +Source: chef-integration-test +Binary: chef-integration-test +Architecture: amd64 +Version: 1.0-1 +Distribution: unstable +Urgency: low +Maintainer: Joshua Timberman <Joshua Timberman <joshua@opscode.com>> +Changed-By: Joshua Timberman <joshua@opscode.com> +Description: + chef-integration-test - Chef integration tests for APT in Cucumber +Changes: + chef-integration-test (1.0-1) unstable; urgency=low + . + * Initial release (Closes: #CHEF-1718) +Checksums-Sha1: + b44685ff59626bc94c67e60665f06c4643fe9767 1680 chef-integration-test_1.0-1_amd64.deb +Checksums-Sha256: + da176f4405fa21fd7207d4785680c6996d395a1ca132f2d5565a61c5479b1116 1680 chef-integration-test_1.0-1_amd64.deb +Files: + 713722480408ecc8e7220aea52bdd76e 1680 ruby extra chef-integration-test_1.0-1_amd64.deb diff --git a/spec/data/apt/chef-integration-test_1.0-1_amd64.deb b/spec/data/apt/chef-integration-test_1.0-1_amd64.deb Binary files differnew file mode 100644 index 0000000000..458dd026ff --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.0-1_amd64.deb diff --git a/spec/data/apt/chef-integration-test_1.0.orig.tar.gz b/spec/data/apt/chef-integration-test_1.0.orig.tar.gz Binary files differnew file mode 100644 index 0000000000..3de028d486 --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.0.orig.tar.gz diff --git a/spec/data/apt/chef-integration-test_1.1-1_amd64.changes b/spec/data/apt/chef-integration-test_1.1-1_amd64.changes new file mode 100644 index 0000000000..f014de813b --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.1-1_amd64.changes @@ -0,0 +1,22 @@ +Format: 1.8 +Date: Thu, 30 Sep 2010 10:09:34 -0600 +Source: chef-integration-test +Binary: chef-integration-test +Architecture: amd64 +Version: 1.1-1 +Distribution: unstable +Urgency: low +Maintainer: Joshua Timberman <Joshua Timberman <joshua@opscode.com>> +Changed-By: Joshua Timberman <joshua@opscode.com> +Description: + chef-integration-test - Chef integration tests for APT in Cucumber +Changes: + chef-integration-test (1.1-1) unstable; urgency=low + . + * New upstream release (1.1) +Checksums-Sha1: + 43c5653a9a5b9419849173a4ec3a9855cf0327a3 1722 chef-integration-test_1.1-1_amd64.deb +Checksums-Sha256: + 84e2f087f7e11d1b73743007ecfc6b8b34e03f6917c0993b35c0758ee59702c1 1722 chef-integration-test_1.1-1_amd64.deb +Files: + 4b05bace483dbca54efc21f97ee47e1d 1722 ruby extra chef-integration-test_1.1-1_amd64.deb diff --git a/spec/data/apt/chef-integration-test_1.1-1_amd64.deb b/spec/data/apt/chef-integration-test_1.1-1_amd64.deb Binary files differnew file mode 100644 index 0000000000..c4fac10dc1 --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.1-1_amd64.deb diff --git a/spec/data/apt/chef-integration-test_1.1.orig.tar.gz b/spec/data/apt/chef-integration-test_1.1.orig.tar.gz Binary files differnew file mode 100644 index 0000000000..5fda119eae --- /dev/null +++ b/spec/data/apt/chef-integration-test_1.1.orig.tar.gz diff --git a/spec/data/apt/var/www/apt/conf/distributions b/spec/data/apt/var/www/apt/conf/distributions new file mode 100644 index 0000000000..285c1a88de --- /dev/null +++ b/spec/data/apt/var/www/apt/conf/distributions @@ -0,0 +1,7 @@ +Origin: localhost +Label: apt repository +Codename: sid +Architectures: amd64 +Components: main +Description: Apt repository +Pull: sid diff --git a/spec/data/apt/var/www/apt/conf/incoming b/spec/data/apt/var/www/apt/conf/incoming new file mode 100644 index 0000000000..d44e59c51b --- /dev/null +++ b/spec/data/apt/var/www/apt/conf/incoming @@ -0,0 +1,4 @@ +Name: default +IncomingDir: /tmp/incoming +TempDir: /tmp +Allow: sid unstable>sid diff --git a/spec/data/apt/var/www/apt/conf/pulls b/spec/data/apt/var/www/apt/conf/pulls new file mode 100644 index 0000000000..0fc3358279 --- /dev/null +++ b/spec/data/apt/var/www/apt/conf/pulls @@ -0,0 +1,3 @@ +Name: sid +From: sid +Components: main diff --git a/spec/data/apt/var/www/apt/db/checksums.db b/spec/data/apt/var/www/apt/db/checksums.db Binary files differnew file mode 100644 index 0000000000..e36ade2079 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/checksums.db diff --git a/spec/data/apt/var/www/apt/db/contents.cache.db b/spec/data/apt/var/www/apt/db/contents.cache.db Binary files differnew file mode 100644 index 0000000000..04a0c4aed5 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/contents.cache.db diff --git a/spec/data/apt/var/www/apt/db/packages.db b/spec/data/apt/var/www/apt/db/packages.db Binary files differnew file mode 100644 index 0000000000..43c70b0de3 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/packages.db diff --git a/spec/data/apt/var/www/apt/db/references.db b/spec/data/apt/var/www/apt/db/references.db Binary files differnew file mode 100644 index 0000000000..47c99fe152 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/references.db diff --git a/spec/data/apt/var/www/apt/db/release.caches.db b/spec/data/apt/var/www/apt/db/release.caches.db Binary files differnew file mode 100644 index 0000000000..0e251c5496 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/release.caches.db diff --git a/spec/data/apt/var/www/apt/db/version b/spec/data/apt/var/www/apt/db/version new file mode 100644 index 0000000000..a6908690d9 --- /dev/null +++ b/spec/data/apt/var/www/apt/db/version @@ -0,0 +1,4 @@ +4.2.0 +3.3.0 +bdb4.8.30 +bdb4.8.0 diff --git a/spec/data/apt/var/www/apt/dists/sid/Release b/spec/data/apt/var/www/apt/dists/sid/Release new file mode 100644 index 0000000000..44ccd079bf --- /dev/null +++ b/spec/data/apt/var/www/apt/dists/sid/Release @@ -0,0 +1,19 @@ +Origin: localhost +Label: apt repository +Codename: sid +Date: Thu, 30 Sep 2010 16:33:01 UTC +Architectures: amd64 +Components: main +Description: Apt repository +MD5Sum: + 92ed2cc14e37e9ab23466b27857d29ac 596 main/binary-amd64/Packages + c7726773341137b71cc971d44ddec4f5 394 main/binary-amd64/Packages.gz + 46cd71c965ce0813c94ef78c836cc7d3 104 main/binary-amd64/Release +SHA1: + cde25071c5fcee59cee8dcd773ca419dcb40d946 596 main/binary-amd64/Packages + ce04daff75d4b27371d691d645282b198045544a 394 main/binary-amd64/Packages.gz + 91ca9531e3afa7a540cabdc6030c6f75d315fec7 104 main/binary-amd64/Release +SHA256: + af601ce143f33405425746462973adc0fda3aceb381d1c739851b95ee0814ca3 596 main/binary-amd64/Packages + 15e98119705a08018d4583caabc91d36ba12e6f1c8af0f799a3ec8ca5bfaa80d 394 main/binary-amd64/Packages.gz + 098c599ac5b0a98785336afb2bc9c47002570ffa07dd62321c6f70b9fdb74325 104 main/binary-amd64/Release diff --git a/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages new file mode 100644 index 0000000000..209c23cd42 --- /dev/null +++ b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages @@ -0,0 +1,16 @@ +Package: chef-integration-test +Version: 1.1-1 +Architecture: amd64 +Maintainer: Joshua Timberman <Joshua Timberman <joshua@opscode.com>> +Installed-Size: 32 +Homepage: http://tickets.opscode.com +Priority: extra +Section: ruby +Filename: pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb +Size: 1722 +SHA256: 84e2f087f7e11d1b73743007ecfc6b8b34e03f6917c0993b35c0758ee59702c1 +SHA1: 43c5653a9a5b9419849173a4ec3a9855cf0327a3 +MD5sum: 4b05bace483dbca54efc21f97ee47e1d +Description: Chef integration tests for APT in Cucumber + This package is used for cucumber integration testing in Chef. + diff --git a/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz Binary files differnew file mode 100644 index 0000000000..8a2c1e8980 --- /dev/null +++ b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages.gz diff --git a/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release new file mode 100644 index 0000000000..e913d702a1 --- /dev/null +++ b/spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Release @@ -0,0 +1,5 @@ +Component: main +Origin: localhost +Label: apt repository +Architecture: amd64 +Description: Apt repository diff --git a/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages b/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/spec/data/apt/var/www/apt/dists/sid/main/binary-i386/Packages diff --git a/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb b/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb Binary files differnew file mode 100644 index 0000000000..458dd026ff --- /dev/null +++ b/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.0-1_amd64.deb diff --git a/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb b/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb Binary files differnew file mode 100644 index 0000000000..c4fac10dc1 --- /dev/null +++ b/spec/data/apt/var/www/apt/pool/main/c/chef-integration-test/chef-integration-test_1.1-1_amd64.deb diff --git a/spec/data/cookbooks/preseed/files/default/preseed-file.seed b/spec/data/cookbooks/preseed/files/default/preseed-file.seed new file mode 100644 index 0000000000..164da3495d --- /dev/null +++ b/spec/data/cookbooks/preseed/files/default/preseed-file.seed @@ -0,0 +1 @@ +chef-integration-test chef-integration-test/sample-var string "hello world" diff --git a/spec/data/cookbooks/preseed/templates/default/preseed-template.seed b/spec/data/cookbooks/preseed/templates/default/preseed-template.seed new file mode 100644 index 0000000000..164da3495d --- /dev/null +++ b/spec/data/cookbooks/preseed/templates/default/preseed-template.seed @@ -0,0 +1 @@ +chef-integration-test chef-integration-test/sample-var string "hello world" |