orion-server
orion-server copied to clipboard
Story: Integration Testing: User management
We support the following APIs at the SDK:
// PutUser introduce new user into database
PutUser(user *types.User, acl *types.AccessControl) error
// GetUser obtain user's record from database
GetUser(userID string) (*types.User, error)
// RemoveUser delete existing user from the database
RemoveUser(userID string) error
Scenario 1: Testing the Access Control on Read and Write to Database
- Create databases
- Create users with the required certificates and different access control permissions
- Test whether the access control logic on databases work
Scenario 2: Testing User Updates
- Create users with the required certificates and access control privileges
- Updates users' certificate and access control privileges
- Test whether the update executed successfully
Scenario 3: Testing User Removal
- Create users with the required certificates and access control privileges
- Remove users
- Test whether the update executed successfully