def test_url_empty_namespace(options): options.url_repo_db = 'https://localhost' options.repo_db_port = '8080' options.repo_db_path = '/bigdata/namespace/' result = _namespace_url('') assert result == 'https://localhost:8080/bigdata/namespace'
def test_url_contains_db_path(options): options.repo_db_path = '/bigdata/namespace/' result = _namespace_url('namespace01') assert '/bigdata/namespace' in result
def test_url_contains_namespace(options): result = _namespace_url('namespace01') assert 'namespace01' in result
def test_url_contains_url_repo_db(options): options.url_repo_db = 'https://localhost' result = _namespace_url('namespace01') assert 'https://localhost' in result
def test_url_contains_db_port(options): options.repo_db_port = '8080' result = _namespace_url('namespace01') assert '8080' in result