Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

851 ci update alien test to capture the problem with lost records #853

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Bob versions changelog
#### Changed
- Use cargo workspace to declare dependencies to avoid their duplication (#821)
- Record timestamp is now passed to Pearl level and used to find newest record in get and exist functions (#708)
- Writing logic for aliens integration tests (#851)
ikopylov marked this conversation as resolved.
Show resolved Hide resolved

#### Fixed

Expand Down
8 changes: 5 additions & 3 deletions integration-tests/tests_aliens.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ def run_tests(behaviour, args):
#runs put and stops nodes in cycle
written_count = 0
try:
for i in range(1, parsed_args.nodes_amount + 1):
#make correctly formatted args
for i in range(parsed_args.nodes_amount):
#make correctly formatted args
dict_args = make_run_args(parsed_args, written_count, record_amount)
dict_args['-p'] = str(parsed_args.transport_min_port + i)
bobp_args = args_to_str(dict_args)
#run put
print(f'Running bobp -b put {bobp_args.rstrip()}')
Expand All @@ -91,7 +92,7 @@ def run_tests(behaviour, args):
if not 'total err: 0' in str(p):
print_then_exit(f'Put test failed, see output.')
written_count += dict_args.get('-c')
if i < parsed_args.nodes_amount:
if i < parsed_args.nodes_amount - 1:
#stops one
sleep(10)
d_cli.container.stop(container_dict[str(parsed_args.transport_min_port + i)])
Expand Down Expand Up @@ -119,6 +120,7 @@ def run_tests(behaviour, args):


dict_args = make_run_args(parsed_args, 0, str(written_count))
dict_args['-p'] = str(parsed_args.transport_min_port + parsed_args.nodes_amount - 1)
bobp_args = args_to_str(dict_args)
for item in run_options:
run_tests(item, bobp_args)
Loading