orion-server icon indicating copy to clipboard operation
orion-server copied to clipboard

Story: Integration Testing: User management

Open tock-ibm opened this issue 3 years ago • 1 comments

tock-ibm avatar Jan 31 '22 10:01 tock-ibm

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

  1. Create databases
  2. Create users with the required certificates and different access control permissions
  3. Test whether the access control logic on databases work

Scenario 2: Testing User Updates

  1. Create users with the required certificates and access control privileges
  2. Updates users' certificate and access control privileges
  3. Test whether the update executed successfully

Scenario 3: Testing User Removal

  1. Create users with the required certificates and access control privileges
  2. Remove users
  3. Test whether the update executed successfully

cendhu avatar Feb 14 '22 07:02 cendhu