Esempio n. 1
0
def test_list_backup_operations(capsys, instance_id, sample_database):
    backup_sample.list_backup_operations(instance_id,
                                         sample_database.database_id,
                                         BACKUP_ID)
    out, _ = capsys.readouterr()
    assert BACKUP_ID in out
    assert sample_database.database_id in out
    assert COPY_BACKUP_ID in out
    print(out)
def test_list_backup_operations(capsys, spanner_instance):
    backup_sample.list_backup_operations(INSTANCE_ID, DATABASE_ID)
    out, _ = capsys.readouterr()
    assert BACKUP_ID in out
    assert DATABASE_ID in out