Sha256: e9df543fdd3778b26d7190347eaa7d631c2f701e5157b90cf9e821e80cb7e872

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 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)
      info[:file_name].should eq "kaui-standalone-#{info[:version]}.war"
      info[:size].should 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
    versions[0].should eq '0.0.1'
    versions[1].should eq '0.0.2'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kpm-0.8.2 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.8.1 spec/kpm/remote/kaui_artifact_spec.rb
kpm-0.8.0 spec/kpm/remote/kaui_artifact_spec.rb