Sha256: 7db0eede6b9607c32868f8849c1f67e6df96ff33cddf09fd93f5521b842fa87e
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# encoding: utf-8 require_relative 'spec_helper' require 'yaml' require 'awesome_print' require 'pp' require 'libis/tools/config_file' require 'libis/services/rosetta/ie_handler' require_relative 'ie_data' describe 'Rosetta IE Service' do let(:credentials) { Libis::Tools::ConfigFile.new File.join(File.dirname(__FILE__), 'credentials-test.yml') } subject(:ie_handler) do # noinspection RubyResolve Libis::Services::Rosetta::IeHandler.new credentials.rosetta_url, log: credentials.debug, log_level: credentials.debug_level end before :each do # noinspection RubyResolve ie_handler.authenticate(credentials.admin.user, credentials.admin.password, credentials.admin.institute) end it 'should get IE info' do mets = ie_handler.get_mets('IE1000') expect(mets).not_to be_nil expect(mets).to deep_include(expected_mets) # check_container expected_mets, mets end it 'should get IE metadata' do metadata = ie_handler.get_metadata('IE1000') expect(metadata).not_to be_nil expect(metadata).to deep_include(expected_ies) # check_container(expected_ies, metadata) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libis-services-1.1.0 | spec/rosetta_ie_spec.rb |