rabbah commented on a change in pull request #2530: Add a database flag to
completely block a given subject.
URL:
https://github.com/apache/incubator-openwhisk/pull/2530#discussion_r129849350
##########
File path: tests/src/test/scala/whisk/core/admin/WskAdminTests.scala
##########
@@ -91,4 +91,44 @@ class WskAdminTests
val ns = wsk.namespace.whois()
wskadmin.cli(Seq("user", "get", ns)).stdout.trim should
be(wskprops.authKey)
}
+
+ it should "block and unblock a user respectively" in {
+ val wskadmin = new RunWskAdminCmd {}
+ val auth = AuthKey()
+ val subject = Subject().asString
+ val other = Subject().asString
+ val commonNamespace = "testspace"
+ try {
+ wskadmin.cli(Seq("user", "create", subject, "-ns",
commonNamespace, "-u", auth.compact))
Review comment:
i would rename `subject` and `other` with `user1` and `user2` (or `subject1`
and `subject2`) :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services