コード例 #1
0
ファイル: test_gsi.py プロジェクト: ukayani/scylla
def test_gsi_list_tables(dynamodb, test_table_gsi_random_name):
    table, index_name = test_table_gsi_random_name
    # Check that the random "index_name" isn't a substring of any table name:
    tables = list_tables(dynamodb)
    for name in tables:
        assert not index_name in name
    # But of course, the table's name should be in the list:
    assert table.name in tables
コード例 #2
0
ファイル: test_table.py プロジェクト: xemul/scylla
def test_list_tables_paginated(dynamodb, test_table, test_table_s,
                               test_table_b):
    my_tables_set = {
        table.name
        for table in [test_table, test_table_s, test_table_b]
    }
    for limit in [1, 2, 3, 4, 50, 100]:
        print("testing limit={}".format(limit))
        list_tables_set = set(list_tables(dynamodb, limit))
        assert my_tables_set.issubset(list_tables_set)