Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
clive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
clive
Commits
b239036d
Commit
b239036d
authored
1 year ago
by
Krzysztof Mochocki
Committed by
Krzysztof Mochocki
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add testing job to gitlab-ci
parent
c2a62945
No related branches found
Branches containing commit
No related tags found
2 merge requests
!277
Response logs in beekeeper are only in developer mode
,
!266
V1.27.5.5 release
Changes
2
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+14
-3
14 additions, 3 deletions
.gitlab-ci.yml
scripts/check_is_private_key_nor_password_is_not_logged.bash
+15
-0
15 additions, 0 deletions
scripts/check_is_private_key_nor_password_is_not_logged.bash
with
29 additions
and
3 deletions
.gitlab-ci.yml
+
14
−
3
View file @
b239036d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
scripts/check_is_private_key_nor_password_is_not_logged.bash
0 → 100755
+
15
−
0
View file @
b239036d
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment