@@ -25,7 +25,7 @@ import common._
25
25
import org .junit .runner .RunWith
26
26
import org .scalatest .junit .JUnitRunner
27
27
import spray .json ._
28
- import org .apache .openwhisk .core .entity .WhiskAction . provideApiKeyAnnotationName
28
+ import org .apache .openwhisk .core .entity .Annotations
29
29
import spray .json .DefaultJsonProtocol .StringJsonFormat
30
30
31
31
@ RunWith (classOf [JUnitRunner ])
@@ -56,7 +56,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
56
56
name = actionName,
57
57
artifact = file,
58
58
kind = Some (actionKind),
59
- annotations = Map (provideApiKeyAnnotationName -> JsTrue ))
59
+ annotations = Map (Annotations . ProvideApiKeyAnnotationName -> JsTrue ))
60
60
}
61
61
// invoke the action
62
62
var params = Map (" dummy" -> JsString (" dummy" ))
@@ -87,7 +87,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
87
87
name = actionName,
88
88
file,
89
89
kind = Some (actionKind),
90
- annotations = Map (provideApiKeyAnnotationName -> JsTrue ))
90
+ annotations = Map (Annotations . ProvideApiKeyAnnotationName -> JsTrue ))
91
91
}
92
92
93
93
// invoke the action
@@ -132,7 +132,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
132
132
name = actionName,
133
133
file,
134
134
kind = Some (actionKind),
135
- annotations = Map (provideApiKeyAnnotationName -> JsTrue ))
135
+ annotations = Map (Annotations . ProvideApiKeyAnnotationName -> JsTrue ))
136
136
}
137
137
138
138
// invoke the action
@@ -171,7 +171,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
171
171
name = actionName,
172
172
file,
173
173
kind = Some (actionKind),
174
- annotations = Map (provideApiKeyAnnotationName -> JsTrue ))
174
+ annotations = Map (Annotations . ProvideApiKeyAnnotationName -> JsTrue ))
175
175
}
176
176
}
177
177
@@ -198,7 +198,11 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
198
198
// create a dummy action and trigger for the rule
199
199
assetHelper.withCleaner(wsk.action, ruleActionName) { (action, name) =>
200
200
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 ))
202
206
}
203
207
204
208
assetHelper.withCleaner(wsk.trigger, ruleTriggerName) { (trigger, name) =>
@@ -215,7 +219,7 @@ abstract class SwiftSDKTests extends TestHelpers with WskTestHelpers with WskAct
215
219
name,
216
220
createRuleFile,
217
221
kind = Some (actionKind),
218
- annotations = Map (provideApiKeyAnnotationName -> JsTrue ))
222
+ annotations = Map (Annotations . ProvideApiKeyAnnotationName -> JsTrue ))
219
223
}
220
224
221
225
// invoke the create rule action
0 commit comments