Sha256: 69b7f8bddf9eeabc5c15b62b21308b280230d8b10eecb7719ff9cbc959259f9c

Contents?: true

Size: 822 Bytes

Versions: 54

Compression:

Stored size: 822 Bytes

Contents

describe Ufo::Docker::Builder do
  before(:all) do
    create_ufo_project
  end

  let(:builder) { Ufo::Docker::Builder.new }

  context "dockerfile uses ecr image for FROM instruction" do
    it "updates the auth token before building the image" do
      # builder.from_ecr_image?("spec/fixtures/dockerfiles/dockerhub/Dockerfile")
      names = builder.ecr_image_names("spec/fixtures/dockerfiles/ecr/Dockerfile")
      expect(names).not_to be_empty
    end
  end

  context "dockerfile uses dockerhub image for FROM instruction" do
    it "does not update the auth token before building the image" do
      # builder.from_ecr_image?("spec/fixtures/dockerfiles/dockerhub/Dockerfile")
      names = builder.ecr_image_names("spec/fixtures/dockerfiles/dockerhub/Dockerfile")
      expect(names).to be_empty
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
ufo-5.0.7 spec/lib/builder_spec.rb
ufo-5.0.6 spec/lib/builder_spec.rb
ufo-5.0.5 spec/lib/builder_spec.rb
ufo-5.0.4 spec/lib/builder_spec.rb
ufo-5.0.3 spec/lib/builder_spec.rb
ufo-5.0.2 spec/lib/builder_spec.rb
ufo-5.0.1 spec/lib/builder_spec.rb
ufo-5.0.0 spec/lib/builder_spec.rb
ufo-4.6.3 spec/lib/builder_spec.rb
ufo-4.6.2 spec/lib/builder_spec.rb
ufo-4.6.1 spec/lib/builder_spec.rb
ufo-4.6.0 spec/lib/builder_spec.rb
ufo-4.5.11 spec/lib/builder_spec.rb
ufo-4.5.10 spec/lib/builder_spec.rb
ufo-4.5.9 spec/lib/builder_spec.rb
ufo-4.5.8 spec/lib/builder_spec.rb
ufo-4.5.7 spec/lib/builder_spec.rb
ufo-4.5.6 spec/lib/builder_spec.rb
ufo-4.5.5 spec/lib/builder_spec.rb
ufo-4.5.4 spec/lib/builder_spec.rb