Refactor unit test wiith fake class in identity
Currently, most of unit tests in OSC is using fake class. But in identity, fake class is not be used. So, this BP attempts to add fake class and refactor unit tests for identity to keep the unit test consistent in OSC.
The works we should do are as flows:
In identity v2_0:
1.Add fake catalog class and refactor test_catalog
2.Add fake endpoint class and refactor test_endpoint
3.Add fake project class and refactor test_project
4.Add fake role class and refactor test_role
5.Add fake service class and refactor test_service
6.Add fake token class and refactor test_token
7.Add fake user class and refactor test_user
In identity v3:
1.Add fake catalog class and refactor test_catalog
2.Add fake endpoint class and refactor test_endpoint
3.Add fake project class and refactor test_project
4.Add fake role class and refactor test_role
5.Add fake service class and refactor test_service
6.Add fake token class and refactor test_token
7.Add fake user class and refactor test_user
8.Add fake consumer class and refactor test_consumer
9.Add fake credential class and refactor test_credential
10.Add fake domain class and refactor test_domain
11.Add fake group class and refactor test_group
12.Add fake identity_provider class and refactor test_identity_
13.Add fake mappings class and refactor test_mappings
14.Add fake oauth class and refactor test_oauth
15.Add fake protocol class and refactor test_protocol
16.Add fake region class and refactor test_region
17.Add fake role_assignment class and refactor test_role_
18.Add fake service_provider class and refactor test_service_
19.Add fake trust class and refactor test_trust
20.Add fake unscoped_saml class and refactor test_unscoped_saml
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- aohuanxuan
- Direction:
- Needs approval
- Assignee:
- aohuanxuan
- Definition:
- New
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add FakeObject class to fakes.py, update unit tests in identity V2.
Addressed by: https:/
Update Fakes.py and unit tests for commands in identity V2.0
Addressed by: https:/
Refactor unit tests for project and domain with fake classes in identityv3
Addressed by: https:/
Refactor identity v3 unit tests with fake class