Sha256: 84acaf9bf648e5b6e67df2ca356af88b6d09a0f6dee72897f8f6276f44d05d83

Contents?: true

Size: 548 Bytes

Versions: 55

Compression:

Stored size: 548 Bytes

Contents

require 'kontena/cli/registry/create_command'

describe Kontena::Cli::Registry::CreateCommand do
  include ClientHelpers
  include OutputHelpers

  context "with an existing legacy registry service" do
    let :service do
      {
        'name' => 'registry',
      }
    end

    before do
      allow(client).to receive(:get).with('services/test-grid/registry').and_return(service)
    end

    it "does not create the registry" do
      expect{subject.run []}.to exit_with_error.and output(/Registry already exists/).to_stderr
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
kontena-cli-1.5.4 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.4.rc1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.3 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.2 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.rc1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.pre5 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.pre4 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.pre3 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.pre2 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.5.0.pre1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.3 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.3.rc1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.2 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.2.rc1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.2.pre1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.1.rc1 spec/kontena/cli/registry/create_command_spec.rb
kontena-cli-1.4.1.pre1 spec/kontena/cli/registry/create_command_spec.rb