summaryrefslogtreecommitdiff
path: root/acceptance/README.md
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-02-11 16:22:27 -0800
committerSalim Alam <salam@chef.io>2016-02-11 16:22:27 -0800
commitc700c2d999a5767931cf43e6f8191ed5961d2137 (patch)
tree3e6e620490e30f6a6f1c8493789c2f728dabd301 /acceptance/README.md
parentb223494c5cb124a2db5b3bdd7e220175bcd267eb (diff)
parent0e29d6eddba8a817683577c0a4121539916fcc4b (diff)
downloadchef-c700c2d999a5767931cf43e6f8191ed5961d2137.tar.gz
Merge pull request #4563 from chef/salam/readme-update
Update README to reflect more config options
Diffstat (limited to 'acceptance/README.md')
-rw-r--r--acceptance/README.md48
1 files changed, 47 insertions, 1 deletions
diff --git a/acceptance/README.md b/acceptance/README.md
index 48fa672a7c..fa4bab2806 100644
--- a/acceptance/README.md
+++ b/acceptance/README.md
@@ -60,7 +60,7 @@ The steps you will need to do are:
Add this to your shell profile or startup script as needed.
7. **Connect to Chef VPN**. The instances you create will not have public IPs!
-### Setting up and running a test suite
+## Setting up and running a test suite
To get started, do a bundle install from the acceptance directory:
```shell
chef/acceptance$ bundle install --binstubs
@@ -84,3 +84,49 @@ chef/acceptance$ bin/chef-acceptance test cookbook-git
```
If KITCHEN_INSTANCES is not specified, the default instances are default-ubuntu-1404 and default-windows-windows-2012r2. All selected instances will be run in *parallel* if the driver supports it (ec2 does, vagrant doesn't).
+
+## Optional Settings
+
+In addition to the environment settings above, there are a number of
+key values that are available to set for changing the way the acceptance
+tests are run.
+
+### KITCHEN_CHEF_CHANNEL
+
+Use this setting to specify which channel we will pull the chef build from.
+The default is to use the "current" channel, unless the ARTIFACTORY_USERNAME is set
+(which normally happens when running under Jenkins), in which case the default is
+changed to "unstable".
+
+```shell
+export KITCHEN_CHEF_CHANNEL=name-of-channel
+```
+
+
+### KITCHEN_CHEF_VERSION
+
+Use this setting to override the version of the Chef client that is installed. The default is to get the latest version in the desired channel.
+
+```shell
+export KITCHEN_CHEF_VERSION=version-of-chef-client
+```
+
+### ARTIFACTORY_USERNAME / ARTIFACTORY_PASSWORD
+
+If the desired channel to get the Chef client from is "unstable", the following settings need to be exported:
+
+```shell
+export ARTIFACTORY_USERNAME=username
+export ARTIFACTORY_PASSWORD=password
+```
+
+## Future Work
+
+Currently, there is no simple mechanism for chef-acceptance
+to build an Omnibus package of the developers local chef
+instance and run acceptance tests on it - the only packages
+that can be exercised are ones that come from one of the
+pipeline channels (unstable, current or stable).
+
+This is not an issue when adding acceptance tests for pre-existing functionality (as that functionality is presumed
+to already be in a build in one of the pipeline channels).