Fork me on GitHub

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
114 0 0 0 100% 0.027

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
107 0 0 0 100% 0.026
Scenario: settingsKey only with SSH style server entry i.e 7 0 0 0 100% 0.001

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

Scenario: settingsKey only with SSH style server entry i.e

Class Tests Errors Failures Skipped Success Rate Time
no username or password 7 0 0 0 100% 0.001

Test Cases

[Summary] [Package List] [Test Cases]

Scenario: Set all known credentials to properties

Given the Plugin useSystemProperties property is true 0.001
Given Server ding's username is whiz 0
And Server ding's password is bang 0
And Server dong's username is sing 0
And Server dong's password is song 0
When the set-all Goal is executed 0
Then there should be a Project ding.username property with value whiz 0
And there should be a Project ding.password property with value bang 0
And there should be a System ding.username property with value whiz 0
And there should be a System ding.password property with value bang 0
Then there should be a Project dong.username property with value sing 0
And there should be a Project dong.password property with value song 0
And there should be a System dong.username property with value sing 0
And there should be a System dong.password property with value song 0
Scenario: Set all known credentials to properties 0.005

Scenario: No information

Given a set Plugin 0
When the set Goal is executed 0
Then there should be an error message 'At least one of settingsKey and usernameProperty must be set' 0.001
Scenario: No information 0.001

Scenario: passwordProperty & no usernameProperty

Given a set Plugin 0
Given the Plugin passwordProperty property is bar 0
When the set Goal is executed 0
Then there should be an error message 'At least one of settingsKey and usernameProperty must be set' 0
Scenario: passwordProperty & no usernameProperty 0.001

Scenario: usernameProperty & no passwordProperty

Given a set Plugin 0
Given the Plugin usernameProperty property is foo 0
When the set Goal is executed 0
Then there should be an error message 'At least one of settingsKey and passwordProperty must be set' 0
Scenario: usernameProperty & no passwordProperty 0.003

Scenario: usernameProperty & passwordProperty

Given a set Plugin 0
Given the Plugin usernameProperty property is foo 0
And the Plugin passwordProperty property is bar 0
When the set Goal is executed 0
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
Scenario: usernameProperty & passwordProperty 0

Scenario: usernameProperty & passwordProperty & settingsKey but no corresponding settings

Given a set Plugin 0
Given the Plugin usernameProperty property is foo 0
And the Plugin passwordProperty property is bar 0
And the Plugin settingsKey property is blah 0
When the set Goal is executed 0.001
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
Scenario: usernameProperty & passwordProperty & settingsKey but no corresponding settings 0.001

Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings

Given a set Plugin 0
Given the Plugin usernameProperty property is foo 0
And the Plugin passwordProperty property is bar 0
And the Plugin settingsKey property is blah 0.002
And Server blah's username is whiz 0
And Server blah's password is bang 0
When the set Goal is executed 0
Then there should be a Project foo property with value whiz 0
And there should be a Project bar property with value bang 0
Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings 0

Scenario: settingsKey only with corresponding settings

Given a set Plugin 0
Given the Plugin settingsKey property is blah 0
And Server blah's username is whiz 0
And Server blah's password is bang 0
When the set Goal is executed 0
Then there should be a Project blah.username property with value whiz 0
And there should be a Project blah.password property with value bang 0
Scenario: settingsKey only with corresponding settings 0.001

Scenario: settingsKey only with corresponding settings and encrypted password

Given a set Plugin 0
Given the Plugin settingsKey property is blah 0
And Server blah's username is me 0
And Server blah's password is {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=} 0
And the System settings.security property is src/it/ant-secure/settings-security.xml 0.001
When the set Goal is executed 0
Then there should be a Project blah.username property with value me 0
And there should be a Project blah.password property with value mine 0
Scenario: settingsKey only with corresponding settings and encrypted password 0.001

Scenario: settingsKey only with corresponding settings and encrypted password but no decryption key

Given a set Plugin 0
Given the Plugin settingsKey property is blah 0
And Server blah's username is me 0
And Server blah's password is {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=} 0
When the set Goal is executed 0
Then there should be a Project blah.username property with value me 0
And there should be a Project blah.password property with value {iFtD2TFFjzoHEDN1RxW21zEBYW0Gt7GwbsOm6yDS63s=} 0
Scenario: settingsKey only with corresponding settings and encrypted password but no decryption key 0.001

no username or password

Given a set Plugin 0
Given the Plugin settingsKey property is blah 0
And an empty Server with id blah 0
When the set Goal is executed 0
Then there should be a Project blah.username property with value "" 0
And there should be a Project blah.password property with value "" 0
Scenario: settingsKey only with SSH style server entry i.e. no username or password 0.001

Scenario: settingsKey only with server entry with username but no password

Given a set Plugin 0.001
Given the Plugin settingsKey property is blah 0
And Server blah's username is me 0
When the set Goal is executed 0
Then there should be a Project blah.username property with value me 0
And there should be a Project blah.password property with value "" 0
Scenario: settingsKey only with server entry with username but no password 0.001

Scenario: settingsKey only with corresponding settings and using System properties

Given a set Plugin 0
Given the Plugin settingsKey property is blah 0
And the Plugin useSystemProperties property is true 0
And Server blah's username is whiz 0
And Server blah's password is bang 0
When the set Goal is executed 0
Then there should be a Project blah.username property with value whiz 0
And there should be a Project blah.password property with value bang 0
And there should be a System blah.username property with value whiz 0
And there should be a System blah.password property with value bang 0
Scenario: settingsKey only with corresponding settings and using System properties 0.001

Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings AND previously existing properties, the existing properties should win

Given a set Plugin 0
Given the Plugin usernameProperty property is foo 0
And the Plugin passwordProperty property is bar 0
And the Plugin settingsKey property is blah 0
And Server blah's username is whiz 0
And Server blah's password is bang 0
And the Project foo property is ping 0
And the Project bar property is pong 0
When the set Goal is executed 0
Then there should be a Project foo property with value ping 0
And there should be a Project bar property with value pong 0.001
Scenario: usernameProperty & passwordProperty & settingsKey with corresponding settings AND previously existing properties, the existing properties should win 0.002