示例#1
0
def test_get_service_name_prefix_for_all_versions():
    """
    Should get service name prefix for all versions
    """

    # When: I get service name prefix for all version
    service_prefix = _get_service_prefix('test', None, None)

    # Then: Expected value for service prefix is returned
    eq_(service_prefix, 'test-')
示例#2
0
def test_get_service_name_prefix_for_all_versions():
    """
    Should get service name prefix for all versions
    """

    # When: I get service name prefix for all version
    service_prefix = _get_service_prefix('test', None, None)

    # Then: Expected value for service prefix is returned
    eq_(service_prefix, 'test-')
示例#3
0
def test_get_service_name_prefix_for_given_type():
    """
    Should get service name prefix for given version
    """

    # When: I get service name prefix for all version
    service_prefix = _get_service_prefix('test', 'v1', 'app')

    # Then: Expected value for service prefix is returned
    eq_(service_prefix, 'test-v1-app@')
示例#4
0
def test_get_service_name_prefix_for_given_type():
    """
    Should get service name prefix for given version
    """

    # When: I get service name prefix for all version
    service_prefix = _get_service_prefix('test', 'v1', 'app')

    # Then: Expected value for service prefix is returned
    eq_(service_prefix, 'test-v1-app@')