Skip to content
Snippets Groups Projects
Commit b239036d authored by Krzysztof Mochocki's avatar Krzysztof Mochocki Committed by Krzysztof Mochocki
Browse files

Add testing job to gitlab-ci

parent c2a62945
No related branches found
No related tags found
2 merge requests!277Response logs in beekeeper are only in developer mode,!266V1.27.5.5 release
...@@ -129,15 +129,26 @@ testing_clive_import_times_during_autocompletion: ...@@ -129,15 +129,26 @@ testing_clive_import_times_during_autocompletion:
- echo -e "${TXT_BLUE}Launching clive test for autocompletion time...${TXT_CLEAR}" - echo -e "${TXT_BLUE}Launching clive test for autocompletion time...${TXT_CLEAR}"
- python3 -m pytest -k "test_autocompletion_time" --durations 0 --junitxml=report.xml tests/ - python3 -m pytest -k "test_autocompletion_time" --durations 0 --junitxml=report.xml tests/
testing_password_private_key_logging:
stage: tests
needs:
- job: testing_beekeeper
artifacts: true
- job: testing_clive
artifacts: true
- job: testing_clive_import_times_during_autocompletion
artifacts: true
script:
- cd "${CI_PROJECT_DIR}/tests"
- (bash "${CI_PROJECT_DIR}/scripts/check_is_private_key_nor_password_is_not_logged.bash" && echo $?) || (echo $? && false)
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<| TESTS |<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<| TESTS |<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| DEPLOY |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> #>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>| DEPLOY |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
.deploy_wheel_needs : &deploy_wheel_needs .deploy_wheel_needs : &deploy_wheel_needs
needs: needs:
- job: pre_commit_checks - job: testing_password_private_key_logging
- job: testing_clive
- job: testing_clive_import_times_during_autocompletion
- job: build_wheel - job: build_wheel
artifacts: true artifacts: true
......
#!/bin/bash
function find_password_private_keys() {
grep \
--include="latest.log*" \
-r -i -w -E '(pass(word)?|[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{51})' |
grep "$@" -v -E '(Error in response from url|Problem occurred during communication with|test_tools.__private.logger)'
}
amount_of_occurences=$(find_password_private_keys -c)
if [[ $amount_of_occurences -ne 0 ]]; then
echo "Error! Found $amount_of_occurences occurrences of private key or password"
find_password_private_keys 2>&1
fi;
exit $amount_of_occurences
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment