Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get most test kitchen tests passing in Travis #405

Merged
merged 6 commits into from
Mar 2, 2020
Merged

Conversation

clintoncwolfe
Copy link
Contributor

@clintoncwolfe clintoncwolfe commented Dec 16, 2019

This was mainly about updating which Kitchenfile was to be used, and the fact that we now need to accept a license.

Along the way, one set of suites (5) was discovered to be badly broken due to an inspec bug (the naming collision around the gem resource). I opened an issue (#406) and commented out those suites for now.

Finally, the tests won't turn green yet because the codebase fails linting. I opened #407 to track that. I can fix that on this PR if desired.

Fixes #407, partially addresses #403

@clintoncwolfe clintoncwolfe changed the title [WIP] Get kitchen working Get most test kitchen tests passing in Travis Dec 17, 2019
@clintoncwolfe clintoncwolfe marked this pull request as ready for review December 17, 2019 00:56
@clintoncwolfe clintoncwolfe requested a review from a team December 17, 2019 00:56
@clintoncwolfe clintoncwolfe added the Aspect: Testing Does the project have good coverage, and is CI working? label Dec 17, 2019
@@ -1,12 +1,3 @@
# encoding: utf-8

# used by ChefSpec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole file should just get removed now that it's empty

.travis.yml Outdated
- CHEF_VERSION=15
- KITCHEN_YAML=kitchen.dokken.yml
- CHEF_LICENSE="accept-no-persist"

before_install:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- CHEF_LICENSE="accept-no-persist" sudo chef gem install webmock
- eval "$(chef shell-init bash)"
- chef --version
- cookstyle --version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chef --version should include all the version output you need. It includes cookstyle and kitchen and foodcritic is dead.

.travis.yml Outdated
@@ -43,24 +51,27 @@ matrix:
- rvm: 2.6.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should probably get updated to 2.6.5 while you're in here to match chef

Update tests to pass travs

Signed-off-by: Alex Pop <[email protected]>
@alexpop
Copy link
Contributor

alexpop commented Mar 2, 2020

Gents, I pused a commit that clears all the outstanding travis errors.
Once this merges, I want to get the other PRs rebased and merged as well. Cheers!

@vjeffrey vjeffrey merged commit b18d91e into master Mar 2, 2020
@alexpop alexpop mentioned this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aspect: Testing Does the project have good coverage, and is CI working?
Development

Successfully merging this pull request may close these issues.

Apply current cookstyle
4 participants