-
Notifications
You must be signed in to change notification settings - Fork 95
Conversation
Right now, all unit tests are done manually.
|
create two tenants, make sure each tenant can only see volumes belong to that tenant step 1: create another tenant(tenant2), add vm and access control to this tenant
step 2: create two volumes on photon4 (VM which is associated to tenant1)
step 3: create two volumes on photon 5 (VM which is associated to tenant2)
step4: run “docker volume ls” on both VMs, only volumes created by that tenant are listed
On photon 5(tenant2)
|
unit test for tenant rm command step 1: remove tenant2
step 2: run "docker volume ls" on photon5 (which used to belong to tenant2, but now not belong to any tenant), it will only show volumes which not associated with any tenant
step 3: check the "/vmfs/volumes/datastore1/dockervols/", all volumes under "tenant2" are removed and directory "tenant2" is removed |
unit test for ls command with --tenant option
|
Please start first round review.
|
@lipingxue - please rebase on master (which now has the CLI syntax merged) and re-push , this way we can review the delta only. Thanks |
a6121f1
to
8a2620d
Compare
@msterin I have rebased with master and repush the change. |
Overall good draft and the logic is sound. Copy-n-paste should be eliminated and some consistency in messages (with the rest of the code) is needed. Also it still has a bunch of files from prior PRs, there is no need to do it - please only push the new code in this PR (you can always branch from the prior PR , this way only delta will show up on the review) |
I incorrectly merged commit(SHA 396dec8) into master branch. This merge has been revert from master by Ritesh. |
* master: (25 commits) Update new ESX IP added forgotten .so file Install sqlite3 py libs on ESX and load for Python2 Added py code and binaries for sqlite3 python libs Update drone security Removed accidental .pyc files Handle byte to string conversions for status command. Auth configuration and operation admission check (Auth.liping) (vmware-archive#603) Revert "Cli auth.liping" Cli auth.liping (vmware-archive#640) Handle missing or invalid fs type on mount. (vmware-archive#639) Updated Admin CLI commands to support tenants. (vmware-archive#620) Workaround older versions of e2fsprogs (vmware-archive#631) Add auth proposal Made handing of missing metafile less harsh. (vmware-archive#627) Fixed ACLs in payload bin dir (vmware-archive#624) Fixed error handling for set command. (vmware-archive#610) Use new error variables when rolling back volume creation to avoid nil reassignment. (vmware-archive#617) Change wording Fix broken link ...
This change includes the code change to enable AdminCLI command to support tenants.
See #620