Sha256: 3e7cda20c8998315ad24dccbf06dd2d713f993c0474f3e1b33db3fd22cce7baf

Contents?: true

Size: 1.53 KB

Versions: 29

Compression:

Stored size: 1.53 KB

Contents

require 'spec_helper'

describe KPM::KillbillServerArtifact do

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

  # Takes about 7 minutes...
  it 'should be able to download and verify artifacts' do
    Dir.mktmpdir do |dir|
      info = KPM::KillbillServerArtifact.pull(@logger,
                                              KPM::BaseArtifact::KILLBILL_GROUP_ID,
                                              KPM::BaseArtifact::KILLBILL_ARTIFACT_ID,
                                              KPM::BaseArtifact::KILLBILL_PACKAGING,
                                              KPM::BaseArtifact::KILLBILL_CLASSIFIER,
                                              'LATEST',
                                              dir)
      info[:file_name].should == "killbill-profiles-killbill-#{info[:version]}.war"
      info[:size].should == File.size(info[:file_path])
    end
  end

  it 'should be able to list versions' do
    versions = KPM::KillbillServerArtifact.versions(KPM::BaseArtifact::KILLBILL_ARTIFACT_ID).to_a
    versions.size.should >= 2
    versions[0].should == '0.11.10'
    versions[1].should == '0.11.11'
  end

  it 'should get dependencies information' do
    info = KPM::KillbillServerArtifact.info('0.15.9')
    info['killbill'].should == '0.15.9'
    info['killbill-oss-parent'].should == '0.62'
    info['killbill-api'].should == '0.27'
    info['killbill-plugin-api'].should == '0.16'
    info['killbill-commons'].should == '0.10'
    info['killbill-platform'].should == '0.13'
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
kpm-0.7.1 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.7.0 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.5 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.4 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.3 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.2 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.1 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.6.0 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.5.3 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.5.2 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.5.1 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.5.0 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.4.2 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.4.1 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.4.0 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.3.0 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.2.4 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.2.3 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.2.2 spec/kpm/remote/killbill_server_artifact_spec.rb
kpm-0.2.1 spec/kpm/remote/killbill_server_artifact_spec.rb