You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2018/02/23 19:54:32 UTC
[incubator-openwhisk] branch master updated: Make package test
resilient against eventual consistency. (#3331)
This is an automated email from the ASF dual-hosted git repository.
rabbah 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 833c0a9 Make package test resilient against eventual consistency. (#3331)
833c0a9 is described below
commit 833c0a9c7df66ad0e34cb4cfc6e91dda199cc75d
Author: Markus Thömmes <ma...@me.com>
AuthorDate: Fri Feb 23 20:54:29 2018 +0100
Make package test resilient against eventual consistency. (#3331)
---
.../src/test/scala/whisk/core/controller/test/PackagesApiTests.scala | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/src/test/scala/whisk/core/controller/test/PackagesApiTests.scala b/tests/src/test/scala/whisk/core/controller/test/PackagesApiTests.scala
index 9dbb8c2..c0e2e40 100644
--- a/tests/src/test/scala/whisk/core/controller/test/PackagesApiTests.scala
+++ b/tests/src/test/scala/whisk/core/controller/test/PackagesApiTests.scala
@@ -335,11 +335,14 @@ class PackagesApiTests extends ControllerTestCommon with WhiskPackagesApi {
aname(),
jsDefault("??"),
annotations = Parameters(Parameters.Feed, "true"))
+
put(entityStore, provider)
put(entityStore, reference)
put(entityStore, action)
put(entityStore, feed)
+ waitOnView(entityStore, WhiskAction, provider.fullPath, 2)
+
// it should "reject get package reference from other subject" in {
val auser = WhiskAuthHelpers.newIdentity()
Get(s"/$namespace/${collection.path}/${reference.name}") ~> Route.seal(routes(auser)) ~> check {
@@ -349,7 +352,7 @@ class PackagesApiTests extends ControllerTestCommon with WhiskPackagesApi {
Get(s"$collectionPath/${reference.name}") ~> Route.seal(routes(creds)) ~> check {
status should be(OK)
val response = responseAs[WhiskPackageWithActions]
- response should be(reference withActions (List(action, feed)))
+ response should be(reference withActions List(action, feed))
}
}
--
To stop receiving notification emails like this one, please contact
rabbah@apache.org.