Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hivemind
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
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
hivemind
Merge requests
!293
full sync tavern tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
full sync tavern tests
pmaniora_full_sync_tavern_tests
into
develop
Overview
3
Commits
3
Pipelines
0
Changes
4
Merged
Pawel Maniora
requested to merge
pmaniora_full_sync_tavern_tests
into
develop
4 years ago
Overview
3
Commits
3
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
develop
version 14
9986e8e9
4 years ago
version 13
92ce6728
4 years ago
version 12
f1b2b646
4 years ago
version 11
dead2fbc
4 years ago
version 10
6da99c78
4 years ago
version 9
e7d8ed99
4 years ago
version 8
cff31a85
4 years ago
version 7
c046a48d
4 years ago
version 6
54efa05a
4 years ago
version 5
d9b4c0db
4 years ago
version 4
e04a326e
4 years ago
version 3
8c1761db
4 years ago
version 2
56c44844
4 years ago
version 1
7d815099
4 years ago
develop (base)
and
version 1
latest version
00b73b77
3 commits,
4 years ago
version 14
9986e8e9
3 commits,
4 years ago
version 13
92ce6728
3 commits,
4 years ago
version 12
f1b2b646
2 commits,
4 years ago
version 11
dead2fbc
2 commits,
4 years ago
version 10
6da99c78
3 commits,
4 years ago
version 9
e7d8ed99
3 commits,
4 years ago
version 8
cff31a85
3 commits,
4 years ago
version 7
c046a48d
2 commits,
4 years ago
version 6
54efa05a
1 commit,
4 years ago
version 5
d9b4c0db
1 commit,
4 years ago
version 4
e04a326e
2 commits,
4 years ago
version 3
8c1761db
2 commits,
4 years ago
version 2
56c44844
1 commit,
4 years ago
version 1
7d815099
1 commit,
4 years ago
4 files
+
75
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
scripts/run_full_sync_tests.sh
0 → 100755
+
72
−
0
Options
#!/bin/bash
# this script will run tavern test versus hivemind instance at address and port
# specified in command line args.
# basic call is: ./run_tests.sh address port
# example: ./run_tests.sh 127.0.0.1 8080
# additionaly one can pass parameters to underlying pytest framework
# example: ./run_tests.sh 127.0.0.1 8080 -m failing
# above will run only tests marked as failing
# you can also specify tests from given file:
# example: ./run_tests.sh localhost 8080 test_database_api_patterns.tavern.yaml
# or combine all options
# ./run_tests.sh localhost 8080 test_database_api_patterns.tavern.yaml -m failing
function
display_usage
{
echo
"Usage:
$0
hivemind_address hivemind_port [test options]"
}
function
check_port
{
re
=
'^[0-9]+$'
if
!
[[
$1
=
~
$re
]]
;
then
echo
"Error: Port is not a number"
>
&2
exit
1
fi
}
function
check_address
{
if
[[
$1
-eq
"localhost"
]]
;
then
return
fi
re
=
'^(http(s?):\/\/)?((((www\.)?)+[a-zA-Z0-9\.\-\_]+(\.[a-zA-Z]{2,6})+)|(\b((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b))(\/[a-zA-Z0-9\_\-\s\.\/\?\%\#\&\=]*)?$'
if
!
[[
$1
=
~
$re
]]
;
then
echo
"Error: Address is not valid url or ip address"
>
&2
exit
1
fi
}
if
[
$#
-lt
2
]
then
display_usage
exit
1
fi
if
[[
(
$#
==
"--help"
)
||
$#
==
"-h"
]]
then
display_usage
exit
0
fi
#check_address $1
#check_port $2
#cd ..
set
-e
pip3
install
tox
--user
export
HIVEMIND_ADDRESS
=
$1
export
HIVEMIND_PORT
=
$2
export
TAVERN_DIR
=
"tests/tests_api/hivemind/tavern_full_sync"
echo
"Attempting to start tests on hivemind instance listening on:
$HIVEMIND_ADDRESS
port:
$HIVEMIND_PORT
"
echo
"Additional test options:
${
@
:3
}
"
tox
--
-W
ignore::pytest.PytestDeprecationWarning
-n
auto
--durations
=
0
-v
-p
no:logging
${
@
:3
}
\ No newline at end of file
Loading