Skip to content

Commit

Permalink
Delete debug prints for pbm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Samoylov committed Dec 30, 2019
1 parent cd525ca commit b57e37b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion molecule/pbm/molecule/default/tests/test_pbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def backup(host):
hash = save_hash_result.stdout.strip("\n")
backup = """pbm backup --mongodb-uri=mongodb://localhost:27017"""
backup_result = host.run(backup)
print(backup_result.stdout)
assert backup_result.rc == 0, backup_result.stdout
time.sleep(120)
backup_name = backup_result.stdout.split()[2].strip("\'").rstrip("'...")
Expand All @@ -117,6 +118,7 @@ def restore(backup, host):
"""
restore = """pbm restore --mongodb-uri=mongodb://localhost:27017 {}""".format(backup[1])
restore_result = host.run(restore)
print(restore_result.stdout)
assert restore_result.rc == 0, restore_result.stdout
time.sleep(120)
db_hash_after = """mongo --quiet --eval 'db.runCommand({ dbHash: 1 }).md5' test|tail -n1"""
Expand Down Expand Up @@ -231,7 +233,6 @@ def test_set_store(set_store):
:return:
"""
assert set_store.rc == 0, set_store.stdout
print(set_store.stdout)
store_out = parse_yaml_string("\n".join(set_store.stdout.split("\n")[2:-2]))
assert store_out['storage']['type'] == 's3'
assert store_out['storage']['s3']['region'] == 'us-east-1'
Expand Down

0 comments on commit b57e37b

Please sign in to comment.