This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (55 loc) · 2.05 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Run smoke tests"
description: "Runs the smoke tests for Camblet"
runs:
using: "composite"
steps:
- name: Run smoke tests
working-directory: camblet-driver
timeout-minutes: 1
run: |
touch /tmp/camblet.log /tmp/file-server.log /tmp/python.log
echo "Run processes"
sudo AGENT_METADATACOLLECTORS_DOCKER_ENABLED=true camblet agent > /tmp/camblet.log &
go run test/file-server.go >/tmp/file-server.log &
docker run -d --rm -p 8080:80 nginx
sleep 2
echo "Test downloading a bigger file"
head -c 2M </dev/urandom > bigfile.o
curl -v -o /tmp/bigfile_downloaded.o http://localhost:8000/bigfile.o
echo "Test uploading this file"
curl -v -F "bigfile_downloaded.o=@/tmp/bigfile_downloaded.o" http://localhost:8000/upload
diff bigfile.o bigfile_downloaded.o
echo "Test bearssl with non-bearssl compatibility"
python3 -m http.server 7000 >/tmp/python.log &
sleep 1
echo "testing with curl..."
curl -k -v https://localhost:7000/
echo "testing with wget..."
wget --no-check-certificate https://localhost:7000/
echo "Test openssl client connect to python with default cipher"
openssl s_client -connect 127.0.0.1:7000
echo "Test openssl client connect to python with ECDHE-RSA-CHACHA20-POLY1305 cipher"
openssl s_client -cipher ECDHE-RSA-CHACHA20-POLY1305 -connect 127.0.0.1:7000
echo "Test sendfile with NGiNX using curl"
curl -v http://localhost:8080
echo "Test sendfile with NGiNX using wget"
wget -v http://localhost:8000
echo "Stop processes"
sudo kill -9 $(jobs -p)
sudo pkill -9 camblet
- name: Kernel log
if: always()
run: |
sudo dmesg -T
- name: Camblet agent log
if: always()
run: |
cat /tmp/camblet.log
- name: File server log
if: always()
run: |
cat /tmp/file-server.log
- name: Python log
if: always()
run: |
cat /tmp/python.log