Skip to content

Commit

Permalink
Merge pull request #233 from sul-dlss/smpl-test-data
Browse files Browse the repository at this point in the history
test data: add smpl_multimedia and config yaml for it
  • Loading branch information
atz committed Sep 13, 2018
2 parents 0e02f78 + 667e136 commit db58c82
Show file tree
Hide file tree
Showing 60 changed files with 62 additions and 13 deletions.
2 changes: 1 addition & 1 deletion spec/lib/pre_assembly/bundle_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
bundle_context_from_hash(:proj_rumsey).tap do |c|
c.manifest_cols[:object_container] = 'folder'
allow(c).to receive(:path_in_bundle).with(any_args).and_call_original
allow(c).to receive(:path_in_bundle).with("manifest.csv").and_return('spec/test_data/bundle_input_e/manifest_of_3.csv')
allow(c).to receive(:path_in_bundle).with("manifest.csv").and_return('spec/test_data/smpl_multimedia/manifest_of_3.csv')
end
end
let(:revs) { described_class.new(revs_context) }
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/pre_assembly/smpl_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
RSpec.describe PreAssembly::Smpl do
let(:bundle_dir) { Rails.root.join('spec/test_data/bundle_input_e') }
let(:bundle_dir) { Rails.root.join('spec/test_data/smpl_multimedia') }

describe 'SMPL content metadata generation and techMetadata generation - no thumb declaration' do
let(:dobj1) { setup_dobj('aa111aa1111', smpl_manifest) }
Expand Down
2 changes: 1 addition & 1 deletion spec/models/job_run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let(:bc) do
BundleContext.new(project_name: "SmokeTest",
content_structure: 1,
bundle_dir: "spec/test_data/bundle_input_g",
bundle_dir: "spec/test_data/images_jp2_tif",
staging_style_symlink: false,
content_metadata_creation: 1,
user: user)
Expand Down
2 changes: 0 additions & 2 deletions spec/test_data/bundle_input_e/manifest.csv

This file was deleted.

2 changes: 1 addition & 1 deletion spec/test_data/project_config_files/local_dev_sohp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'
accession_items: ~
staging_style: 'copy'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'
accession_items: ~
staging_style: 'copy'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'
accession_items: ~
staging_style: 'symlink'
Expand Down
2 changes: 1 addition & 1 deletion spec/test_data/project_config_files/proj_sohp2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: ~
accession_items: ~

Expand Down
2 changes: 1 addition & 1 deletion spec/test_data/project_config_files/proj_sohp3.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'

validate_files: true
Expand Down
2 changes: 1 addition & 1 deletion spec/test_data/project_config_files/proj_sohp4.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'

validate_files: true
Expand Down
48 changes: 48 additions & 0 deletions spec/test_data/project_config_files/smpl_multimedia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# An example of a project which has already registered objects, but for which
# you want to provide a manifest to provide descriptive metadata and a MODS template.
# Object discovery also occurs via the manifest.

project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: 'tmp'
accession_items: ~

validate_files: false

manifest: 'manifest.csv'
checksums_file: ~
desc_md_template: 'mods_template.xml'

progress_log_file: 'log/progress_log_smpl_multimedia.yaml'
project_name: 'SMPL Multimedia'

publish_attr:
publish: 'no'
shelve: 'no'
preserve: 'yes'

#init_assembly_wf: true

content_md_creation:
style: 'smpl'
smpl_manifest: 'smpl_manifest_with_thumb.csv'

object_discovery:
use_manifest: false
glob: '*'
regex: '^[a-z][a-z]\d\d\d[a-z][a-z]\d\d\d\d$'

stageable_discovery:
use_container: false
glob: '**/*/*'
regex: '^((?!.md5).)*$'

manifest_cols:
druid: 'druid'
object_container: 'folder'
source_id: 'sourceid'
label: 'label'

content_exclusion: ~
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: ~
accession_items: ~

Expand Down
2 changes: 1 addition & 1 deletion spec/test_data/project_config_files/sohp_files_only.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project_style:
content_structure: 'smpl'

bundle_dir: 'spec/test_data/bundle_input_e'
bundle_dir: 'spec/test_data/smpl_multimedia'
staging_dir: ~
accession_items: ~

Expand Down
3 changes: 3 additions & 0 deletions spec/test_data/smpl_multimedia/manifest.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
druid,sourceid,folder,label,description
"druid:aa111aa1111","bar-1.0","aa111aa1111","Label 1","This is a description for label 1"
"druid:bb222bb2222","bar-2.0","bb222bb2222","Label 2","This is a description for label 2"

0 comments on commit db58c82

Please sign in to comment.