Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

chef: Use test/smoke/default instead of test/recipes for generated cookbooks/recipes #1096

Merged
merged 4 commits into from
Dec 2, 2016

Conversation

tduffield
Copy link
Contributor

@tduffield tduffield commented Dec 1, 2016

Description

Storing generated inspec tests in test/recipes causes Foodcritic to
fail, as Foodcritic assumes the test directory is now a
cookbook (which is false). Using test/smoke/default fixes this issue
and creates direct associations with the existing Kitchen and Workflow
templates.

  1. The delivery-project.toml already runs kitchen verify during
    smoke. There is now a connection between the phase and the tests that
    are run by default.
  2. The default folder in smoke is associated with the default suite
    already provided in the Kitchen YAML. This indicates and guides the user
    that additional suites can be created under smoke, and gives implicit
    guidance as to their naming.

Issues Resolved

  • COOL-585

Check List

Signed-off-by: Tom Duffield tom@chef.io

Storing generated inspec tests in `test/recipes` causes Foodcritic to
fail, as Foodcritic assumes the `test` directory is now a
cookbook (which is false). Using `test/smoke/default` fixes this issue
and creates direct associations with the existing Kitchen and Workflow
templates.

1. The delivery-project.toml already runs `kitchen verify` during
smoke. There is now a connection between the phase and the tests that
are run by default.
2. The `default` folder in smoke is associated with the `default` suite
already provided in the Kitchen YAML. This indicates and guides the user
that additional suites can be created under smoke, and gives implicit
guidance as to their naming.

Signed-off-by: Tom Duffield <tom@chef.io>
@coderanger
Copy link
Contributor

I'm concerned about introducing more explicitly Delivery/Workflow-based terms into the broader Chef community. This change in particular is probably okay, but something we should keep an eye on over time :-/

@MarkGibbons
Copy link

Is there a reason not to use the default directory structure defined in kitchen-inspec?
https://github.com/chef/kitchen-inspec

@tduffield
Copy link
Contributor Author

@MarkGibbons by using the term "smoke", instead of "integration", we associate those tests with the Workflow phase in which they are executed.

Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
Signed-off-by: Tom Duffield <tom@chef.io>
@tduffield tduffield force-pushed the COOL-585/tduffield/use-smoke-nomenclature branch from b8c877a to e057858 Compare December 2, 2016 15:30
@tduffield tduffield changed the title Use test/smoke/default instead of test/recipes chef: Use test/smoke/default instead of test/recipes for generated cookbooks/recipes Dec 2, 2016
@tduffield tduffield merged commit 4079d0f into master Dec 2, 2016
@coderanger
Copy link
Contributor

@tduffield Did another maintainer review this that I didn't see?

@tduffield
Copy link
Contributor Author

Matt and Lamont

@coderanger
Copy link
Contributor

@tduffield Good to make sure stuff is visible on the public side since we can't all see the internal tickets :)

@thommay thommay deleted the COOL-585/tduffield/use-smoke-nomenclature branch January 19, 2017 10:08
@thommay thommay added Type: Bug Doesn't work as expected. and removed Bug labels Feb 1, 2017
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Doesn't work as expected.
Development

Successfully merging this pull request may close these issues.

4 participants