Skip to content

test failure in develop: HarvestingServerIT.testOaiFunctionality #8937

@pdurbin

Description

@pdurbin

What steps does it take to reproduce the issue?

  • Open HarvestingServerIT and run testOaiFunctionality.
  • Observe that the test fails

The output from the test is something like the XML below.

<OAI-PMH schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2022-08-25T14:00:57Z</responseDate>
  <request verb="ListIdentifiers" metadataPrefix="oai_dc" set="YZOIGQ">http://localhost:8080/oai</request>
  <ListIdentifiers>
    <header>
      <identifier>doi:10.5072/FK2/YZOIGQ</identifier>
      <datestamp>2022-08-25T14:00:52Z</datestamp>
      <setSpec>YZOIGQ</setSpec>
    </header>
  </ListIdentifiers>
</OAI-PMH>

The test is looking for a list of size 1:

    // Run ListIdentifiers on this newly-created set:
    Response listIdentifiersResponse = UtilIT.getOaiListIdentifiers(setName, "oai_dc");
    List ret = listIdentifiersResponse.getBody().xmlPath().getList("OAI-PMH.ListIdentifiers.header");

    assertEquals(OK.getStatusCode(), listIdentifiersResponse.getStatusCode());
    assertNotNull(ret);
    logger.info("setName: " + setName);
    logger.info("listIdentifiersResponse.prettyPrint:..... ");
    // There should be 1 and only 1 record in the response:
    assertEquals(1, ret.size());

Which version of Dataverse are you using?

The first observed failure on Jenkins on the develop branch was for 1ef73b0 (the tip of develop as of this writing).

We're also seeing the failure in PR #8880 where the tip of develop was merged.

Locally I'm on 6ca1c9d (I haven't pulled from develop so I haven't picked up the merge from PR #8901 yet) and @sekmiller also hasn't pulled and we are both seeing the failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions