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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user