File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
tests/src/test/scala/org/apache/openwhisk/core/invoker/test Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ class ContainerMessageConsumerTests
62
62
implicit val transId = TransactionId .testing
63
63
implicit val creationId = CreationId .generate()
64
64
65
+ val authStore = WhiskAuthStore .datastore()
66
+
65
67
override def afterAll (): Unit = {
66
68
TestKit .shutdownActorSystem(system)
67
69
super .afterAll()
@@ -82,12 +84,21 @@ class ContainerMessageConsumerTests
82
84
private val invokerInstance = InvokerInstanceId (0 , userMemory = defaultUserMemory)
83
85
private val schedulerInstanceId = SchedulerInstanceId (" 0" )
84
86
87
+ /* Subject document needed for the second test */
85
88
private val invocationNamespace = EntityName (" invocationSpace" )
89
+ private val uuid = UUID ()
90
+ private val ak = BasicAuthenticationAuthKey (uuid, Secret ())
91
+ private val ns = Namespace (invocationNamespace, uuid)
92
+ private val auth = WhiskAuth (Subject (), Set (WhiskNamespace (ns, ak)))
86
93
87
94
private val schedulerHost = " 127.17.0.1"
88
95
89
96
private val rpcPort = 13001
90
97
98
+ override def beforeAll () = {
99
+ put(authStore, auth)
100
+ }
101
+
91
102
override def afterEach (): Unit = {
92
103
cleanup()
93
104
}
You can’t perform that action at this time.
0 commit comments