-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(MODULES-3037) Acceptance tests - ChocolateySource #20
(MODULES-3037) Acceptance tests - ChocolateySource #20
Conversation
- Added `get_xml_value` to take config file output and verify configuration values from it. - Added `backup_config`/`reset_config` to copy a backup of the config file and reset it when a test is complete.
|
@ThoughtCrhyme here you go sir |
3ca1680
to
9271e68
Compare
|
@puppetlabs/windows this set of specs is ready to be reviewed. Mostly happy path items. @ThoughtCrhyme is working on the negative tests. Please review and pull in. I've ran the tests and they all pass locally for me. Test Suite: tests @ 2016-05-31 15:43:25 -0500
- Host Configuration Summary -
- Test Case Summary for suite 'tests' -
Total Suite Time: 277.74 seconds
Average Test Time: 21.36 seconds
Attempted: 13
Passed: 13
Failed: 0
Errored: 0
Skipped: 0
Pending: 0
Total: 13 |
| on(agent, "cmd.exe /c \"type #{config_file_location}\"") do |result| | ||
| assert_not_match(/tim/, get_xml_value("//sources/source[@id='chocolatey']/@user", result.output).to_s, 'User was not removed') | ||
| #todo looking for assert_empty value | ||
| assert_not_match(/test/, get_xml_value("//sources/source[@id='chocolatey']/@password", result.output).to_s, 'Password was not removed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably be changed to /.+/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Acceptance tests that verify chocolateysource provider for Windows. - Verifies adding, changing and removing priority - Verifies adding, changing and removing user/password - verifies adding source with minimal options happy path - verifies adding source with all options happy path
9271e68
to
44ab890
Compare
…bug_fix_for_ttl_extension (QA-2197) Bug Fix for Lifetime Extension
No description provided.