Skip to content

Commit

Permalink
Merge pull request #5155 from flexion/remove-pii-data
Browse files Browse the repository at this point in the history
Remove PII from seed and test data
  • Loading branch information
jimlerza authored Jul 31, 2024
2 parents 591558e + 1e100fa commit f6c563c
Show file tree
Hide file tree
Showing 56 changed files with 178 additions and 176 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('getOtherFilers', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'gordon@example.com',
name: 'Gordon Ramsay',
name: 'Saturnino Nao',
phone: '123-456-7890',
postalCode: '05198',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
Expand All @@ -31,7 +31,7 @@ describe('getOtherFilers', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'mayor@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '123-456-7890',
postalCode: '05198',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
Expand Down
4 changes: 2 additions & 2 deletions shared/src/business/entities/cases/Case.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ describe('Case entity', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'gordon@example.com',
name: 'Gordon Ramsay',
name: 'Saturnino Nao',
phone: '1234567890',
postalCode: '05198',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
Expand All @@ -484,7 +484,7 @@ describe('Case entity', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'mayor@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '05198',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
Expand Down
2 changes: 1 addition & 1 deletion shared/src/business/entities/cases/PaperPetition.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ describe('paperPetition entity', () => {
it('fails validation if preferredTrialCity is set, but requestForPlaceOfTrialFile is not', () => {
const paperPetition = new PaperPetition(
{
caseCaption: 'Dr. Guy Fieri, Petitioner',
caseCaption: 'Dr. Roslindis Angelino, Petitioner',
preferredTrialCity: 'Flavortown, AR',
receivedAt: applicationContext.getUtilities().createISODateString(),
},
Expand Down
4 changes: 2 additions & 2 deletions shared/src/business/entities/cases/PublicCase.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ describe('PublicCase', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'gordon@example.com',
name: 'Gordon Ramsay',
name: 'Saturnino Nao',
phone: '1234567890',
postalCode: '05198',
state: 'AK',
Expand All @@ -370,7 +370,7 @@ describe('PublicCase', () => {
country: 'USA',
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'gordon@example.com',
name: 'Gordon Ramsay',
name: 'Saturnino Nao',
phone: '1234567890',
postalCode: '05198',
state: 'AK',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('Document Search entity', () => {

it('should pass validation when judge is provided', () => {
const documentSearch = new DocumentSearch({
judge: 'Guy Fieri',
judge: 'Roslindis Angelino',
});

const validationErrors = documentSearch.getFormattedValidationErrors();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('generateSignedDocument', () => {
let rotationReturnValue;
let saveMock;

const mockSignatureName = '(Signed) Dr. Guy Fieri';
const mockSignatureName = '(Signed) Dr. Roslindis Angelino';
const mockTitle = 'Chief Judge';

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('getCaseDeadlinesInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('opinionAdvancedSearchInteractor', () => {
documentTitle: 'T.C. Opinion for More Candy',
documentType: 'T.C. Opinion',
eventCode: 'TCOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
{
caseCaption: 'Samson Workman, Petitioner',
Expand All @@ -31,7 +31,7 @@ describe('opinionAdvancedSearchInteractor', () => {
documentTitle: 'Summary Opinion for KitKats',
documentType: 'Summary Opinion',
eventCode: 'SOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
],
});
Expand Down Expand Up @@ -60,7 +60,7 @@ describe('opinionAdvancedSearchInteractor', () => {
documentTitle: 'T.C. Opinion for More Candy',
documentType: 'T.C. Opinion',
eventCode: 'TCOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
{
caseCaption: 'Samson Workman, Petitioner',
Expand All @@ -69,7 +69,7 @@ describe('opinionAdvancedSearchInteractor', () => {
documentTitle: 'Summary Opinion for KitKats',
documentType: 'Summary Opinion',
eventCode: 'SOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
]);
});
Expand All @@ -82,7 +82,7 @@ describe('opinionAdvancedSearchInteractor', () => {
documentTitle: 'T.C. Opinion for More Candy',
documentType: 'T.C. Opinion',
eventCode: 'TCOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
});
applicationContext
.getPersistenceGateway()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('orderAdvancedSearchInteractor', () => {
'Everyone knows that Reeses Outrageous bars are the best candy',
documentTitle: 'Order for More Candy',
eventCode: 'ODD',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
{
caseCaption: 'Samson Workman, Petitioner',
Expand All @@ -35,7 +35,7 @@ describe('orderAdvancedSearchInteractor', () => {
documentContents: 'KitKats are inferior candies',
documentTitle: 'Order for KitKats',
eventCode: 'ODD',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
},
],
totalCount: 2,
Expand Down Expand Up @@ -73,7 +73,7 @@ describe('orderAdvancedSearchInteractor', () => {
documentTitle: 'T.C. Opinion for More Candy',
documentType: 'T.C. Opinion',
eventCode: 'TCOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
});
applicationContext
.getPersistenceGateway()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ describe('removePdfFromDocketEntryInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { saveSignedDocumentInteractor } from './saveSignedDocumentInteractor';
describe('saveSignedDocumentInteractor', () => {
let mockCase;

const mockSigningName = 'Guy Fieri';
const mockSigningName = 'Roslindis Angelino';
const mockDocumentIdBeforeSignature = 'abc81f4d-1e47-423a-8caf-6d2fdc3d3857';
const mockSignedDocketEntryId = 'abc81f4d-1e47-423a-8caf-6d2fdc3d3858';
const mockOriginalDocketEntryId = 'abc81f4d-1e47-423a-8caf-6d2fdc3d3859';
Expand Down
4 changes: 2 additions & 2 deletions shared/src/business/utilities/caseFilter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('caseFilter', () => {
const unsealedDocketEntryId = '1f1aa3f7-e2e3-43e6-885d-4ce341588c79';
const documentSearchResults = [
{
caseCaption: 'Hanan Al Hroub, Petitioner',
caseCaption: 'Luksa Lucia, Petitioner',
docketEntryId: '1f1aa3f7-e2e3-43e6-885d-4ce341588c76',
docketNumber: '104-17',
docketNumberWithSuffix: '104-17R',
Expand All @@ -95,7 +95,7 @@ describe('caseFilter', () => {
signedJudgeName: 'Maurice B. Foley',
},
{
caseCaption: 'Hanan Al Hroub, Petitioner',
caseCaption: 'Luksa Lucia, Petitioner',
docketEntryId: unsealedDocketEntryId,
docketNumber: '104-17',
docketNumberWithSuffix: '104-17R',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ describe('documentServiceEmail', () => {
documentDetail: {
documentTitle: 'Answer',
eventCode: 'A',
filedBy: 'Petr. Guy Fieri',
filedBy: 'Petr. Roslindis Angelino',
servedAtFormatted: '02/03/2020 12:00am EST',
},
name: 'Guy Fieri',
name: 'Roslindis Angelino',
taxCourtLoginUrl: 'http://example.com/login',
},
});
Expand Down
4 changes: 2 additions & 2 deletions shared/src/test/mockCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const MOCK_CASE_WITH_TRIAL_SESSION = {
};

export const MOCK_ELIGIBLE_CASE = {
caseCaption: 'Guy Fieri & Gordon Ramsay, Petitioner',
caseCaption: 'Roslindis Angelino & Saturnino Nao, Petitioner',
caseType: CASE_TYPES_MAP.other,
docketNumber: '321-21',
docketNumberSuffix: 'W',
Expand All @@ -412,7 +412,7 @@ export const MOCK_ELIGIBLE_CASE = {
};

export const MOCK_ELIGIBLE_CASE_WITH_PRACTITIONERS = {
caseCaption: 'Guy Fieri & Gordon Ramsay, Petitioner',
caseCaption: 'Roslindis Angelino & Saturnino Nao, Petitioner',
caseType: CASE_TYPES_MAP.other,
docketNumber: '321-21',
docketNumberSuffix: 'W',
Expand Down
Binary file modified shared/test-pdf-expected-images/Document_Service_Email.pdf.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('associateIrsPractitionerToCase', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {

describe('addDraftStampOrderDocketEntryInteractor', () => {
let mockLock;
const mockSigningName = 'Guy Fieri';
const mockSigningName = 'Roslindis Angelino';
const mockStampedDocketEntryId = 'abc81f4d-1e47-423a-8caf-6d2fdc3d3858';
const mockOriginalDocketEntryId = 'abc81f4d-1e47-423a-8caf-6d2fdc3d3859';
const mockParentMessageId = 'b3bc3773-6ddd-439d-a3c9-60d6beceff99';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('updateCounselOnCaseInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_ELECTRONIC,
Expand All @@ -118,7 +118,7 @@ describe('updateCounselOnCaseInteractor', () => {
contactId: '3d914ca2-7876-43a7-acfa-ccb645717e11',
contactType: CONTACT_TYPES.secondary,
countryType: COUNTRY_TYPES.DOMESTIC,
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_PAPER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('fileCourtIssuedOrderInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('fileCourtIssuedOrderInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('updateCourtIssuedOrderInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand All @@ -84,7 +84,7 @@ describe('updateCourtIssuedOrderInteractor', () => {
beforeEach(() => {
mockLock = undefined;
mockCurrentUser = new User({
name: 'Olivia Jade',
name: 'Naveen Jaron',
role: ROLES.petitionsClerk,
userId: 'c54ba5a9-b37b-479d-9201-067ec6e335bb',
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('strikeDocketEntryInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('fileExternalDocumentInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_PAPER,
Expand Down Expand Up @@ -255,7 +255,7 @@ describe('fileExternalDocumentInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
serviceIndicator: SERVICE_INDICATOR_TYPES.SI_PAPER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('associateIrsPractitionerWithCaseInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('associatePrivatePractitionerWithCaseInteractor', () => {
contactType: CONTACT_TYPES.primary,
countryType: COUNTRY_TYPES.DOMESTIC,
email: 'fieri@example.com',
name: 'Guy Fieri',
name: 'Roslindis Angelino',
phone: '1234567890',
postalCode: '12345',
state: 'CA',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('createMessageInteractor', () => {
applicationContext
.getPersistenceGateway()
.getCaseByDocketNumber.mockReturnValue({
caseCaption: 'Guy Fieri, Petitioner',
caseCaption: 'Roslindis Angelino, Petitioner',
docketNumberWithSuffix: '123-45S',
status: CASE_STATUS_TYPES.generalDocket,
});
Expand All @@ -87,7 +87,7 @@ describe('createMessageInteractor', () => {
...messageData,
attachments: mockAttachments,
caseStatus: CASE_STATUS_TYPES.generalDocket,
caseTitle: 'Guy Fieri',
caseTitle: 'Roslindis Angelino',
docketNumber: '101-20',
docketNumberWithSuffix: '123-45S',
from: 'Test Petitionsclerk',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('replyToMessageInteractor', () => {
applicationContext
.getPersistenceGateway()
.getCaseByDocketNumber.mockReturnValue({
caseCaption: 'Guy Fieri, Petitioner',
caseCaption: 'Roslindis Angelino, Petitioner',
docketNumber: '123-45',
docketNumberWithSuffix: '123-45S',
status: CASE_STATUS_TYPES.generalDocket,
Expand All @@ -88,7 +88,7 @@ describe('replyToMessageInteractor', () => {
...messageData,
attachments: mockAttachments,
caseStatus: CASE_STATUS_TYPES.generalDocket,
caseTitle: 'Guy Fieri',
caseTitle: 'Roslindis Angelino',
docketNumber: '101-20',
docketNumberWithSuffix: '123-45S',
from: 'Test Petitionsclerk',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('opinionPublicSearchInteractor', () => {
documentTitle: 'T.C. Opinion for More Candy',
documentType: 'T.C. Opinion',
eventCode: 'TCOP',
signedJudgeName: 'Guy Fieri',
signedJudgeName: 'Roslindis Angelino',
});
applicationContext
.getPersistenceGateway()
Expand Down
Loading

0 comments on commit f6c563c

Please sign in to comment.