John Davis
f6763a56f8
Fix api test: pass full set of new associations
...
In the previous version, we only passed NEW associations, which were
ADDED to the current associations. The new version implements a true
UPDATE operation, which replaces the existing set of associations
with the provided set of associations.
2024-09-23 17:05:15 -04:00
davelopez
84d6971d5e
Use random user in test
...
Since we cannot remove the user from the group to restore its previous state we need to use a user that will not be part of other tests to avoid unwanted interactions.
2024-06-13 19:15:40 +02:00
davelopez
fbf903d1e7
Refactor API test for updating a group
2024-06-13 18:24:18 +02:00
davelopez
a8cb547519
Add tests for replacing and removing group users and roles
2024-06-13 16:53:41 +02:00
davelopez
d73a82052b
Increase API test coverage for group update
...
The second update does not provide a group_name as we are not changing it. This will fail with the current code as the update payload model is the same as the create one.
2024-06-12 12:40:48 +02:00
davelopez
b9e40f8fa6
Make group update API test rerunnable in same instance
2024-02-01 17:40:45 +01:00
davelopez
0a80772d0b
Add tests for purged groups DB deletion
2024-02-01 16:54:57 +01:00
davelopez
7f0d5ba2d3
Add API test coverage for groups deletion/purge
2024-02-01 16:53:28 +01:00
Nicola Soranzo
0391cd4b62
Rename FooBarTestCase test classes as TestFooBar in API, framework, performance, Selenium and ToolShed tests
...
These are collected by pytest only because they are `unittest.TestCase` derived,
but normally pytest collects only test classes whose name starts with `Test`, see
https://docs.pytest.org/en/7.1.x/reference/reference.html#confval-python_classes
Also:
- Some type annotations
2022-10-15 17:54:31 +01:00
John Chilton
954c78f301
Disable implicit optional typing across the project.
2022-03-18 09:06:30 -04:00
Dannon Baker
623a5e165a
Apply black formatting.
...
Apply isort.
2022-02-03 07:42:20 -05:00
davelopez
bfde7675c9
Adapt DELETE and PUT methods in tests
2021-06-18 17:43:39 +02:00
davelopez
d38ba53b21
Fix groups update endpoint
...
Prevent possible name duplication and add error handling.
Fix tests to assert 409 when the operation may result in a name conflict.
2021-02-18 14:50:40 +01:00
davelopez
5e129c1f6a
Add API tests for groups
2021-02-18 14:50:40 +01:00