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

Commit 0250f96

Browse files
falkzollsomaya10
authored andcommitted
Switch credentials, adapt to changes in openwisk. (#67)
* Switch credentials, adapt to changes in openwisk. * Fix SwiftActionContainerTests.scala. * Add missing ','.
1 parent df258b2 commit 0250f96

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ notifications:
1414
secure: ZE3Y6k7io6D13CsP45gDGpIVToQbucSftdDmZicreSK9+TjBjMG90GPEGc1BXSyfQEgmmvZ2eHuL2iuA9cbrY/exX14YMzrT7ejh9YhvS2QDjMazvp7PigSVp05BiixppmWEAYiituPxAONr80mXxMKSUQBTqdoqaiIOVkMURMOvxg3n5iwSLQgTZrV+eaVjCcgJ4WWIFgrktr+Dpo6qd7IBc7cM+Wfk5WKhP9arXY59KPxKeB8Ksy2+geOspyZjLM3dEKhx2IfUkwtf4L3aW9LQewglWdGrsOt3S+vpGbMhvviua1HQsC8Al8TY5FnSfd9wM2x9hyZbFT7omz7/em8zuGZQi5C3NNCgRoHjlg0ccp9Kqh3ulIDAMhcTG+yYqo1y420HV4kdneuDbF+nyNnU+ouswgSwWlCUOSbwnprW3B39qui/8l9ktB/rOI7J76hlRj5ke0oi7bfEbcNSSFlTyZwHq6zzWXprSdXJAnT3DomN/rwTb+RiqA9T+G6TafmSB7ay4nmxzcuzTmMYQw3RCrXK9Uk7XzGCPvcquoimK5x13bi8yV2AjTw9rPy2xLsG0Yyn/ltnlbD7oDBWAdMkJZO/4s/STCJOUff05k94r62333pqKsP7sYoUX3bJuNoMvUr1GMSX1ydu7FEcBQG2ItDJKWl0uNWHI+o6pZ8=
1515

1616
before_install:
17-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_a0b9052d7bd5_key -iv $encrypted_a0b9052d7bd5_iv -in tests/credentials.json.enc -out tests/credentials.json -d; fi'
17+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K "$encrypted_DF18CF3F552A_key" -iv "$encrypted_DF18CF3F552A_iv" -in tests/credentials.json.enc -out tests/credentials.json -d; fi'
1818
- "./tools/travis/setup.sh"
1919
install: true
2020
script:

tests/credentials.json.enc

0 Bytes
Binary file not shown.

tests/src/test/scala/runtime/actionContainers/SwiftActionContainerTests.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ abstract class SwiftActionContainerTests extends BasicActionRunnerTests with Wsk
112112
| var d = "???"
113113
| var e = "???"
114114
| var f = "???"
115+
| var g = "???"
115116
| if let v : String = env["__OW_API_HOST"] {
116117
| a = "\(v)"
117118
| }
@@ -124,13 +125,16 @@ abstract class SwiftActionContainerTests extends BasicActionRunnerTests with Wsk
124125
| if let v : String = env["__OW_ACTION_NAME"] {
125126
| d = "\(v)"
126127
| }
127-
| if let v : String = env["__OW_ACTIVATION_ID"] {
128+
| if let v : String = env["__OW_ACTION_VERSION"] {
128129
| e = "\(v)"
129130
| }
130-
| if let v : String = env["__OW_DEADLINE"] {
131+
| if let v : String = env["__OW_ACTIVATION_ID"] {
131132
| f = "\(v)"
132133
| }
133-
| return ["api_host": a, "api_key": b, "namespace": c, "action_name": d, "activation_id": e, "deadline": f]
134+
| if let v : String = env["__OW_DEADLINE"] {
135+
| g = "\(v)"
136+
| }
137+
| return ["api_host": a, "api_key": b, "namespace": c, "action_name": d, "action_version": e, "activation_id": f, "deadline": g]
134138
| }
135139
""".stripMargin,
136140
enforceEmptyOutputStream = enforceEmptyOutputStream)

tests/src/test/scala/runtime/actionContainers/SwiftCodableActionContainerTests.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ abstract class SwiftCodableActionContainerTests extends BasicActionRunnerTests w
139139
| let api_key: String
140140
| let namespace: String
141141
| let action_name: String
142+
| let action_version: String
142143
| let activation_id: String
143144
| let deadline: String
144145
| }
@@ -150,6 +151,7 @@ abstract class SwiftCodableActionContainerTests extends BasicActionRunnerTests w
150151
| var d = "???"
151152
| var e = "???"
152153
| var f = "???"
154+
| var g = "???"
153155
| if let v : String = env["__OW_API_HOST"] {
154156
| a = "\(v)"
155157
| }
@@ -162,13 +164,16 @@ abstract class SwiftCodableActionContainerTests extends BasicActionRunnerTests w
162164
| if let v : String = env["__OW_ACTION_NAME"] {
163165
| d = "\(v)"
164166
| }
165-
| if let v : String = env["__OW_ACTIVATION_ID"] {
167+
| if let v : String = env["__OW_ACTION_VERSION"] {
166168
| e = "\(v)"
167169
| }
168-
| if let v : String = env["__OW_DEADLINE"] {
170+
| if let v : String = env["__OW_ACTIVATION_ID"] {
169171
| f = "\(v)"
170172
| }
171-
| let result = AnOutput(api_host:a, api_key:b, namespace:c, action_name:d, activation_id:e, deadline: f)
173+
| if let v : String = env["__OW_DEADLINE"] {
174+
| g = "\(v)"
175+
| }
176+
| let result = AnOutput(api_host:a, api_key:b, namespace:c, action_name:d, action_version:e, activation_id:f, deadline: g)
172177
| respondWith(result, nil)
173178
| }
174179
""".stripMargin,

0 commit comments

Comments
 (0)