Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story: Integration Testing: User management #336

Open
tock-ibm opened this issue Jan 31, 2022 · 1 comment
Open

Story: Integration Testing: User management #336

tock-ibm opened this issue Jan 31, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@tock-ibm
Copy link
Contributor

No description provided.

@cendhu
Copy link
Contributor

cendhu commented Feb 14, 2022

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

@tock-ibm tock-ibm added this to the v0.2 milestone Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants