forked from splunk/splunk-connect-for-snmp
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.33 KB
/
ci-ui-tests.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
name: ui-tests
on:
push:
branches:
- "main"
- "develop"
- "next"
- "sc4snmp-ui-tests"
jobs:
run-ui-e2e-tests:
name: Run UI e2e tests
runs-on: ubuntu-latest
timeout-minutes: 10
env:
CI_EXECUTION_TYPE: ci
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
#
- name: run install_microk8s.sh
run: |
sudo snap install microk8s --classic --channel=1.25/stable
sudo apt-get install snmp -y
sudo apt-get install python3-dev -y
- name: run automatic_setup.sh
working-directory: integration_tests
run: integration_tests/automatic_setup.sh
# - name: run tests
# working-directory: integration_tests
# run: |
# poetry run pytest --splunk_host="localhost" --splunk_password="changeme2" --trap_external_ip="$(hostname -I | cut -d " " -f1)"
#
- name: install dependencies
working-directory: ui_tests
run: pip install -r requirements.txt
- name: run tests
working-directory: ui_tests
run: |
pytest --splunk-user=admin --splunk_password="changeme2" --splunk_host="localhost" --trap_external_ip="$(hostname -I | cut -d " " -f1)" -k current