-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial upgrade of 2.0.0 and new DSL methods
- Loading branch information
Showing
71 changed files
with
2,209 additions
and
1,275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1.0 | ||
before_script: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Travis CI" | ||
script: | ||
- bundle exec cucumber --color --format progress --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
require 'bundler/gem_tasks' | ||
|
||
require 'cucumber/rake/task' | ||
Cucumber::Rake::Task.new(:acceptance) do |t| | ||
t.cucumber_opts = [].tap do |a| | ||
a.push('--color') | ||
a.push('--format progress') | ||
a.push('--strict') | ||
a.push('--tags ~@wip') | ||
end.join(' ') | ||
end | ||
|
||
desc 'Run all tests' | ||
task :test => [:acceptance] | ||
|
||
task :default => [:test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
|
||
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) | ||
require 'stove/cli' | ||
require 'stove' | ||
Stove::Cli.new(ARGV.dup).execute! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Feature: Bump | ||
Background: | ||
* the Stove config is empty | ||
* the CLI options are all off | ||
* I have a cookbook named "bacon" at version "1.0.0" | ||
|
||
Scenario: When the version has not changed | ||
* I run `bake 1.0.0 --bump` | ||
* it should fail with "version you are trying to bump already exists" | ||
|
||
Scenario: When the version is not greater than the current | ||
* I run `bake 0.1.0 --bump` | ||
* it should fail with "bump to is less than the existing version" | ||
|
||
Scenario: In isolation | ||
* I successfully run `bake 2.0.0 --bump` | ||
* the file "metadata.rb" should contain "2.0.0" | ||
|
||
Scenario: With the git plugin | ||
* I have a cookbook named "bacon" with git support | ||
* I successfully run `bake 1.0.0 --bump --git` | ||
* the git remote should have the commit "Version bump to 1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Feature: Changelog | ||
Background: | ||
* the Stove config is empty | ||
* the CLI options are all off | ||
* I have a cookbook named "bacon" | ||
|
||
Scenario: When the Changelog does not exist | ||
* I remove the file "CHANGELOG.md" | ||
* I run `bake --changelog` | ||
* it should fail with "There is no `CHANGELOG.md' found" | ||
|
||
Scenario: When the Changelog is not a proper format | ||
* I write to "CHANGELOG.md" with: | ||
""" | ||
This can't possibly be a valid Changelog | ||
""" | ||
* I run `bake --changelog` | ||
* it should fail with "does not appear to be a valid format" | ||
|
||
Scenario: When the $EDITOR is not set | ||
* the environment variable "EDITOR" is unset | ||
* I run `bake --changelog` | ||
* it should fail with "The `$EDITOR' environment variable is not set" | ||
|
||
Scenario: In isolation | ||
* the environment variable "EDITOR" is "cat" | ||
* I successfully run `bake --changelog` | ||
* the file "CHANGELOG.md" should contain "v0.0.0" | ||
|
||
Scenario: With bump | ||
* the environment variable "EDITOR" is "cat" | ||
* I successfully run `bake 1.0.0 --changelog --bump` | ||
* the file "CHANGELOG.md" should contain "v1.0.0" | ||
|
||
Scenario: With the git plugin | ||
* I have a cookbook named "bacon" with git support | ||
* the environment variable "EDITOR" is "cat" | ||
* I successfully run `bake --changelog --git` | ||
* the git remote should have the commit "Publish 0.0.0 Changelog" | ||
|
||
@wip | ||
Scenario: With the GitHub plugin | ||
|
||
@wip | ||
Scenario: With the JIRA plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Feature: Dev | ||
Background: | ||
* the Stove config is empty | ||
* the CLI options are all off | ||
* I have a cookbook named "bacon" at version "1.0.0" | ||
|
||
Scenario: In isolation | ||
* I successfully run `bake --dev` | ||
* the file "metadata.rb" should contain "1.0.1" | ||
|
||
Scenario: With bump | ||
* I successfully run `bake 2.0.0 --bump --dev` | ||
* the file "metadata.rb" should contain "2.0.1" | ||
|
||
Scenario: With the git plugin | ||
* I have a cookbook named "bacon" with git support | ||
* I successfully run `bake --dev --git` | ||
* the git remote should have the commit "Version bump to 0.0.1 (for development)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Feature: Upload | ||
Background: | ||
* the Stove config is empty | ||
* the CLI options are all off | ||
* I have a cookbook named "bacon" | ||
* I am using the community server | ||
|
||
Scenario: When the configuration does not exist | ||
* I run `bake --upload` | ||
* it should fail with "configuration for the Chef community site does not exist" | ||
|
||
Scenario: When the username does not exist | ||
* the Stove config at "community._" is "" | ||
* I run `bake --upload` | ||
* it should fail with "does not contain a username" | ||
|
||
Scenario: When the key does not exist | ||
* the Stove config at "community.username" is "bobo" | ||
* I run `bake --upload` | ||
* it should fail with "does not contain a key" | ||
|
||
Scenario: When the category does not exist | ||
* the Stove config at "community.username" is "bobo" | ||
* the Stove config at "community.key" is "../../features/support/stove.pem" | ||
* I run `bake --upload` | ||
* it should fail with "You did not specify a category" | ||
|
||
Scenario: In isolation | ||
* the Stove config at "community.username" is "bobo" | ||
* the Stove config at "community.key" is "../../features/support/stove.pem" | ||
* the community server has the cookbook: | ||
| bacon | 1.2.3 | Application | | ||
* I successfully run `bake --upload` | ||
|
||
Scenario: With the git plugin | ||
* I have a cookbook named "bacon" with git support | ||
* the Stove config at "community.username" is "bobo" | ||
* the Stove config at "community.key" is "../../features/support/stove.pem" | ||
* the community server has the cookbook: | ||
| bacon | 1.2.3 | Application | | ||
* I successfully run `bake --git --upload` | ||
* the git remote should have the tag "v0.0.0" | ||
|
||
@wip | ||
Scenario: With the GitHub plugin | ||
|
||
@wip | ||
Scenario: With the JIRA plugin |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.