-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
done /adim/api/service/{id}/backend_usages/{id}
- Loading branch information
1 parent
c3b1704
commit f0c6046
Showing
3 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from tests.integration import asserts | ||
from tests.integration.conftest import backend | ||
|
||
|
||
def test_backend_usage_can_be_created(backend_usage, backend_usage_params): | ||
asserts.assert_resource(backend_usage) | ||
asserts.assert_resource_params(backend_usage, backend_usage_params) | ||
|
||
|
||
def test_backend_usages_list(api, backend_usage, backend): | ||
assert len(backend.usages()) >= 1 | ||
|
||
|
||
def test_backend_usage_update(backend_usage, backend, backend_usage_update_params): | ||
updated_backend_usage = backend_usage.update(backend_usage_update_params) | ||
asserts.assert_resource(updated_backend_usage) | ||
asserts.assert_resource_params(updated_backend_usage, backend_usage_update_params) |