Skip to content

Commit

Permalink
Add API test_scan_with_disabled_products stub
Browse files Browse the repository at this point in the history
  • Loading branch information
elyezer committed Feb 14, 2018
1 parent 537cd38 commit 5df67db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions camayoc/tests/qcs/api/v1/scans/test_network_scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,22 @@ def test_queue_mix_paused_canceled(shared_client, cleanup, source):
for scan in good_scans:
wait_until_state(scan, state='completed')
assert scan.read().json().get('fact_collection_id') > 0


def test_scan_with_disabled_products(isolated_filesystem, qpc_server_config):
"""Perform a scan and disable an optional product.
:id: 366604ed-e423-4140-b0d8-38626e264688
:description: Perform a scan and disable an optional product.
:steps:
1) Create a network credential
2) Create network source using the network credential.
3) Create a scan using the network source. When creating the scan
disable the optional products.
4) The scan must complete a fact id is generated. The facts related to
the disabled optional products should not be present or should be
empty.
:expectedresults: A scan must completed and the results should not include
any fact information for the disabled optional products.
:caseautomation: notautomated
"""

0 comments on commit 5df67db

Please sign in to comment.