File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 16
16
with :
17
17
python-version : ' 3.x'
18
18
- name : Prepare test environment
19
+ env :
20
+ PHPIPAM_URL : ${{ secrets.PHPIPAM_URL }}
21
+ PHPIPAM_APPID : ${{ secrets.PHPIPAM_APPID }}
22
+ PHPIPAM_USERNAME : ${{ secrets.PHPIPAM_USERNAME }}
23
+ PHPIPAM_PASSWORD : ${{ secrets.PHPIPAM_PASSWORD }}
19
24
run : |
20
25
python -m pip install --upgrade pip
21
26
make test-setup
Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ test-setup: | tests/vars/server.yml
60
60
pip install --upgrade -r requirements-dev.txt
61
61
62
62
tests/vars/server.yml :
63
- cp $@ .example $@
64
- @echo " Please configure $@ to point to your phpIPAM instance for recording."
63
+ sed -e " s#~~url~~#$( PHPIPAM_URL) #" -e " s#~~app_id~~#$( PHPIPAM_APPID) #" -e " s#~~username~~#$( PHPIPAM_USERNAME) #" -e " s#~~password~~#$( PHPIPAM_PASSWORD) #" $@ .example > $@
65
64
66
65
test-all :
67
66
coverage run -m pytest tests/test_cases/* -v
Original file line number Diff line number Diff line change 1
1
# Parameter for all tests
2
- url: 'https://ipam.example.com'
3
- app_id: my_app
4
- username: user
5
- password: p455w0rd
2
+ url: ~~url~~
3
+ app_id: ~~app_id~~
4
+ username: ~~username~~
5
+ password: ~~password~~
You can’t perform that action at this time.
0 commit comments