You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/05/02 14:48:58 UTC

[GitHub] mrutkows closed pull request #3596: Add short license header to test data files

mrutkows closed pull request #3596: Add short license header to test data files
URL: https://github.com/apache/incubator-openwhisk/pull/3596
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tests/dat/actions/applicationError.js b/tests/dat/actions/applicationError.js
index bc8a39d26b..911833ce52 100644
--- a/tests/dat/actions/applicationError.js
+++ b/tests/dat/actions/applicationError.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
     return { error: "This error thrown on purpose by the action."};
 }
diff --git a/tests/dat/actions/argCheck.js b/tests/dat/actions/argCheck.js
index 3220bfd6ea..314e9a5139 100644
--- a/tests/dat/actions/argCheck.js
+++ b/tests/dat/actions/argCheck.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(params) {
     return {payload: params.payload};
 }
diff --git a/tests/dat/actions/asyncError.js b/tests/dat/actions/asyncError.js
index 44686d799c..577654d069 100644
--- a/tests/dat/actions/asyncError.js
+++ b/tests/dat/actions/asyncError.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(params) {
     return Promise.reject({msg: 'failed activation on purpose'});
 }
diff --git a/tests/dat/actions/base64Web.js b/tests/dat/actions/base64Web.js
index 3e4773ebc0..4f945cbb34 100644
--- a/tests/dat/actions/base64Web.js
+++ b/tests/dat/actions/base64Web.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
     return {
         headers: {
diff --git a/tests/dat/actions/cat.js b/tests/dat/actions/cat.js
index 4d73e56e7e..a8b7207161 100644
--- a/tests/dat/actions/cat.js
+++ b/tests/dat/actions/cat.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Equivalent to unix cat command.
  * Return all the lines in an array. All other fields in the input message are stripped.
@@ -9,5 +12,3 @@ function main(msg) {
     console.log('cat: returning ' + JSON.stringify(retn));
     return retn;
 }
-
-
diff --git a/tests/dat/actions/conductor.js b/tests/dat/actions/conductor.js
index 30a7171e55..01520ded67 100644
--- a/tests/dat/actions/conductor.js
+++ b/tests/dat/actions/conductor.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Minimal conductor action.
  */
diff --git a/tests/dat/actions/corsHeaderMod.js b/tests/dat/actions/corsHeaderMod.js
index df9b70410f..87527f7875 100644
--- a/tests/dat/actions/corsHeaderMod.js
+++ b/tests/dat/actions/corsHeaderMod.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
     return {
         headers: {
diff --git a/tests/dat/actions/countdown.js b/tests/dat/actions/countdown.js
index 520eb95145..0a8f28083e 100644
--- a/tests/dat/actions/countdown.js
+++ b/tests/dat/actions/countdown.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * An action that invokes itself recursively, programmatically using the whisk
  * Javascript API.
diff --git a/tests/dat/actions/createRule.swift b/tests/dat/actions/createRule.swift
index 67fa062986..5e615e1a55 100644
--- a/tests/dat/actions/createRule.swift
+++ b/tests/dat/actions/createRule.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 func main(args: [String:Any]) -> [String:Any] {
   guard let triggerName = args["triggerName"] as? String else {
       return ["error": "You must specify a triggerName parameter!"]
diff --git a/tests/dat/actions/createTrigger.swift b/tests/dat/actions/createTrigger.swift
index 7039ac4c2d..3a4b7b939c 100644
--- a/tests/dat/actions/createTrigger.swift
+++ b/tests/dat/actions/createTrigger.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 func main(args: [String:Any]) -> [String:Any] {
  guard let triggerName = args["triggerName"] as? String else {
     return ["error": "You must specify a triggerName parameter!"]
diff --git a/tests/dat/actions/dosLogs.js b/tests/dat/actions/dosLogs.js
index b069bcf122..49503c01c5 100644
--- a/tests/dat/actions/dosLogs.js
+++ b/tests/dat/actions/dosLogs.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(msg) {
     // Each log line with 16 characters (new line character counts)
     var lines = msg.payload / 16 || 1;
diff --git a/tests/dat/actions/echo-web-http.js b/tests/dat/actions/echo-web-http.js
index 1fabbaab1e..8933dbea01 100644
--- a/tests/dat/actions/echo-web-http.js
+++ b/tests/dat/actions/echo-web-http.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(params) {
     var bodyobj = params || {};
     bodystr = JSON.stringify(bodyobj);
@@ -7,4 +10,3 @@ function main(params) {
         body: new Buffer(bodystr).toString('base64')
     };
 }
-
diff --git a/tests/dat/actions/echo.js b/tests/dat/actions/echo.js
index 37df10beaf..4c0af91467 100644
--- a/tests/dat/actions/echo.js
+++ b/tests/dat/actions/echo.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Returns params, or an empty string if no parameter values are provided
  */
diff --git a/tests/dat/actions/emptyJSONResult.js b/tests/dat/actions/emptyJSONResult.js
index b3ffc0a67c..d234b20b0b 100644
--- a/tests/dat/actions/emptyJSONResult.js
+++ b/tests/dat/actions/emptyJSONResult.js
@@ -1,2 +1,5 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(params) {
 }
diff --git a/tests/dat/actions/head.js b/tests/dat/actions/head.js
index f6d5487839..c70e7f0fda 100644
--- a/tests/dat/actions/head.js
+++ b/tests/dat/actions/head.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return the first num lines of an array.
  * @param lines An array of strings.
@@ -10,5 +13,3 @@ function main(msg) {
     console.log('head get first ' + num + ' lines of ' + lines + ': ' + head);
     return {lines: head, num: num};
 }
-
-
diff --git a/tests/dat/actions/hello.js b/tests/dat/actions/hello.js
index 82b3bcfaa8..18d806caeb 100644
--- a/tests/dat/actions/hello.js
+++ b/tests/dat/actions/hello.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Hello, world.
  */
diff --git a/tests/dat/actions/hello.swift b/tests/dat/actions/hello.swift
index 7c903a5fcb..0cc3ca3639 100644
--- a/tests/dat/actions/hello.swift
+++ b/tests/dat/actions/hello.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Hello world as a Swift Whisk action.
  */
diff --git a/tests/dat/actions/helloAsync.js b/tests/dat/actions/helloAsync.js
index 2c0acdfeb8..28a736bfdd 100644
--- a/tests/dat/actions/helloAsync.js
+++ b/tests/dat/actions/helloAsync.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * word count utility, coded as an asynchronous action for pedagogical
  * purposes
diff --git a/tests/dat/actions/helloContext.js b/tests/dat/actions/helloContext.js
index d4957d953c..d218a588e1 100644
--- a/tests/dat/actions/helloContext.js
+++ b/tests/dat/actions/helloContext.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
     return {
        "api_host": process.env['__OW_API_HOST'],
diff --git a/tests/dat/actions/helloDeadline.js b/tests/dat/actions/helloDeadline.js
index 8e973075ce..d4af0e8516 100644
--- a/tests/dat/actions/helloDeadline.js
+++ b/tests/dat/actions/helloDeadline.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
 
     var deadline = process.env['__OW_DEADLINE']
diff --git a/tests/dat/actions/helloOpenwhiskPackage.js b/tests/dat/actions/helloOpenwhiskPackage.js
index 5ecd6c2a91..81c0e8d3d8 100644
--- a/tests/dat/actions/helloOpenwhiskPackage.js
+++ b/tests/dat/actions/helloOpenwhiskPackage.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var openwhisk = require('openwhisk')
 
 function main(args) {
diff --git a/tests/dat/actions/helloPromise.js b/tests/dat/actions/helloPromise.js
index 36903de81f..a4477a6fea 100644
--- a/tests/dat/actions/helloPromise.js
+++ b/tests/dat/actions/helloPromise.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
     return new Promise(function(resolve, reject) {
         setTimeout(function() {
diff --git a/tests/dat/actions/httpGet.swift b/tests/dat/actions/httpGet.swift
index d1ca609877..d02874850b 100644
--- a/tests/dat/actions/httpGet.swift
+++ b/tests/dat/actions/httpGet.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sample code using the experimental Swift 3 runtime
  * with links to KituraNet and GCD
diff --git a/tests/dat/actions/initexit.js b/tests/dat/actions/initexit.js
index 6cee2e1e79..4fbc1840b8 100644
--- a/tests/dat/actions/initexit.js
+++ b/tests/dat/actions/initexit.js
@@ -1 +1,4 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 process.exit(1);
diff --git a/tests/dat/actions/initforever.js b/tests/dat/actions/initforever.js
index 1fa180e565..17a8d11934 100644
--- a/tests/dat/actions/initforever.js
+++ b/tests/dat/actions/initforever.js
@@ -1 +1,4 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 while (true) {}
diff --git a/tests/dat/actions/invoke.swift b/tests/dat/actions/invoke.swift
index fd32501563..d69e90b2e0 100644
--- a/tests/dat/actions/invoke.swift
+++ b/tests/dat/actions/invoke.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 import SwiftyJSON
 
 func main(args: [String:Any]) -> [String:Any] {
diff --git a/tests/dat/actions/invokeNonBlocking.swift b/tests/dat/actions/invokeNonBlocking.swift
index a12c1659b1..813bf8c385 100644
--- a/tests/dat/actions/invokeNonBlocking.swift
+++ b/tests/dat/actions/invokeNonBlocking.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 import SwiftyJSON
 
 func main(args: [String:Any]) -> [String:Any] {
diff --git a/tests/dat/actions/issue-1562.js b/tests/dat/actions/issue-1562.js
index 9064817c38..4467adc137 100644
--- a/tests/dat/actions/issue-1562.js
+++ b/tests/dat/actions/issue-1562.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 // We expect this action to always result in errored activations.
 function main(args) {
     return new Promise((resolve, reject) => {
diff --git a/tests/dat/actions/log.js b/tests/dat/actions/log.js
index bfbd513d12..4e54eef0b2 100644
--- a/tests/dat/actions/log.js
+++ b/tests/dat/actions/log.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Emit strings to stdout/stderr.
  */
diff --git a/tests/dat/actions/malformed.js b/tests/dat/actions/malformed.js
index 587be6b4c3..912dab6ff8 100644
--- a/tests/dat/actions/malformed.js
+++ b/tests/dat/actions/malformed.js
@@ -1 +1,4 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 x
diff --git a/tests/dat/actions/malformed.py b/tests/dat/actions/malformed.py
index 6cedc326aa..41f99df081 100644
--- a/tests/dat/actions/malformed.py
+++ b/tests/dat/actions/malformed.py
@@ -1,2 +1,5 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 """Invalid Python comment test."""
 // invalid python comment  # noqa -- tell linters to ignore the intentional syntax error
diff --git a/tests/dat/actions/memoryWithGC.js b/tests/dat/actions/memoryWithGC.js
index fb174a382c..35c0a0c068 100644
--- a/tests/dat/actions/memoryWithGC.js
+++ b/tests/dat/actions/memoryWithGC.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function eat(memoryMB) {
     var bytes = 1*1024*1024*memoryMB;
     var buffer = new Buffer.alloc(bytes, 'a');
diff --git a/tests/dat/actions/multipleHeaders.js b/tests/dat/actions/multipleHeaders.js
index f19e23636f..b60bb1458d 100644
--- a/tests/dat/actions/multipleHeaders.js
+++ b/tests/dat/actions/multipleHeaders.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
     return {
         headers: {
diff --git a/tests/dat/actions/niam.js b/tests/dat/actions/niam.js
index 378201dc4c..b8da72060f 100644
--- a/tests/dat/actions/niam.js
+++ b/tests/dat/actions/niam.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function niam(args) {
     return { 'greetings': 'Hello from a non-standard entrypoint.' };
 }
diff --git a/tests/dat/actions/niam.py b/tests/dat/actions/niam.py
index 30a49455bc..a21c036894 100644
--- a/tests/dat/actions/niam.py
+++ b/tests/dat/actions/niam.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 """Python Non-standard entry point test."""
 
 
diff --git a/tests/dat/actions/niam.swift b/tests/dat/actions/niam.swift
index c85a34c8aa..13754bcf0e 100644
--- a/tests/dat/actions/niam.swift
+++ b/tests/dat/actions/niam.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /* Swift action with a non-default entry point. */
 func niam(args: [String:Any]) -> [String:Any] {
     return [ "greetings" : "Hello from a non-standard entrypoint." ]
diff --git a/tests/dat/actions/openFiles.js b/tests/dat/actions/openFiles.js
index b2dfdaaf5f..c6c935ac12 100644
--- a/tests/dat/actions/openFiles.js
+++ b/tests/dat/actions/openFiles.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 var fs = require("fs");
 
 function main(params) {
diff --git a/tests/dat/actions/ping.js b/tests/dat/actions/ping.js
index fda3066a84..2ac1649c18 100644
--- a/tests/dat/actions/ping.js
+++ b/tests/dat/actions/ping.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(msg) {
     var hostToPing = msg.payload;
     console.log('Pinging to ' + hostToPing);
diff --git a/tests/dat/actions/pngWeb.js b/tests/dat/actions/pngWeb.js
index 3a644b0fc6..7fd31ef2d2 100644
--- a/tests/dat/actions/pngWeb.js
+++ b/tests/dat/actions/pngWeb.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
     var png = "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAGCAYAAAD68A/GAAAA/klEQVQYGWNgAAEHBxaG//+ZQMyyn581Pfas+cRQnf1LfF" +
         "Ljf+62smUgcUbt0FA2Zh7drf/ffMy9vLn3RurrW9e5hCU11i2azfD4zu1/DHz8TAy/foUxsXBrFzHzC7r8+M9S1vn1qxQT07" +
diff --git a/tests/dat/actions/printParams.js b/tests/dat/actions/printParams.js
index d15073897e..942c96d4b8 100644
--- a/tests/dat/actions/printParams.js
+++ b/tests/dat/actions/printParams.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Print the parameters to the console, sorted alphabetically by key
  */
diff --git a/tests/dat/actions/python-zip/__main__.py b/tests/dat/actions/python-zip/__main__.py
index 1f3399b629..b86bb48a23 100644
--- a/tests/dat/actions/python-zip/__main__.py
+++ b/tests/dat/actions/python-zip/__main__.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 from greet import greet
 
 def niam(args):
diff --git a/tests/dat/actions/python-zip/greet.py b/tests/dat/actions/python-zip/greet.py
index 14b0960633..ae5cf60213 100644
--- a/tests/dat/actions/python-zip/greet.py
+++ b/tests/dat/actions/python-zip/greet.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 def greet(dict):
     if 'name' in dict:
         name = dict['name']
diff --git a/tests/dat/actions/runexit.js b/tests/dat/actions/runexit.js
index 78fbdd9b0f..ff36e7211a 100644
--- a/tests/dat/actions/runexit.js
+++ b/tests/dat/actions/runexit.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
     process.exit(1);
 }
diff --git a/tests/dat/actions/sizedResult.js b/tests/dat/actions/sizedResult.js
index 53310a5c4c..7a50fb2d10 100644
--- a/tests/dat/actions/sizedResult.js
+++ b/tests/dat/actions/sizedResult.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
     let str = new Array(args.size).join(args.char)
     return {
diff --git a/tests/dat/actions/sleep.js b/tests/dat/actions/sleep.js
index c6c2e17386..c1978a5748 100644
--- a/tests/dat/actions/sleep.js
+++ b/tests/dat/actions/sleep.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Node.js based OpenWhisk action that sleeps for the specified number
  * of milliseconds before returning. Uses a timer instead of a busy loop.
diff --git a/tests/dat/actions/sleep.py b/tests/dat/actions/sleep.py
index c8b05db340..362374c3c4 100644
--- a/tests/dat/actions/sleep.py
+++ b/tests/dat/actions/sleep.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 #
 # Python based OpenWhisk action that sleeps for the specified number
 # of milliseconds before returning.
diff --git a/tests/dat/actions/sort.js b/tests/dat/actions/sort.js
index 2017bcf9d1..c004a74240 100644
--- a/tests/dat/actions/sort.js
+++ b/tests/dat/actions/sort.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Sort a set of lines.
  * @param lines An array of strings to sort.
@@ -11,4 +14,3 @@ function main(msg) {
     console.log('sort after: ' + lines);
     return {lines: lines, length: lines.length};
 }
-
diff --git a/tests/dat/actions/split.js b/tests/dat/actions/split.js
index 43d36bc5e3..1c16519427 100644
--- a/tests/dat/actions/split.js
+++ b/tests/dat/actions/split.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Splits a string into an array of strings
  * Return lines in an array.
diff --git a/tests/dat/actions/stdenv.py b/tests/dat/actions/stdenv.py
index fa39dfddff..21cad5001c 100644
--- a/tests/dat/actions/stdenv.py
+++ b/tests/dat/actions/stdenv.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 """Unify action container environments."""
 import os
 
diff --git a/tests/dat/actions/step.js b/tests/dat/actions/step.js
index 58c7da06c3..afc039bab7 100644
--- a/tests/dat/actions/step.js
+++ b/tests/dat/actions/step.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Increment action.
  */
diff --git a/tests/dat/actions/textBody.js b/tests/dat/actions/textBody.js
index caf45d0ea4..6b75376494 100644
--- a/tests/dat/actions/textBody.js
+++ b/tests/dat/actions/textBody.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main() {
   return {
     headers: {
diff --git a/tests/dat/actions/trigger.swift b/tests/dat/actions/trigger.swift
index 2acf54e4dd..62bf072d32 100644
--- a/tests/dat/actions/trigger.swift
+++ b/tests/dat/actions/trigger.swift
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 func main(args: [String:Any]) -> [String:Any] {
   if let triggerName = args["triggerName"] as? String {
     print("Trigger Name: \(triggerName)")
diff --git a/tests/dat/actions/unicode.js b/tests/dat/actions/unicode.js
index 2adabb78f1..4db30ea5e4 100644
--- a/tests/dat/actions/unicode.js
+++ b/tests/dat/actions/unicode.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 function main(args) {
     var str = args.delimiter + " ☃ " + args.delimiter;
     console.log(str);
diff --git a/tests/dat/actions/unicode.swift b/tests/dat/actions/unicode.swift
index 8bcb88b85d..756d9cd027 100644
--- a/tests/dat/actions/unicode.swift
+++ b/tests/dat/actions/unicode.swift
@@ -1,4 +1,6 @@
-//  Copyright ©
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 func main(args: [String:Any]) -> [String:Any] {
     if let str = args["delimiter"] as? String {
         let msg = "\(str) ☃ \(str)"
@@ -7,4 +9,4 @@ func main(args: [String:Any]) -> [String:Any] {
     } else {
         return [ "error" : "no delimiter" ]
     }
-}
\ No newline at end of file
+}
diff --git a/tests/dat/actions/unicode2.py b/tests/dat/actions/unicode2.py
index 8abcd556b6..4a83cf7d7c 100644
--- a/tests/dat/actions/unicode2.py
+++ b/tests/dat/actions/unicode2.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 """Python 2 Unicode test."""
 
 
diff --git a/tests/dat/actions/unicode3.py b/tests/dat/actions/unicode3.py
index ca42f5a69b..58399de61c 100644
--- a/tests/dat/actions/unicode3.py
+++ b/tests/dat/actions/unicode3.py
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 """Python 3 Unicode test."""
 
 
diff --git a/tests/dat/actions/wc.js b/tests/dat/actions/wc.js
index 842fc6153d..5d88dc5a3b 100644
--- a/tests/dat/actions/wc.js
+++ b/tests/dat/actions/wc.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  *  word count utility
  */
diff --git a/tests/dat/actions/wcbin.js b/tests/dat/actions/wcbin.js
index 6b47b6baed..a9f3e45bb7 100644
--- a/tests/dat/actions/wcbin.js
+++ b/tests/dat/actions/wcbin.js
@@ -1,3 +1,6 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more contributor
+// license agreements; and to You under the Apache License, Version 2.0.
+
 /**
  * Return word count as a binary number. This demonstrates the use of a blocking
  * invoke.
diff --git a/tests/dat/apigw/local.api.bad.yaml b/tests/dat/apigw/local.api.bad.yaml
index 35a49e73ac..3301965f3f 100644
--- a/tests/dat/apigw/local.api.bad.yaml
+++ b/tests/dat/apigw/local.api.bad.yaml
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 some bad yaml in
 these []]]
 lines:
@@ -32,4 +35,3 @@ x-ibm-configuration:
           - get_/rp
   cors:
     enabled: true
-
diff --git a/tests/dat/apigw/local.api.yaml b/tests/dat/apigw/local.api.yaml
index 6a1a2b2121..df59c65470 100644
--- a/tests/dat/apigw/local.api.yaml
+++ b/tests/dat/apigw/local.api.yaml
@@ -1,3 +1,6 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 basePath: /bp
 info:
   title: /bp
@@ -28,4 +31,3 @@ x-ibm-configuration:
           - get_/rp
   cors:
     enabled: true
-
diff --git a/tests/dat/blackbox/badaction/Dockerfile b/tests/dat/blackbox/badaction/Dockerfile
index f342e3d182..bc0095b6fc 100644
--- a/tests/dat/blackbox/badaction/Dockerfile
+++ b/tests/dat/blackbox/badaction/Dockerfile
@@ -1,6 +1,9 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 # Dockerfile for example whisk docker action
 FROM dockerskeleton
- 
+
 ENV FLASK_PROXY_PORT 8080
 
 ADD runner.py /actionProxy/
diff --git a/tests/dat/blackbox/badproxy/Dockerfile b/tests/dat/blackbox/badproxy/Dockerfile
index f483a2c385..af0c526f6a 100644
--- a/tests/dat/blackbox/badproxy/Dockerfile
+++ b/tests/dat/blackbox/badproxy/Dockerfile
@@ -1,6 +1,9 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
 # Dockerfile for example whisk docker action
 FROM dockerskeleton
- 
+
 ENV FLASK_PROXY_PORT 8080
 
 CMD ["/bin/bash", "-c", "tail -f /dev/null"]


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services