Skip to content

Commit

Permalink
tests: Add full API product/component/bugfields coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Robinson <crobinso@redhat.com>
  • Loading branch information
crobinso committed Jan 10, 2020
1 parent f6b6725 commit 650f40d
Show file tree
Hide file tree
Showing 12 changed files with 540 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/data/mockargs/test_api_component_create1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{'default_assignee': 'foo@example.com',
'default_cc': 'foo3@example.com',
'default_qa_contact': 'foo2@example.com',
'is_active': 0,
'product': 'fooproduct'}
4 changes: 4 additions & 0 deletions tests/data/mockargs/test_api_component_update1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{'names': [{'component': 'foocomponent', 'product': 'fooproduct'}],
'updates': {'blaharg': 'blahval',
'default_assignee': 'foo@example.com',
'is_active': 0}}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_api_products_get1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'ids': [1, 7]}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_api_products_get2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'include_fields': ['name', 'id'], 'names': ['test-fake-product']}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_api_products_get3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'include_fields': ['name', 'id', 'components'], 'names': ['test-fake-product']}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_api_products_get4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'exclude_fields': ['product.foo'], 'ids': ['7']}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_api_products_get5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'include_fields': ['name', 'id'], 'names': [0]}
1 change: 1 addition & 0 deletions tests/data/mockargs/test_bug_fields.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{'include_fields': ['name'], 'names': ['bug_status']}
Loading

0 comments on commit 650f40d

Please sign in to comment.