generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into josiahsiegel/update/ignore-caught-exceptions
- Loading branch information
Showing
54 changed files
with
3,054 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# action.yml | ||
name: "Build Submissions" | ||
description: "Build submissions microservice" | ||
inputs: | ||
version: | ||
description: "Version tag" | ||
required: true | ||
upload-build: | ||
default: true | ||
run-integration-tests: | ||
default: false | ||
run-qc: | ||
default: false | ||
github-token: | ||
default: false | ||
sp-creds: | ||
description: "Azure Service Principal creds" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# These are for CI and not credentials of any system | ||
- name: Set Environment Variables | ||
working-directory: prime-router | ||
shell: bash | ||
run: | | ||
echo >> $GITHUB_ENV DB_USER='prime' | ||
echo >> $GITHUB_ENV DB_PASSWORD='changeIT!' | ||
- name: Remove unnecessary software | ||
shell: bash | ||
run: | | ||
sudo rm -rf /usr/local/lib/android | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
cache: "gradle" | ||
|
||
- uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 | ||
|
||
- name: Lint | ||
if: inputs.run-integration-tests == 'true' | ||
run: ./gradlew :submissions:ktlintCheck | ||
shell: bash | ||
|
||
- name: Spin up build containers | ||
working-directory: prime-router | ||
shell: bash | ||
run: docker compose -f docker-compose.postgres.yml up -d | ||
|
||
- name: Build Submissions Package | ||
uses: ./.github/actions/retry | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 2 | ||
retry_wait_seconds: 30 | ||
command: | | ||
./gradlew :submissions:build -x test | ||
shell: bash | ||
|
||
- name: Cleanup Gradle Cache | ||
if: inputs.run-integration-tests == 'true' | ||
working-directory: prime-router | ||
run: | | ||
rm -f .gradle/caches/modules-2/modules-2.lock | ||
rm -f .gradle/caches/modules-2/gc.properties | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
frontend-react/e2e/pages/authenticated/submissions-details.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { API_WATERS_REPORT } from "./report-details"; | ||
import { URL_SUBMISSION_HISTORY } from "./submission-history"; | ||
import { MOCK_GET_SUBMISSION_HISTORY } from "../../mocks/submissionHistory"; | ||
import { BasePage, BasePageTestArgs, type RouteHandlerFulfillEntry } from "../BasePage"; | ||
|
||
export const id = "73e3cbc8-9920-4ab7-871f-843a1db4c074"; | ||
export class SubmissionsDetailsPage extends BasePage { | ||
static readonly URL_SUBMISSIONS_DETAILS = `${URL_SUBMISSION_HISTORY}/${id}`; | ||
|
||
constructor(testArgs: BasePageTestArgs) { | ||
super( | ||
{ | ||
url: SubmissionsDetailsPage.URL_SUBMISSIONS_DETAILS, | ||
title: "ReportStream - CDC's free, interoperable data transfer platform", | ||
}, | ||
testArgs, | ||
); | ||
|
||
this.addMockRouteHandlers([this.createMockSubmissionHistoryHandler(MOCK_GET_SUBMISSION_HISTORY)]); | ||
} | ||
|
||
createMockSubmissionHistoryHandler(mockFileName: any, responseStatus = 200): RouteHandlerFulfillEntry { | ||
return [ | ||
`${API_WATERS_REPORT}/${id}/history`, | ||
() => { | ||
return { | ||
json: mockFileName, | ||
status: responseStatus, | ||
}; | ||
}, | ||
]; | ||
} | ||
|
||
/** | ||
* Error expected additionally if user context isn't admin | ||
*/ | ||
get isPageLoadExpected() { | ||
return super.isPageLoadExpected && this.testArgs.storageState === this.testArgs.adminLogin.path; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { BasePage, BasePageTestArgs } from "../../BasePage"; | ||
|
||
export class AboutCaseStudiesPage extends BasePage { | ||
constructor(testArgs: BasePageTestArgs) { | ||
super( | ||
{ | ||
url: "/about/case-studies", | ||
title: "ReportStream case studies", | ||
heading: testArgs.page.getByRole("heading", { | ||
name: "Case studies", | ||
exact: true, | ||
}), | ||
}, | ||
testArgs, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { BasePage, BasePageTestArgs } from "../../BasePage"; | ||
|
||
export class AboutReleaseNotesPage extends BasePage { | ||
constructor(testArgs: BasePageTestArgs) { | ||
super( | ||
{ | ||
url: "/about/release-notes", | ||
title: "ReportStream release notes", | ||
heading: testArgs.page.getByRole("heading", { | ||
name: "Release notes", | ||
exact: true, | ||
}), | ||
}, | ||
testArgs, | ||
); | ||
} | ||
} |
Oops, something went wrong.