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 @@ -61,6 +61,8 @@ class ContainerMessageConsumerTests
61
61
implicit val transId = TransactionId .testing
62
62
implicit val creationId = CreationId .generate()
63
63
64
+ val authStore = WhiskAuthStore .datastore()
65
+
64
66
override def afterAll (): Unit = {
65
67
TestKit .shutdownActorSystem(system)
66
68
super .afterAll()
@@ -81,12 +83,21 @@ class ContainerMessageConsumerTests
81
83
private val invokerInstance = InvokerInstanceId (0 , userMemory = defaultUserMemory)
82
84
private val schedulerInstanceId = SchedulerInstanceId (" 0" )
83
85
86
+ /* Subject document needed for the second test */
84
87
private val invocationNamespace = EntityName (" invocationSpace" )
88
+ private val uuid = UUID ()
89
+ private val ak = BasicAuthenticationAuthKey (uuid, Secret ())
90
+ private val ns = Namespace (invocationNamespace, uuid)
91
+ private val auth = WhiskAuth (Subject (), Set (WhiskNamespace (ns, ak)))
85
92
86
93
private val schedulerHost = " 127.17.0.1"
87
94
88
95
private val rpcPort = 13001
89
96
97
+ override def beforeAll () = {
98
+ put(authStore, auth)
99
+ }
100
+
90
101
override def afterEach (): Unit = {
91
102
cleanup()
92
103
}
You can’t perform that action at this time.
0 commit comments