Sha256: 169fc60544f545754b21377d5249c0b88ba5df2e5351795d069f41e0a4acdb9a

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

require 'spec_helper'

describe KPM::KillbillPluginArtifact do
  before(:all) do
    @logger       = Logger.new(STDOUT)
    @logger.level = Logger::INFO
  end

  it 'should be able to download and verify artifacts' do
    Dir.mktmpdir do |dir|
      info = KPM::KauiArtifact.pull(@logger,
                                    KPM::BaseArtifact::KAUI_GROUP_ID,
                                    KPM::BaseArtifact::KAUI_ARTIFACT_ID,
                                    KPM::BaseArtifact::KAUI_PACKAGING,
                                    KPM::BaseArtifact::KAUI_CLASSIFIER,
                                    'LATEST',
                                    dir)
      expect(info[:file_name]).to eq "kaui-standalone-#{info[:version]}.war"
      expect(info[:size]).to eq File.size(info[:file_path])
    end
  end

  it 'should be able to list versions' do
    versions = KPM::KauiArtifact.versions.to_a
    expect(versions.size).to be >= 2
    expect(versions[0]).to eq '0.0.1'
    expect(versions[1]).to eq '0.0.2'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kpm-0.10.6 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.11.1 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.5 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.11.0 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.4 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.3 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.2 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.1 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.10.0 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.9.0 spec/kpm/remote/kaui_artifact_spec.rb