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

[TTAHUB-3061] Generate processed dataset to remove PII in CI #2299

Draft
wants to merge 148 commits into
base: main
Choose a base branch
from

Conversation

GarrettEHill
Copy link
Collaborator

Description of change

How to test

Issue(s)

Checklists

Every PR

  • Meets issue criteria
  • JIRA ticket status updated
  • Code is meaningfully tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • API Documentation updated
  • Boundary diagram updated
  • Logical Data Model updated
  • Architectural Decision Records written for major infrastructure decisions
  • UI review complete

Before merge to main

  • OHS demo complete
  • Ready to create production PR

Production Deploy

  • Staging smoke test completed

After merge/deploy

  • Update JIRA ticket status

Comment on lines 268 to 275
it('throws an error if promise rejects', async () => {
mockS3.deleteObject.mockImplementation(
() => ({ promise: () => Promise.reject(anotherFakeError) }),
);
const got = deleteFileFromS3(Key, undefined, mockS3);
await expect(got).rejects.toBe(anotherFakeError);
expect(mockS3.deleteObject).toHaveBeenCalledWith({ Bucket, Key });
});
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there some reason why you are passing undefined as bucket name? it doesn't seem to be part of the test, and passing it as undefined means it defaults to the destructured value from the s3config function, so line 274 will not pass. I'm just not clear as to what we are trying to test here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants