Beispiel #1
0
def test_gen_permutations_4():
    res = list(gen_permutations([[1, 2, 3]]))
    print(res)
    assert 3 == len(res)
    assert [1] in res
    assert [2] in res
    assert [3] in res
Beispiel #2
0
def test_gen_permutations_5():
    res = list(gen_permutations([[1, 2, 3], [5, 6]]))
    print(res)
    assert 6 == len(res)
    assert [1, 5] in res
    assert [2, 5] in res
    assert [3, 5] in res
    assert [1, 6] in res
    assert [2, 6] in res
    assert [3, 6] in res
Beispiel #3
0
def test_gen_permutations_6():
    res = list(gen_permutations([[1, 2, 3], [5, 6], [8, 9]]))
    print(res)
    assert 12 == len(res)
    assert [1, 5, 8] in res
    assert [1, 5, 9] in res
    assert [1, 6, 8] in res
    assert [1, 6, 9] in res
    assert [2, 5, 8] in res
    assert [2, 5, 9] in res
    assert [2, 6, 8] in res
    assert [2, 6, 9] in res
    assert [3, 5, 8] in res
    assert [3, 5, 9] in res
    assert [3, 6, 8] in res
    assert [3, 6, 9] in res
Beispiel #4
0
def test_gen_permutations_1():
    res = list(gen_permutations([]))
    print(res)
    assert 0 == len(res)
Beispiel #5
0
def test_gen_permutations_3():
    res = list(gen_permutations([[1]]))
    print(res)
    assert 1 == len(res)
    assert [1] in res
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from suites.yardstick.test_ignite_benchmark import TestIgniteBenchmark
from tiden.configuration_decorator import test_configuration
from tiden.generators import gen_permutations


@test_configuration(
    ['persistence_enabled', 'sync_mode', 'wal_mode', 'cache_mode', 'ssl_enabled'],
    list(gen_permutations([
        [True],
        ['FULL_SYNC', 'PRIMARY_SYNC'],
        ['NONE', 'FSYNC', 'LOG_ONLY', 'BACKGROUND'],
        ['PARTITIONED', 'REPLICATED'],
        [True, False]
    ]))
)
class TestIgniteBenchmarkPersistence(TestIgniteBenchmark):

    def __init__(self, *args):
        super().__init__(*args)

    def setup(self):
        super().setup()

    def teardown(self):
        super().teardown()
Beispiel #7
0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from suites.yardstick.test_ignite_benchmark import TestIgniteBenchmark
from tiden.configuration_decorator import test_configuration
from tiden.generators import gen_permutations


@test_configuration(
    ['persistence_enabled', 'sync_mode', 'cache_mode', 'ssl_enabled'],
    list(gen_permutations([
        [False],
        ['FULL_SYNC', 'PRIMARY_SYNC'],
        ['PARTITIONED', 'REPLICATED'],
        [True, False]
    ]))
)
class TestIgniteBenchmarkInMemory(TestIgniteBenchmark):

    def __init__(self, *args):
        super().__init__(*args)

    def setup(self):
        super().setup()

    def teardown(self):
        super().teardown()