oras.tests package

Submodules

oras.tests.test_oras module

oras.tests.test_oras. test_basic_oras ( registry ) [source]

Basic tests for oras (without authentication)

oras.tests.test_oras. test_basic_push_pul_via_sha_ref ( tmp_path , registry , credentials , target ) [source]

Basic tests for oras pushing and then pulling with SHA reference

oras.tests.test_oras. test_basic_push_pull ( tmp_path , registry , credentials , target ) [source]

Basic tests for oras (without authentication)

oras.tests.test_oras. test_custom_docker_config_path ( tmp_path , registry , credentials , target_dir ) [source]

Custom docker config_path for login, push, pull

oras.tests.test_oras. test_directory_push_pull ( tmp_path , registry , credentials , target_dir ) [source]

Test push and pull for directory

oras.tests.test_oras. test_directory_push_pull_selfsigned_auth ( tmp_path , registry , credentials , target_dir ) [source]

Test push and pull for directory using a self-signed cert registry ( tls_verify=False ) and basic auth ( auth_backend=”basic” )

oras.tests.test_oras. test_get_delete_tags ( tmp_path , registry , credentials , target ) [source]

Test creationg, getting, and deleting tags.

oras.tests.test_oras. test_get_many_tags ( ) [source]

Test getting many tags

oras.tests.test_oras. test_login_logout ( registry , credentials ) [source]

Login and logout are all we can test with basic auth!

oras.tests.test_provider module

oras.tests.test_provider. test_annotated_registry_push ( tmp_path , registry , credentials , target ) [source]

Basic tests for oras push with annotations

oras.tests.test_provider. test_chunked_push ( tmp_path , registry , credentials , target ) [source]

Basic tests for oras chunked push

oras.tests.test_provider. test_file_contains_column ( tmp_path , registry , credentials , target ) [source]

Test for file containing column symbol

oras.tests.test_provider. test_parse_manifest ( registry ) [source]

Test parse manifest function.

Parse manifest function has additional logic for Windows - this isn’t included in these tests as they don’t usually run on Windows.

oras.tests.test_provider. test_sanitize_path ( ) [source]

oras.tests.test_utils module

oras.tests.test_utils. test_copyfile ( tmp_path ) [source]
oras.tests.test_utils. test_get_tmpdir_tmpfile ( ) [source]
oras.tests.test_utils. test_mkdir_p ( tmp_path ) [source]
oras.tests.test_utils. test_print_json ( ) [source]
oras.tests.test_utils. test_split_path_and_content ( ) [source]

Test split path and content function.

Function has additional logic for Windows - this isn’t included in these tests as they don’t usually run on Windows.

oras.tests.test_utils. test_workdir ( tmp_path ) [source]
oras.tests.test_utils. test_write_bad_json ( tmp_path ) [source]
oras.tests.test_utils. test_write_json ( tmp_path ) [source]
oras.tests.test_utils. test_write_read_files ( tmp_path ) [source]

Module contents