Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(metadata-test): ensure test setup is successful in creating index… #878

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
5 changes: 5 additions & 0 deletions suites/apis/metadataIngestionTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ Scenario('create a new mds entry and then issue http delete against mds/objects/
console.log(`uploadTmpFile: ${uploadTmpFile}`);
}

// To test the endpoint, the mds record entry needs to reference an indexd record
// So let us create one
const ok = await indexd.do.addFileIndices(Object.values(files));
expect(ok).to.be.true;

const guidToBeDeleted = files.allowed.did;

const createMdsEntryReq = await I.sendPostRequest(
Expand Down