Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 897ec3b

Browse files
falkzollmhenke1
authored andcommitted
Fix tests breakages related to apache/openwhisk@aeabc35. (#64)
1 parent 39b121c commit 897ec3b

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

tests/src/test/scala/runtime/sdk/SwiftSDKTests.scala

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import common._
2525
import org.junit.runner.RunWith
2626
import org.scalatest.junit.JUnitRunner
2727
import spray.json._
28-
import org.apache.openwhisk.core.entity.WhiskAction.provideApiKeyAnnotationName
28+
import org.apache.openwhisk.core.entity.Annotations
2929
import spray.json.DefaultJsonProtocol.StringJsonFormat
3030

3131
@RunWith(classOf[JUnitRunner])
@@ -56,7 +56,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
5656
name = actionName,
5757
artifact = file,
5858
kind = Some(actionKind),
59-
annotations = Map(provideApiKeyAnnotationName -> JsTrue))
59+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
6060
}
6161
// invoke the action
6262
var params = Map("dummy" -> JsString("dummy"))
@@ -87,7 +87,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
8787
name = actionName,
8888
file,
8989
kind = Some(actionKind),
90-
annotations = Map(provideApiKeyAnnotationName -> JsTrue))
90+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
9191
}
9292

9393
// invoke the action
@@ -132,7 +132,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
132132
name = actionName,
133133
file,
134134
kind = Some(actionKind),
135-
annotations = Map(provideApiKeyAnnotationName -> JsTrue))
135+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
136136
}
137137

138138
// invoke the action
@@ -171,7 +171,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
171171
name = actionName,
172172
file,
173173
kind = Some(actionKind),
174-
annotations = Map(provideApiKeyAnnotationName -> JsTrue))
174+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
175175
}
176176
}
177177

@@ -198,7 +198,11 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
198198
// create a dummy action and trigger for the rule
199199
assetHelper.withCleaner(wsk.action, ruleActionName) { (action, name) =>
200200
val dummyFile = Some(new File(actionTypeDir, "hello.swift").toString())
201-
action.create(name, dummyFile, kind = Some(actionKind), annotations = Map(provideApiKeyAnnotationName -> JsTrue))
201+
action.create(
202+
name,
203+
dummyFile,
204+
kind = Some(actionKind),
205+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
202206
}
203207

204208
assetHelper.withCleaner(wsk.trigger, ruleTriggerName) { (trigger, name) =>
@@ -215,7 +219,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
215219
name,
216220
createRuleFile,
217221
kind = Some(actionKind),
218-
annotations = Map(provideApiKeyAnnotationName -> JsTrue))
222+
annotations = Map(Annotations.ProvideApiKeyAnnotationName -> JsTrue))
219223
}
220224

221225
// invoke the create rule action

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy