[x] Use login/password for authentication when running on SG_JENKINS.
[x] Unskip and fix old tests
[x] Skip datetime tests on Jenkins (they also fail locally)
[x] Refactor helper method to reduce sleep time in e861767
Centralized authentication
Now all tests use the same authentication credentials. By default, it uses and expects a script name/key pair provided on the config file. However, a special flag SG_JENKINS is considered to use username/password only for SG sites that haven't created a script.
Improved test time
Before
After
Test durations
Argument durations was added to pytest to detect the slowest tests and improve them in the future
How to reproduce Jenkins environment locally:
Step 1: remove script_name/api_key from config file
Step 2: add human_login / human_password to config file
Checklist
SG_JENKINS
.Centralized authentication
Now all tests use the same authentication credentials. By default, it uses and expects a script name/key pair provided on the config file. However, a special flag
SG_JENKINS
is considered to use username/password only for SG sites that haven't created a script.Improved test time
Test durations
Argument
durations
was added to pytest to detect the slowest tests and improve them in the futureHow to reproduce Jenkins environment locally:
Step 1: remove
script_name
/api_key
from config fileStep 2: add
human_login
/human_password
to config fileStep 3: run