...
- Preconditions: none
- Test steps:
ndslabsctl
ndslabsctl -h
ndslabsctl --help
- Expected results
- Any of these commands should display the help/usage information
- Issues:
- help command still references "apictl"
- Resolved
Project administration
Add project (admin only)
...
- Preconditions
- Admin is logged in or current project user is logged in
- Test steps
- ndslabsctl get project <project>
- Expected results
- Displays project details (as json)
- Password is redacted
- Alternate flows:
- Project does not exist (404)
- Problem: Can only get details of currently logged in project -> admin user can no longer get project details
- Resolved
- Problem: Can only get details of currently logged in project -> admin user can no longer get project details
- Project is not current project (401 unauthorized)
- Project does not exist (404)
- Preconditions
...
Preconditions:
Project has been created
- Test steps:
- ndslabsctl login <user>
- Prompted for password
- Expected results:
- Login succeeded
- Alternative flows
- Invalid username / password (401 unauthorized)
- Notes:
- Login information is stored in ~/.apictl/.passwd. This files contains the currently logged in user and an authentication token. Removing this file is the equivalent of logging out
- Possible Issues:
- It is possible to execute login while already logged in.
- This may be intentional to allow you to easily switch namespaces.
- Won't fix, for now
- It is possible to execute login while already logged in.
Logout
- Preconditions
- User is logged in
- Test steps
- ndslabsctl logout
- ndslabsctl list services
- Expected results:
- List command results in "unauthorized"
- Issues
- Attempting to logout without logging in first yields:
"Error removing passwd data: remove /home/core/.apictl/.passwd: no such file or directory"
Resolved
- Attempting to logout without logging in first yields:
Change password
- Preconditions:
- User is logged in
- Test steps
- ndslabsctl login <user>
- ndslabsctl passwd
- Enter current password
- Enter new password
- Confirm new password
- Alternate flows:
- User not logged in (401 unauthorized)
- Password mismatch yield error message: "Passwords do not match"
- Expected results
- Password is changed
...