File tree Expand file tree Collapse file tree 11 files changed +643
-435
lines changed Expand file tree Collapse file tree 11 files changed +643
-435
lines changed Original file line number Diff line number Diff line change 72
72
- uses : actions/checkout@v4
73
73
with :
74
74
submodules : true
75
+ - uses : actions/setup-python@v5
76
+ with :
77
+ python-version : " 3.9"
75
78
- name : Install dependencies
76
79
run : |
77
- curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
80
+ curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
78
81
poetry install
79
82
poetry run pytest -v tests/unit
80
83
95
98
- uses : actions/checkout@v4
96
99
with :
97
100
submodules : true
101
+ - uses : actions/setup-python@v5
102
+ with :
103
+ python-version : " 3.9"
98
104
- name : Setup for testing
99
105
run : |
100
106
mkdir test-results-${{ matrix.splunk.version }}
@@ -155,9 +161,9 @@ jobs:
155
161
submodules : true
156
162
- uses : actions/setup-python@v5
157
163
with :
158
- python-version : 3.7
164
+ python-version : " 3.9 "
159
165
- run : |
160
- curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
166
+ curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
161
167
poetry install
162
168
poetry run pytest -v --splunk-version=${{ matrix.splunk.version }} -m docker -m ${{ matrix.test-marker }} tests/e2e
163
169
@@ -175,15 +181,15 @@ jobs:
175
181
persist-credentials : false
176
182
- uses : actions/setup-python@v5
177
183
with :
178
- python-version : " 3.7 "
184
+ python-version : " 3.9 "
179
185
- uses : actions/download-artifact@v4
180
186
with :
181
187
name : THIRDPARTY
182
188
- name : Update Notices
183
189
run : cp -f THIRDPARTY NOTICE
184
190
- name : Install Poetry
185
191
run : |
186
- curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
192
+ curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
187
193
- id : semantic
188
194
189
195
with :
Original file line number Diff line number Diff line change 17
17
- uses : actions/checkout@v4
18
18
- uses : actions/setup-python@v5
19
19
with :
20
- python-version : 3.8
20
+ python-version : 3.9
21
21
- run : |
22
- curl -sSL https://install.python-poetry.org | python3 - --version 1.5.1
22
+ curl -sSL https://install.python-poetry.org | python3 - --version 2.1.4
23
23
pip install mkdocs mkdocs-material mkdocstrings-python
24
24
- name : Deploy to GitHub Pages
25
25
if : github.ref_name == 'main'
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ RUN export DEBIAN_FRONTEND=noninteractive ;\
27
27
apt-get install -y --no-install-recommends apt-utils ;\
28
28
apt-get install -y locales ;\
29
29
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8;\
30
- apt-get install -y curl git python-is-python3 python3-distutils python3-pip
30
+ apt-get install -y software-properties-common ;\
31
+ add-apt-repository ppa:deadsnakes/ppa ;\
32
+ apt-get update ;\
33
+ apt-get install -y curl git python3.9 python3.9-venv python3.9-distutils ;\
34
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3.9 get-pip.py ;
31
35
32
36
ENV LANG en_US.utf8
33
37
Original file line number Diff line number Diff line change @@ -10,3 +10,4 @@ A Dynamic test tool for Splunk Apps and Add-ons.
10
10
## Usage
11
11
12
12
For full usage instructions, please visit the [ documentation] ( https://splunk.github.io/pytest-splunk-addon ) .
13
+
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ services:
88
88
- SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN}
89
89
- SPLUNK_START_ARGS=--accept-license
90
90
- TEST_SC4S_ACTIVATE_EXAMPLES=yes
91
+ - SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
91
92
volumes :
92
93
results :
93
94
external : false
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ services:
80
80
- SPLUNK_START_ARGS=--accept-license
81
81
- SPLUNK_HEC_TOKEN=${SPLUNK_HEC_TOKEN}
82
82
- TEST_SC4S_ACTIVATE_EXAMPLES=yes
83
+ - SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
83
84
84
85
uf :
85
86
build :
@@ -104,4 +105,4 @@ services:
104
105
105
106
volumes :
106
107
splunk-sc4s-var :
107
- external : false
108
+ external : false
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ which allows the user to test [knowledge objects](https://docs.splunk.com/Splexi
11
11
12
12
## Support
13
13
14
- - ** Python** : 3.7
14
+ - ** Python** : 3.9
15
15
- ** Platforms** : Linux, Windows and MacOS
16
16
17
17
## Installation
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ substitutions:
21
21
22
22
** 4. Getting Couldn't find a version that satisfies the requirement when installing pytest-splunk-addon using pip.**
23
23
24
- - Use ` pip3 install pytest-splunk-addon ` and make sure you are using python 3.7
24
+ - Use ` pip3 install pytest-splunk-addon ` and make sure you are using python 3.9
25
25
26
26
** 5. While executing test cases on Docker, all the test cases abort with the following setup failure:**
27
27
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
echo args $@
3
3
cd /work
4
- curl https://pyenv.run | bash
5
- export PATH=" ~/.pyenv/bin:$PATH "
6
- eval " $( pyenv init -) "
7
- pyenv install 3.7.8
8
- pyenv local 3.7.8
9
- curl -sSL https://install.python-poetry.org | python - --version 1.5.1
4
+ curl -sSL https://install.python-poetry.org | python3.9 - --version 2.1.4
10
5
export PATH=" /root/.local/bin:$PATH "
11
- source ~ /.poetry/env
12
6
sleep 15
13
7
poetry install
14
8
exec poetry run pytest -vv $@
You can’t perform that action at this time.
0 commit comments