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

Commit

Permalink
Directory structure updates (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvennam authored and csantanapr committed Feb 22, 2018
1 parent 6ab598a commit 3c9dd88
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 152 deletions.
22 changes: 0 additions & 22 deletions runtimes/nodejs-8/actions/helloworld.js

This file was deleted.

15 changes: 0 additions & 15 deletions runtimes/nodejs-8/manifest.yaml

This file was deleted.

1 change: 1 addition & 0 deletions runtimes/nodejs/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ packages:
actions:
helloworld:
function: actions/helloworld.js
runtime: nodejs:8
22 changes: 0 additions & 22 deletions runtimes/php-7.1/actions/helloworld.php

This file was deleted.

15 changes: 0 additions & 15 deletions runtimes/php-7.1/manifest.yaml

This file was deleted.

1 change: 1 addition & 0 deletions runtimes/php/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ packages:
actions:
helloworld:
function: actions/helloworld.php
runtime: php:7.1
21 changes: 0 additions & 21 deletions runtimes/python-3.6.4/actions/helloworld.py

This file was deleted.

15 changes: 0 additions & 15 deletions runtimes/python-3.6.4/manifest.yaml

This file was deleted.

1 change: 1 addition & 0 deletions runtimes/python/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ packages:
actions:
helloworld:
function: actions/helloworld.py
runtime: python-jessie:3
21 changes: 0 additions & 21 deletions runtimes/swift-3.1.1/actions/helloworld.swift

This file was deleted.

15 changes: 0 additions & 15 deletions runtimes/swift-3.1.1/manifest.yaml

This file was deleted.

14 changes: 8 additions & 6 deletions tests/src/test/scala/templates/HelloTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class HelloTests extends TestHelpers
val wsk = new Wsk()

//set parameters for deploy tests
val nodejs8folder = "../runtimes/nodejs-8/actions";
val nodejs8folder = "../runtimes/nodejs/actions";
val nodejs6folder = "../runtimes/nodejs-6/actions";
val phpfolder = "../runtimes/php-7.1/actions";
val pythonfolder = "../runtimes/python-3.6.4/actions";
val swiftfolder = "../runtimes/swift-3.1.1/actions";
val phpfolder = "../runtimes/php/actions";
val pythonfolder = "../runtimes/python/actions";
val swiftfolder = "../runtimes/swift/actions";

behavior of "Hello World Template"

Expand All @@ -48,9 +48,10 @@ class HelloTests extends TestHelpers
*/
it should "invoke nodejs 8 helloworld.js and get the result" in withAssetCleaner(wskprops) { (wp, assetHelper) =>
val name = "helloNode"
val kind = Option("nodejs:8")
val file = Some(new File(nodejs8folder, "helloworld.js").toString());
assetHelper.withCleaner(wsk.action, name) { (action, _) =>
action.create(name, file)
action.create(name, file, kind)
}

withActivation(wsk.activation, wsk.action.invoke(name, Map("name" -> "Mindy".toJson))) {
Expand All @@ -59,9 +60,10 @@ class HelloTests extends TestHelpers
}
it should "invoke nodejs 8 helloworld.js without input and get stranger" in withAssetCleaner(wskprops) { (wp, assetHelper) =>
val name = "helloNode"
val kind = Option("nodejs:8")
val file = Some(new File(nodejs8folder, "helloworld.js").toString());
assetHelper.withCleaner(wsk.action, name) { (action, _) =>
action.create(name, file)
action.create(name, file, kind)
}

withActivation(wsk.activation, wsk.action.invoke(name)) {
Expand Down

0 comments on commit 3c9dd88

Please sign in to comment.