Cucumber

Feature Result for Build: 1

Scenarios Steps
Feature Total Passed Failed Total Passed Failed Skipped Pending Duration Status
Test of credentials-maven-plugin:set 13 13 0 86 86 0 0 0 736 ms passed
@set
Feature: Test of credentials-maven-plugin:set
In order to expose username and password properties
As a Maven developer
I want to execute a credentials maven plugin which will populate them from server settings or command line properties
Background:
Given a set Plugin0 ms
Scenario: No information
When the set Goal is executed0 ms
Then there should be an error message 'At least one of settingsKey and usernameProperty must be set'0 ms
Background:
Given a set Plugin0 ms
Scenario: passwordProperty & no usernameProperty
Given the Plugin passwordProperty property is bar0 ms
When the set Goal is executed1 ms
Then there should be an error message 'At least one of settingsKey and usernameProperty must be set'0 ms
Background:
Given a set Plugin0 ms
Scenario: usernameProperty & no passwordProperty
Given the Plugin usernameProperty property is foo0 ms
When the set Goal is executed0 ms
Then there should be an error message 'At least one of settingsKey and passwordProperty must be set'0 ms
Background:
Given a set Plugin0 ms
Scenario: usernameProperty & passwordProperty
Given the Plugin usernameProperty property is foo0 ms
And the Plugin passwordProperty property is bar0 ms
When the set Goal is executed5 ms
Then there should be an error message 'If foo/bar properties not set manually, then the settings key must be specified, either at the command line or in the pom.xml'0 ms
Background:
Given a set Plugin0 ms
Scenario: usernameProperty & passwordProperty & settingsKey but no corresponding settings
Given the Plugin usernameProperty property is foo0 ms
And the Plugin passwordProperty property is bar0 ms
And the Plugin settingsKey property is blah0 ms
When the set Goal is executed6 ms
Then there should be an error message 'You have specified a settingsKey property value of blah, there must be a server entry with id blah in your settings.xml'0 ms
Background:
Given a set Plugin0 ms
Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings
Given the Plugin usernameProperty property is foo0 ms
And the Plugin passwordProperty property is bar0 ms
And the Plugin settingsKey property is blah0 ms
And Server blah's username is whiz0 ms
And Server blah's password is bang0 ms
When the set Goal is executed2 ms
Then there should be a Project foo property with value whiz0 ms
And there should be a Project bar property with value bang0 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with corresponding settings
Given the Plugin settingsKey property is blah0 ms
And Server blah's username is whiz0 ms
And Server blah's password is bang0 ms
When the set Goal is executed2 ms
Then there should be a Project blah.username property with value whiz0 ms
And there should be a Project blah.password property with value bang0 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with corresponding settings and encrypted password
Given the Plugin settingsKey property is blah0 ms
And Server blah's username is me0 ms
And Server blah's password is {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=}0 ms
And the System settings.security property is src/it/ant-secure/settings-security.xml0 ms
When the set Goal is executed668 ms
Then there should be a Project blah.username property with value me0 ms
And there should be a Project blah.password property with value mine1 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with corresponding settings and encrypted password but no decryption key
Given the Plugin settingsKey property is blah0 ms
And Server blah's username is me1 ms
And Server blah's password is {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=}0 ms
When the set Goal is executed6 ms
Then there should be a Project blah.username property with value me0 ms
And there should be a Project blah.password property with value {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=}0 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with SSH style server entry i.e. no username or password
Given the Plugin settingsKey property is blah0 ms
And an empty Server with id blah0 ms
When the set Goal is executed1 ms
Then there should be a Project blah.username property with value ""0 ms
And there should be a Project blah.password property with value ""0 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with server entry with username but no password
Given the Plugin settingsKey property is blah0 ms
And Server blah's username is me0 ms
When the set Goal is executed1 ms
Then there should be a Project blah.username property with value me0 ms
And there should be a Project blah.password property with value ""0 ms
Background:
Given a set Plugin0 ms
Scenario: settingsKey only with corresponding settings and using System properties
Given the Plugin settingsKey property is blah0 ms
And the Plugin useSystemProperties property is true7 ms
And Server blah's username is whiz0 ms
And Server blah's password is bang0 ms
When the set Goal is executed12 ms
Then there should be a Project blah.username property with value whiz0 ms
And there should be a Project blah.password property with value bang0 ms
And there should be a System blah.username property with value whiz0 ms
And there should be a System blah.password property with value bang0 ms
Background:
Given a set Plugin0 ms
Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings AND previously existing properties, the existing properties should win
Given the Plugin usernameProperty property is foo0 ms
And the Plugin passwordProperty property is bar0 ms
And the Plugin settingsKey property is blah0 ms
And Server blah's username is whiz0 ms
And Server blah's password is bang0 ms
And the Project foo property is ping0 ms
And the Project bar property is pong1 ms
When the set Goal is executed3 ms
Then there should be a Project foo property with value ping0 ms
And there should be a Project bar property with value pong0 ms