Add websocket test (#2053)

* Add websocket test

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Use trap for exit code

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Remove readme

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Format, go version fix

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Update image name

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Use spec dir

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Change directory before running file

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

* Use

Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>
This commit is contained in:
Harsh Thakur
2021-06-10 12:27:20 +05:30
committed by GitHub
parent 827b64d633
commit f01de5c802
10 changed files with 211 additions and 0 deletions
@@ -0,0 +1,29 @@
apiVersion: fission.io/v1
kind: Environment
metadata:
creationTimestamp: null
name: nodejs
namespace: default
spec:
builder: {}
imagepullsecret: ""
keeparchive: false
poolsize: 3
resources:
# limits:
# cpu: 80m
# memory: 100Mi
requests:
cpu: 10m
memory: 80Mi
runtime:
image: fission/node-env:latest
podspec:
containers:
- name: nodejs
imagepullpolicy: Always
env:
- name: TIMEOUT
value: 1000
version: 1
@@ -0,0 +1,7 @@
# This file is generated by the 'fission spec init' command.
# See the README in this directory for background and usage information.
# Do not edit the UID below: that will break 'fission spec apply'
apiVersion: fission.io/v1
kind: DeploymentConfig
name: websocket
uid: 1df9464b-5f73-4623-8187-a2f431d5c828
@@ -0,0 +1,56 @@
include:
- broadcast.js
kind: ArchiveUploadSpec
name: broadcast-js-LHtQ
---
apiVersion: fission.io/v1
kind: Package
metadata:
creationTimestamp: null
name: bs-7baf1b6f-f876-436f-a2b2-ae1a3e3af8b7
namespace: default
spec:
deployment:
checksum: {}
type: url
url: archive://broadcast-js-LHtQ
environment:
name: nodejs
namespace: default
source:
checksum: {}
status:
buildstatus: none
lastUpdateTimestamp: "2021-04-07T10:13:22Z"
---
apiVersion: fission.io/v1
kind: Function
metadata:
creationTimestamp: null
name: bs
namespace: default
spec:
InvokeStrategy:
ExecutionStrategy:
ExecutorType: poolmgr
MaxScale: 0
MinScale: 0
SpecializationTimeout: 120
TargetCPUPercent: 0
StrategyType: execution
concurrency: 5
configmaps: null
environment:
name: nodejs
namespace: default
functionTimeout: 60
idletimeout: 120
package:
packageref:
name: bs-7baf1b6f-f876-436f-a2b2-ae1a3e3af8b7
namespace: default
requestsPerPod: 5
resources: {}
secrets: null