fedora-migrate 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,10 @@ describe FedoraMigrate::RubydoraConnection do
5
5
 
6
6
  let (:fedora_url) { "http://my.fedora3.instance" }
7
7
 
8
+ before do
9
+ allow_any_instance_of(Rubydora::Repository).to receive(:check_repository_version!).and_return("3.8")
10
+ end
11
+
8
12
  subject {
9
13
  FedoraMigrate::RubydoraConnection.new timeout: 3600, validateChecksum: true, url: fedora_url
10
14
  }
@@ -2,13 +2,19 @@ require 'fedora-migrate'
2
2
  require 'rspec/core'
3
3
  require 'rspec/core/rake_task'
4
4
  require 'jettywrapper'
5
- Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/fedora-4/migrate.zip"
5
+ Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/migrate.zip"
6
6
 
7
7
  RSpec::Core::RakeTask.new(:spec)
8
8
 
9
9
  desc "Run continuous integration tests"
10
- task ci: ['jetty:clean', 'jetty:start', 'fixtures:load', 'spec']
11
-
10
+ task ci: ['jetty:clean'] do
11
+ jetty_params = Jettywrapper.load_config
12
+ error = Jettywrapper.wrap(jetty_params) do
13
+ Rake::Task['fixtures:load'].invoke
14
+ Rake::Task['spec'].invoke
15
+ end
16
+ raise "test failures: #{error}" if error
17
+ end
12
18
  namespace :fixtures do
13
19
 
14
20
  desc "Load Fedora3 fixtures for testing; use FIXTURE_PATH= for your own"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedora-migrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-21 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hydra-head
@@ -166,6 +166,7 @@ files:
166
166
  - lib/fedora_migrate/hooks.rb
167
167
  - lib/fedora_migrate/logger.rb
168
168
  - lib/fedora_migrate/migration_options.rb
169
+ - lib/fedora_migrate/migration_report.rb
169
170
  - lib/fedora_migrate/mover.rb
170
171
  - lib/fedora_migrate/object_mover.rb
171
172
  - lib/fedora_migrate/permissions.rb
@@ -179,6 +180,7 @@ files:
179
180
  - lib/fedora_migrate/version.rb
180
181
  - lib/tasks/fedora-migrate.rake
181
182
  - spec/fixtures/datastreams/sufia-rb68xc089-characterization.xml
183
+ - spec/fixtures/failed-report.json
182
184
  - spec/fixtures/objects/f3-migration-a.xml
183
185
  - spec/fixtures/objects/gf-versioned-content.xml
184
186
  - spec/fixtures/objects/scholarsphere_5712mc568.xml
@@ -194,6 +196,7 @@ files:
194
196
  - spec/fixtures/objects/sufia_5m60qr95r.xml
195
197
  - spec/fixtures/objects/sufia_5m60qr961.xml
196
198
  - spec/fixtures/objects/sufia_5m60qr979.xml
199
+ - spec/fixtures/sample-report.json
197
200
  - spec/integration/content_versions_spec.rb
198
201
  - spec/integration/fedora3_interface_spec.rb
199
202
  - spec/integration/missing_relationships_spec.rb
@@ -212,6 +215,7 @@ files:
212
215
  - spec/unit/fedora_migrate_spec.rb
213
216
  - spec/unit/file_configurator_spec.rb
214
217
  - spec/unit/migration_options_spec.rb
218
+ - spec/unit/migration_report_spec.rb
215
219
  - spec/unit/mover_spec.rb
216
220
  - spec/unit/object_mover_spec.rb
217
221
  - spec/unit/permissions_mover_spec.rb
@@ -240,12 +244,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
244
  version: '0'
241
245
  requirements: []
242
246
  rubyforge_project:
243
- rubygems_version: 2.4.5
247
+ rubygems_version: 2.4.6
244
248
  signing_key:
245
249
  specification_version: 4
246
250
  summary: Migrate Hydra-based repository data from Fedora3 to Fedora4
247
251
  test_files:
248
252
  - spec/fixtures/datastreams/sufia-rb68xc089-characterization.xml
253
+ - spec/fixtures/failed-report.json
249
254
  - spec/fixtures/objects/f3-migration-a.xml
250
255
  - spec/fixtures/objects/gf-versioned-content.xml
251
256
  - spec/fixtures/objects/scholarsphere_5712mc568.xml
@@ -261,6 +266,7 @@ test_files:
261
266
  - spec/fixtures/objects/sufia_5m60qr95r.xml
262
267
  - spec/fixtures/objects/sufia_5m60qr961.xml
263
268
  - spec/fixtures/objects/sufia_5m60qr979.xml
269
+ - spec/fixtures/sample-report.json
264
270
  - spec/integration/content_versions_spec.rb
265
271
  - spec/integration/fedora3_interface_spec.rb
266
272
  - spec/integration/missing_relationships_spec.rb
@@ -279,6 +285,7 @@ test_files:
279
285
  - spec/unit/fedora_migrate_spec.rb
280
286
  - spec/unit/file_configurator_spec.rb
281
287
  - spec/unit/migration_options_spec.rb
288
+ - spec/unit/migration_report_spec.rb
282
289
  - spec/unit/mover_spec.rb
283
290
  - spec/unit/object_mover_spec.rb
284
291
  - spec/unit/permissions_mover_spec.rb