Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imeplement test and add into pipeline #244

Merged
merged 31 commits into from
Sep 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix pipeline
  • Loading branch information
rhoninl committed Sep 7, 2022
commit 0216aa69f8609464baccc8a5643c95b8aa849113
5 changes: 4 additions & 1 deletion azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ stages:
- script: |
set -e
kubectl run nginx --image=nginx -n deviceshifu
kubectl wait --for condition=Ready pod/nginx -n deviceshifu --timeout=600s
kubectl apply -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-plc
kubectl wait --for=condition=Available deploy/plc -n devices --timeout=150s
kubectl wait --for=condition=Available deploy/deviceshifu-plc-deployment -n deviceshifu --timeout=150s
sleep 5
kubectl wait --for condition=Ready pod/nginx -n deviceshifu --timeout=150s
kubectl exec -it -n deviceshifu nginx -- curl deviceshifu-plc/getcontent?rootsssaddress=Q;echo
kubectl delete -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-plc
kubectl apply -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-agv
Expand Down Expand Up @@ -275,6 +275,7 @@ stages:
kubectl apply -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-opcua
kubectl wait --for=condition=Available deploy/deviceshifu-opcua-deployment -n deviceshifu --timeout=150s
kubectl wait --for=jsonpath='{status.edgedevicephase}'=Running edgedevice/edgedevice-opcua -n devices --timeout=150s
kubectl wait --for=condition=Ready pod/nginx -n deviceshifu --timeout=150s
kubectl exec -it -n deviceshifu nginx -- curl http://deviceshifu-opcua/get_server;echo
kubectl delete -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-opcua
kubectl delete -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-opcua/mock-device
Expand Down Expand Up @@ -336,6 +337,7 @@ stages:
kubectl apply -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-socket
kubectl wait --for=condition=Available deploy/deviceshifu-socket-deployment -n deviceshifu --timeout=150s
kubectl wait --for=jsonpath='{status.edgedevicephase}'=Running edgedevice/edgedevice-socket -n devices --timeout=150s
kubectl wait --for=condition=Ready pod/nginx -n deviceshifu --timeout=150s
kubectl exec -it -n deviceshifu nginx -- curl -XPOST -H "Content-Type:application/json" deviceshifu-socket.deviceshifu.svc.cluster.local/cmd -d '{"command":"123"}'
kubectl delete -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-socket
kubectl delete -f $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-socket/mock-device
Expand Down Expand Up @@ -391,6 +393,7 @@ stages:
kubectl run mosquitto -n devices --image=eclipse-mosquitto:2.0.14
kubectl wait --for=condition=Ready pod/mosquitto -n devices --timeout=150s
kubectl exec -it mosquitto -n devices -- mosquitto_pub -h mosquitto-service -d -p 18830 -t /test/test -m "test2333"
kubectl wait --for=condition=Ready pod/nginx -n deviceshifu --timeout=150s
bash $(System.DefaultWorkingDirectory)/examples/deviceshifu/demo_device/edgedevice-mqtt/checkoutput.sh
kubectl delete -f examples/deviceshifu/demo_device/edgedevice-mqtt
kubectl delete po mosquitto -n devices
Expand Down