openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbic...@apache.org
Subject [incubator-openwhisk] branch master updated: Wait for view in AuthenticateTests. (#2694)
Date Tue, 05 Sep 2017 11:58:15 GMT
This is an automated email from the ASF dual-hosted git repository.

cbickel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new c50d9be  Wait for view in AuthenticateTests. (#2694)
c50d9be is described below

commit c50d9bec5e86a33911e7867de82a03e9462d54bd
Author: Markus Thömmes <markusthoemmes@me.com>
AuthorDate: Tue Sep 5 13:58:12 2017 +0200

    Wait for view in AuthenticateTests. (#2694)
---
 tests/src/test/scala/whisk/core/controller/test/AuthenticateTests.scala | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/src/test/scala/whisk/core/controller/test/AuthenticateTests.scala b/tests/src/test/scala/whisk/core/controller/test/AuthenticateTests.scala
index 2c6415b..ad4789d 100644
--- a/tests/src/test/scala/whisk/core/controller/test/AuthenticateTests.scala
+++ b/tests/src/test/scala/whisk/core/controller/test/AuthenticateTests.scala
@@ -57,6 +57,7 @@ class AuthenticateTests extends ControllerTestCommon with Authenticate {
         // Try to login with each specific namespace
         namespaces.foreach { ns =>
             println(s"Trying to login to $ns")
+            waitOnView(authStore, ns.authkey, 1) // wait for the view to be updated
             val pass = BasicHttpCredentials(ns.authkey.uuid.asString, ns.authkey.key.asString)
             val user = Await.result(validateCredentials(Some(pass)), dbOpTimeout)
             user.get shouldBe Identity(subject, ns.name, ns.authkey, Privilege.ALL)

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message