Skip to content

Commit

Permalink
Fix Test Kitchen tests
Browse files Browse the repository at this point in the history
Cutover some branches and update some docs while I'm here

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Aug 24, 2021
1 parent db3871f commit da97d20
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ GEM
net-ssh (>= 5.0.0, < 7.0.0)
net-ssh (6.1.0)
nori (2.6.0)
parallel (1.20.1)
parallel (1.20.2)
parser (3.0.2.0)
ast (~> 2.4.1)
parslet (1.8.2)
Expand Down Expand Up @@ -420,6 +420,7 @@ GEM
wmi-lite (1.0.5)

PLATFORMS
arm64-darwin-20
ruby
x64-mingw32
x86-mingw32
Expand Down
4 changes: 2 additions & 2 deletions kitchen-tests/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ source "https://rubygems.org"
gem "rake" # required to build some native extensions
gem "chef", path: ".."
gem "knife", path: "../knife"
gem "ohai", git: "https://github.com/chef/ohai.git", branch: "master" # avoids failures when we bump chef major
gem "ohai", git: "https://github.com/chef/ohai.git", branch: "main" # avoids failures when we bump chef major
gem "berkshelf", git: "https://github.com/berkshelf/berkshelf.git", branch: "master"
gem "kitchen-dokken", ">= 2.0"
gem "kitchen-inspec", git: "https://github.com/chef/kitchen-inspec.git", branch: "master"
gem "kitchen-inspec", git: "https://github.com/chef/kitchen-inspec.git", branch: "main"
gem "inspec"
gem "test-kitchen", git: "https://github.com/test-kitchen/test-kitchen.git", branch: "master"
6 changes: 3 additions & 3 deletions kitchen-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end-to-end-amazonlinux Dokken Dokken Inspec Dokken <Not Created

## Testing

We use Test Kitchen to build instances, test client code, and destroy instances. If you are unfamiliar with Test Kitchen, we recommend checking out the [tutorial](http://kitchen.ci/) along with the `kitchen-dokken` [driver documentation](https://github.com/someara/kitchen-dokken). Test Kitchen is configured to manipulate instances using [Docker](https://www.docker.com/) when testing locally, and when testing, pull requests on [Buildkite](https://buildkite.com/chef-oss/chef-chef-master-verify).
We use Test Kitchen to build instances, test client code, and destroy instances. If you are unfamiliar with Test Kitchen, we recommend checking out the [tutorial](http://kitchen.ci/) along with the `kitchen-dokken` [driver documentation](https://github.com/someara/kitchen-dokken). Test Kitchen is configured to manipulate instances using [Docker](https://www.docker.com/) when testing locally, and when testing, pull requests on [Buildkite](https://buildkite.com/chef-oss/chef-chef-main-verify).

### Commands

Expand Down Expand Up @@ -60,13 +60,13 @@ The provisioner can be configured to pull client source code from a GitHub repos
By default, the provisioner is configured to pull your most recent commit to `chef/chef`. You can change this by modifying the `github` and `branch` provisioner options:

- `github`: Set this to `"<your_username>/<your_chef_repo>"`. The default is `"chef/chef"`.
- `branch`: This can be any valid git reference (e.g., branch name, tag, or commit SHA). If omitted, it defaults to `master`.
- `branch`: This can be any valid git reference (e.g., branch name, tag, or commit SHA). If omitted, it defaults to `main`.

The branch you choose must be accessible on GitHub. You cannot use a local commit at this time.

### Testing pull requests

These end-to-end tests are also configured to run on Buildkite with Docker containers when you submit a pull request to `chef/chef`. Kitchen is configured to pull chef client source code from the branch it is testing. There is no need to modify `kitchen.yml` unless you are contributing tests.
These end-to-end tests are also configured to run on Buildkite with Docker containers when you submit a pull request to `chef/chef`. Test Kitchen is configured to pull Chef Infra Client source code from the branch it is testing. There is no need to modify `kitchen.yml` unless you are contributing tests.

## Contributing

Expand Down
4 changes: 2 additions & 2 deletions omnibus/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ GEM
artifactory (3.0.15)
awesome_print (1.9.2)
aws-eventstream (1.1.1)
aws-partitions (1.489.0)
aws-partitions (1.490.0)
aws-sdk-core (3.119.1)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.239.0)
Expand Down Expand Up @@ -309,7 +309,7 @@ GEM
plist (~> 3.1)
train-core
wmi-lite (~> 1.0)
parallel (1.20.1)
parallel (1.20.2)
parslet (1.8.2)
pastel (0.8.0)
tty-color (~> 0.5)
Expand Down

0 comments on commit da97d20

Please sign in to comment.