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

Stubbed out scan tests for CRUD #207

Merged
merged 5 commits into from
Apr 2, 2018
Merged

Stubbed out scan tests for CRUD #207

merged 5 commits into from
Apr 2, 2018

Conversation

kholdaway
Copy link
Contributor

No description provided.

@kholdaway kholdaway requested review from a team April 2, 2018 15:18
@codecov
Copy link

codecov bot commented Apr 2, 2018

Codecov Report

Merging #207 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #207   +/-   ##
=======================================
  Coverage   75.25%   75.25%           
=======================================
  Files           5        5           
  Lines         194      194           
=======================================
  Hits          146      146           
  Misses         48       48

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b120d9f...89ffec7. Read the comment docs.

Copy link
Contributor

@kdelee kdelee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments. Trust you to handle them appropriately.

One final request -- please squash these commits into one commit. Thanks!

@@ -344,6 +344,9 @@
QCS_SOURCE_TYPES = ('vcenter', 'network', 'satellite')
"""Types of sources that the quipucords server supports."""

QCS_SCAN_TYPES = ('inspect', 'connect')
"""Types of scans that the quipucords server supports."""

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

result = scan_add({
'name': scan_name,
'sources': config_sources()[0]['name'],
'sources': source_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

'source_type': 'network'}]}

assert expected_result == scan_show_result

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanted to be exhaustive you could somehow make this do more combinations by parametrizing the test ... but that gets done on API side too so may be redundant. Up to you

:description: Perform a scan and disable an optional product.
:steps: Run ``qpc scan start --sources <source> --disable-optional-products
:steps:
1) Run ``qpc scan start --sources <source> --disable-optional-products
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this module would not have any running scans?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy/paste error. Fixed it now.

@kholdaway kholdaway merged commit 174aa24 into master Apr 2, 2018
@kholdaway kholdaway deleted the issues/192-1 branch April 2, 2018 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants