features/licenses.feature in berkshelf-3.0.0.beta4 vs features/licenses.feature in berkshelf-3.0.0.beta5
- old
+ new
@@ -6,11 +6,10 @@
* I have a Berksfile pointing at the local Berkshelf API with:
"""
cookbook 'fake', '1.0.0'
"""
-
Scenario: when licenses is defined
Given the cookbook store has the cookbooks:
| fake | 1.0.0 | mit |
And I have a Berkshelf config file containing:
"""
@@ -20,11 +19,10 @@
Then the output should not contain:
"""
is not in your list of allowed licenses
"""
-
Scenario: when a license is not listed
Given the cookbook store has the cookbooks:
| fake | 1.0.0 | mit |
And I have a Berkshelf config file containing:
"""
@@ -34,11 +32,10 @@
Then the output should contain:
"""
'mit' is not in your list of allowed licenses
"""
-
Scenario: when raise_license_exception is defined
Given the cookbook store has the cookbooks:
| fake | 1.0.0 | mit |
And I have a Berkshelf config file containing:
"""
@@ -48,11 +45,10 @@
Then the output should not contain:
"""
is not in your list of allowed licenses
"""
-
Scenario: when raise_license_exception is defined and a license is not listed
Given the cookbook store has the cookbooks:
| fake | 1.0.0 | mit |
And I have a Berkshelf config file containing:
"""
@@ -62,10 +58,9 @@
Then the output should contain:
"""
'mit' is not in your list of allowed licenses
"""
And the exit status should be "LicenseNotAllowed"
-
Scenario: when the cookbook is a path location
Given the cookbook store has the cookbooks:
| fake | 0.1.0 | mit |
And I have a Berksfile pointing at the local Berkshelf API with: