@@ -878,3 +878,94 @@ bzl_library(
878878 srcs = ["pull_info_validation_test.bzl" ],
879879 visibility = ["//visibility:private" ],
880880)
881+
882+ TEST_TARGETS = [
883+ ":base_with_entrypoint" ,
884+ ":base_with_volume" ,
885+ ":derivative_with_cmd" ,
886+ ":derivative_with_shadowed_cmd" ,
887+ ":derivative_with_volume" ,
888+ ":directory_with_tar_base" ,
889+ ":files_base" ,
890+ ":files_with_files_base" ,
891+ ":files_in_layer_with_files_base" ,
892+ ":files_with_tar_base" ,
893+ ":tar_base" ,
894+ ":tar_with_mtimes_preserved" ,
895+ ":tar_with_files_base" ,
896+ ":tar_with_tar_base" ,
897+ ":tars_in_layer_with_tar_base" ,
898+ ":docker_tarball_base" ,
899+ ":layers_with_docker_tarball_base" ,
900+ # TODO(mattmoor): Re-enable once archive is visible
901+ # "generated_tarball",
902+ ":with_unix_epoch_creation_time" ,
903+ ":with_millisecond_unix_epoch_creation_time" ,
904+ ":with_rfc_3339_creation_time" ,
905+ ":with_stamped_creation_time" ,
906+ ":with_default_stamped_creation_time" ,
907+ ":with_base_stamped_image" ,
908+ ":with_env" ,
909+ ":layers_with_env" ,
910+ ":with_double_env" ,
911+ ":with_label" ,
912+ ":with_double_label" ,
913+ ":with_stamp_label" ,
914+ ":with_user" ,
915+ ":workdir_with_tar_base" ,
916+ ":link_with_files_base" ,
917+ ":build_with_tag" ,
918+ ":with_passwd" ,
919+ ":with_passwd_tar" ,
920+ ":with_group" ,
921+ ":with_empty_files" ,
922+ ":with_empty_dirs" ,
923+ ":gen_image" ,
924+ ":data_path_image" ,
925+ ":no_data_path_image" ,
926+ ":absolute_data_path_image" ,
927+ ":root_data_path_image" ,
928+ ":dummy_repository" ,
929+ # TODO(mattmoor): Re-enable once archive is visible
930+ # "extras_with_deb",
931+ ":bundle_test" ,
932+ ":stamped_bundle_test" ,
933+ ":pause_based" ,
934+ ":dashdash_entrypoint" ,
935+ ":base_based_warning" ,
936+ ":cc_based_warning" ,
937+ "/pause_piecemeal:image" ,
938+ "/pause_piecemeal_gz:image" ,
939+ # Re-enable once https://github.com/bazelbuild/rules_d/issues/14 is fixed.
940+ # "d_image",
941+ ":java_image" ,
942+ ":py_image" ,
943+ ":py_image_with_symlinks_in_data" ,
944+ ":py_image_complex" ,
945+ ":war_image" ,
946+ ":flat" ,
947+ ":flatten_with_tarball_base" ,
948+ ":nodejs_image" ,
949+ ":compressed_experiment" ,
950+ ]
951+
952+ TEST_DATA = [
953+ "//testdata%s.tar" % t
954+ for t in TEST_TARGETS
955+ ] + [
956+ "//testdata:push_compression_gzip_fast" ,
957+ "//testdata:push_compression_gzip_normal" ,
958+ "//testdata:stamped_bundle_test" ,
959+ "//testdata:stamp_info_file.txt" ,
960+ "//tests/container:basic_windows_image.tar" ,
961+ ]
962+
963+ py_test (
964+ name = "image_test" ,
965+ size = "medium" ,
966+ srcs = ["image_test.py" ],
967+ data = TEST_DATA ,
968+ python_version = "PY3" ,
969+ srcs_version = "PY3" ,
970+ deps = ["@containerregistry" ],
971+ )
0 commit comments