Skip to content

fix issue with entry model being wrong #452

fix issue with entry model being wrong

fix issue with entry model being wrong #452

GitHub Actions / JUnit Test Report failed Dec 23, 2023 in 0s

280 tests run, 245 passed, 33 skipped, 2 failed.

Annotations

Check failure on line 88 in spec/models/bulkrax/pbcore_xml_entry_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/bulkrax/pbcore_xml_entry_spec.rb.Bulkrax::PbcoreXmlEntry#build with raw_metadata succeeds

expected: "Complete"
     got: "Failed"

(compared using ==)
Raw output
Failure/Error: expect(xml_entry.status).to eq('Complete')

  expected: "Complete"
       got: "Failed"

  (compared using ==)
./spec/models/bulkrax/pbcore_xml_entry_spec.rb:88:in `block (4 levels) in <module:Bulkrax>'

Check failure on line 93 in spec/models/bulkrax/pbcore_xml_entry_spec.rb

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

./spec/models/bulkrax/pbcore_xml_entry_spec.rb.Bulkrax::PbcoreXmlEntry#build with raw_metadata builds entry

expected: {"admin_set_id"=>"MyString", "bulkrax_identifier"=>"cpb-aacip-20-000000hr", "children"=>[], "delete"=>nil, "file"=>nil, "model"=>nil, "rights_statement"=>[nil], "visibility"=>"open"}
     got: {"bulkrax_identifier"=>"cpb-aacip-20-000000hr"}

(compared using ==)

Diff:

@@ -1,9 +1,2 @@
-"admin_set_id" => "MyString",
 "bulkrax_identifier" => "cpb-aacip-20-000000hr",
-"children" => [],
-"delete" => nil,
-"file" => nil,
-"model" => nil,
-"rights_statement" => [nil],
-"visibility" => "open",
Raw output
Failure/Error:
  expect(xml_entry.parsed_metadata).to eq(
    {
      "admin_set_id"=>"MyString",
      "bulkrax_identifier"=>"cpb-aacip-20-000000hr",
      "children"=>[],
      "delete"=>nil,
      "file"=>nil,
      "model"=>nil,
      "rights_statement"=>[nil],
      "visibility"=>"open"

  expected: {"admin_set_id"=>"MyString", "bulkrax_identifier"=>"cpb-aacip-20-000000hr", "children"=>[], "delete"=>nil, "file"=>nil, "model"=>nil, "rights_statement"=>[nil], "visibility"=>"open"}
       got: {"bulkrax_identifier"=>"cpb-aacip-20-000000hr"}

  (compared using ==)

  Diff:

  @@ -1,9 +1,2 @@
  -"admin_set_id" => "MyString",
   "bulkrax_identifier" => "cpb-aacip-20-000000hr",
  -"children" => [],
  -"delete" => nil,
  -"file" => nil,
  -"model" => nil,
  -"rights_statement" => [nil],
  -"visibility" => "open",
./spec/models/bulkrax/pbcore_xml_entry_spec.rb:93:in `block (4 levels) in <module:Bulkrax>'