Skip to content

Commit

Permalink
quick fix: remove protected image repo spec test
Browse files Browse the repository at this point in the history
After #2114 was merged, an issue was revealed
with image size - protected repo spec test.
It was discovered only after merging.
Until this is fixed, disabling this variant
of the image size spec test.

Refs: #2114 #2136

Signed-off-by: Martin Matyas <[email protected]>
  • Loading branch information
martin-mat committed Aug 16, 2024
1 parent 3006e37 commit f3c887d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions spec/workload/microservice_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ describe "Microservice" do

it "'reasonable_image_size' should pass if image is smaller than 5gb, when using a protected image", tags: ["reasonable_image_size"] do
# If github secrets are loaded correctly - use protected coredns
if ENV["PROTECTED_DOCKERHUB_USERNAME"]? && ENV["PROTECTED_DOCKERHUB_PASSWORD"]? && ENV["PROTECTED_DOCKERHUB_EMAIL"]? && ENV["PROTECTED_IMAGE_REPO"]? &&
!ENV["PROTECTED_DOCKERHUB_USERNAME"].to_s.empty? && !ENV["PROTECTED_DOCKERHUB_PASSWORD"].to_s.empty? &&
!ENV["PROTECTED_DOCKERHUB_EMAIL"].to_s.empty? && !ENV["PROTECTED_IMAGE_REPO"].to_s.empty?
cnf = "./sample-cnfs/sample_coredns_protected"
else
# TODO: fix protected image repo
#if ENV["PROTECTED_DOCKERHUB_USERNAME"]? && ENV["PROTECTED_DOCKERHUB_PASSWORD"]? && ENV["PROTECTED_DOCKERHUB_EMAIL"]? && ENV["PROTECTED_IMAGE_REPO"]? &&
# !ENV["PROTECTED_DOCKERHUB_USERNAME"].to_s.empty? && !ENV["PROTECTED_DOCKERHUB_PASSWORD"].to_s.empty? &&
# !ENV["PROTECTED_DOCKERHUB_EMAIL"].to_s.empty? && !ENV["PROTECTED_IMAGE_REPO"].to_s.empty?
# cnf = "./sample-cnfs/sample_coredns_protected"
#else
cnf = "./sample-cnfs/sample-coredns-cnf"
end
#end
ShellCmd.cnf_setup("cnf-path=#{cnf}")
result = ShellCmd.run_testsuite("reasonable_image_size verbose")
result[:status].success?.should be_true
Expand Down

0 comments on commit f3c887d

Please sign in to comment.