Restoring one example as it is used in many places including Helm charts (#2011)

Some tests were pointing to examples directory which has been moved out. Also kept one node.js examples as it is widely used in Helm charts etc.
This commit is contained in:
Vishal
2021-05-09 23:36:39 +05:30
committed by GitHub
parent 5b4bf5964e
commit ca6bc12cfc
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
module.exports = async function(context) {
return {
status: 200,
body: "hello, world!\n"
};
}
@@ -15,7 +15,7 @@ spec:
sum: aa595bb952047c517d849f8fc9e490fdabc37d83795392074a0b15a59748004f
type: sha256
type: url
url: https://raw.githubusercontent.com/fission/fission/master/examples/go/hello.gogo # this is intentional
url: https://raw.githubusercontent.com/fission/examples/master/go/hello.gogo # this is intentional
---
apiVersion: fission.io/v1
+2 -2
View File
@@ -38,8 +38,8 @@ fi
log "Download test script"
url1="https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js"
url2="https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello-callback.js"
url1="https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.js"
url2="https://raw.githubusercontent.com/fission/examples/master/nodejs/hello-callback.js"
wget ${url1}
sum=$(shasum -a 256 hello.js|cut -d' ' -f 1)