Skip to content

Commit

Permalink
SNOW-1011769: Updating test output
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-davwang committed Feb 6, 2024
1 parent c8a262d commit 72b2f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests_integration/spcs/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def test_token(runner):

@pytest.mark.integration
def test_get_registry_url(test_database, test_role, runner, snowflake_session):
# newly created role should have no access to image repositories and should not be able to get registry URL
# newly created test_role should have no access to image repositories and should not be able to get registry URL
test_repo = ObjectNameProvider("test_repo").create_and_get_next_object_name()
snowflake_session.execute_string(f"create image repository {test_repo}")

fail_result = runner.invoke_with_connection(
["spcs", "image-registry", "url", "--role", test_role]
)
assert fail_result.exit_code == 1, fail_result.output
assert "Current role cannot view any image repositories." in fail_result.output
assert "No image repository found." in fail_result.output

# role should be able to get registry URL once granted read access to an image repository
repo_list_cursor = snowflake_session.execute_string(
Expand Down

0 comments on commit 72b2f1e

Please sign in to comment.