Skip to content

Commit

Permalink
keep
Browse files Browse the repository at this point in the history
Signed-off-by: tarilabs <[email protected]>
  • Loading branch information
tarilabs committed Oct 20, 2024
1 parent 2679ff8 commit e0e89f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oras/tests/test_oras.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def test_directory_push_pull_selfsigned_auth(
assert "artifact.txt" in os.listdir(files[0])


@pytest.mark.with_auth(False)
@pytest.mark.with_auth(True)
def test_custom_docker_config_path(tmp_path, registry, credentials, target_dir):
"""
Custom docker config_path for login, push, pull
Expand All @@ -208,6 +208,9 @@ def test_custom_docker_config_path(tmp_path, registry, credentials, target_dir):
)
assert res["Status"] == "Login Succeeded"

with open(my_dockercfg_path, "r") as f:
print(f.read())

# Test push/pull with custom docker config_path
upload_dir = os.path.join(here, "upload_data")
res = client.push(files=[upload_dir], target=target_dir, config_path=my_dockercfg_path)
Expand Down

0 comments on commit e0e89f4

Please sign in to comment.