Skip to content
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

Conversation

ferventcoder
Copy link

No description provided.

- 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.
@ferventcoder
Copy link
Author

@ThoughtCrhyme here you go sir

@ferventcoder ferventcoder force-pushed the ticket/master/MODULES-3037-acceptance branch from 3ca1680 to 9271e68 Compare May 31, 2016 20:32
@ferventcoder ferventcoder changed the title {WIP}(MODULES-3037) Acceptance tests - ChocolateySource (MODULES-3037) Acceptance tests - ChocolateySource May 31, 2016
@ferventcoder
Copy link
Author

@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')
Copy link
Author

@ferventcoder ferventcoder May 31, 2016

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 /.+/

Copy link
Author

@ferventcoder ferventcoder May 31, 2016

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
@ferventcoder ferventcoder force-pushed the ticket/master/MODULES-3037-acceptance branch from 9271e68 to 44ab890 Compare May 31, 2016 23:20
@glennsarti glennsarti merged commit 5214937 into puppetlabs:master Jun 1, 2016
@ferventcoder ferventcoder deleted the ticket/master/MODULES-3037-acceptance branch June 1, 2016 04:08
ThoughtCrhyme pushed a commit to ThoughtCrhyme/puppetlabs-chocolatey that referenced this pull request Mar 20, 2017
…bug_fix_for_ttl_extension

(QA-2197) Bug Fix for Lifetime Extension
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants