spec/lib/release_tools/auto_deploy/tagger/cng_image_spec.rb [42:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        GITALY_SERVER_VERSION: #{version_map['GITALY_SERVER_VERSION']}
      MSG

      expect(tagger.tag_message).to eq(expected)
    end
  end

  describe '#tag!' do
    it 'creates a tag on the project' do
      branch_head = double(
        created_at: Time.new(2019, 7, 2, 10, 14),
        id: SecureRandom.hex(20)
      )

      allow(tagger).to receive_messages(branch_head: branch_head, tag_name: 'tag_name')

      without_dry_run do
        tagger.tag!
      end

      expect(fake_client).to have_received(:create_tag)
        .with(described_class::PROJECT.auto_deploy_path, 'tag_name', branch_head.id, anything)
    end

    it 'adds the version data' do
      branch_head = double(
        created_at: Time.new(2019, 7, 2, 10, 14),
        id: 'foo'
      )

      allow(tagger).to receive_messages(branch_head: branch_head, tag_name: '12.1.3')

      without_dry_run do
        tagger.tag!
      end

      expect(tagger.release_metadata.releases).not_to be_empty
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spec/lib/release_tools/auto_deploy/tagger/omnibus_spec.rb [46:82]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        GITALY_SERVER_VERSION: #{version_map['GITALY_SERVER_VERSION']}
      MSG

      expect(tagger.tag_message).to eq(expected)
    end
  end

  describe '#tag!' do
    it 'creates a tag on the project' do
      branch_head = double(
        created_at: Time.new(2019, 7, 2, 10, 14),
        id: SecureRandom.hex(20)
      )

      allow(tagger).to receive_messages(branch_head: branch_head, tag_name: 'tag_name')

      without_dry_run do
        tagger.tag!
      end

      expect(fake_client).to have_received(:create_tag)
        .with(described_class::PROJECT.auto_deploy_path, 'tag_name', branch_head.id, anything)
    end

    it 'adds the version data' do
      branch_head = double(
        created_at: Time.new(2019, 7, 2, 10, 14),
        id: 'foo'
      )

      allow(tagger).to receive_messages(branch_head: branch_head, tag_name: '12.1.3')

      without_dry_run do
        tagger.tag!
      end

      expect(tagger.release_metadata.releases).not_to be_empty
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



