-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2584 from GSA-TTS/main
- Loading branch information
Showing
29 changed files
with
379 additions
and
642 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
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,56 @@ | ||
--- | ||
name: "Task: run Django command to generate and disseminate test data for non-production environments." | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
required: true | ||
type: choice | ||
description: The environment the workflow should run on. | ||
options: | ||
- dev | ||
- staging | ||
dbkeys: | ||
required: false | ||
type: string | ||
description: Comma-separated list of report-IDs. | ||
years: | ||
required: false | ||
type: string | ||
description: Comma-separated list of report years. The list of years needs to be the same lenght as the list of dbkeys. | ||
workflow_call: | ||
inputs: | ||
environment: | ||
required: true | ||
type: string | ||
description: The environment the workflow should run on. | ||
# dev, staging | ||
dbkeys: | ||
required: false | ||
type: string | ||
description: Comma-separated list of report-IDs. | ||
years: | ||
required: false | ||
type: string | ||
description: Comma-separated list of report years. The list of years needs to be the same lenght as the list of dbkeys. | ||
|
||
jobs: | ||
end-to-end-test-data: | ||
name: Generate and disseminate end-to-end test data in ${{ inputs.environment }} database | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.environment }} | ||
env: | ||
space: ${{ inputs.environment }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Django command to generate and disseminate end-to-end test data in ${{ inputs.environment }} | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
cf_username: ${{ secrets.CF_USERNAME }} | ||
cf_password: ${{ secrets.CF_PASSWORD }} | ||
cf_org: gsa-tts-oros-fac | ||
cf_space: ${{ env.space }} | ||
command: cf run-task gsa-fac -k 2G -m 2G --name generate_e2e_data --command "python manage.py end_to_end_test_data_generator --dbkeys ${{ inputs.dbkeys }} --years ${{ inputs.years }}" |
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 |
---|---|---|
@@ -1,65 +1,22 @@ | ||
import 'cypress-file-upload'; | ||
import { testCrossValidation } from '../support/cross-validation.js'; | ||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
//import { testLogoutGov } from '../support/logout-gov.js'; | ||
import { testValidAccess } from '../support/check-access.js'; | ||
import { testValidEligibility } from '../support/check-eligibility.js'; | ||
import { testValidAuditeeInfo } from '../support/auditee-info.js'; | ||
import { testValidGeneralInfo } from '../support/general-info.js'; | ||
import { testReportIdFound, testReportIdNotFound } from '../support/dissemination-table.js'; | ||
import { testFederalAwards } from '../support/federal-awards.js'; | ||
import { testFileUploadMsg } from '../support/file-uploaded-msg.js'; | ||
|
||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
import { | ||
testWorkbookAdditionalEINs, | ||
testWorkbookFederalAwards, | ||
testWorkbookAdditionalEINs, | ||
} from '../support/workbook-uploads.js'; | ||
|
||
const LOGIN_TEST_EMAIL_AUDITEE = Cypress.env('LOGIN_TEST_EMAIL_AUDITEE'); | ||
const LOGIN_TEST_PASSWORD_AUDITEE = Cypress.env('LOGIN_TEST_PASSWORD_AUDITEE'); | ||
const LOGIN_TEST_OTP_SECRET_AUDITEE = Cypress.env('LOGIN_TEST_OTP_SECRET_AUDITEE'); | ||
|
||
describe('Additional EINs page', () => { | ||
before(() => { | ||
cy.session('login-session', () => { | ||
cy.visit('/'); | ||
cy.login(); | ||
}); | ||
}); | ||
|
||
it('Additional EINs uploads successfully', () => { | ||
cy.visit('/'); | ||
|
||
cy.url().should('include', '/'); | ||
testLoginGovLogin(); | ||
}); | ||
|
||
cy.get('label[for=check-start-new-submission]').click(); | ||
|
||
cy.get('.usa-button').contains('Accept and start').click(); | ||
|
||
cy.url().should('match', /\/report_submission\/eligibility\/$/); | ||
|
||
testValidEligibility(); | ||
|
||
testValidAuditeeInfo(); | ||
|
||
testValidAccess(); | ||
|
||
// Report should not yet be in the dissemination table | ||
cy.url().then(url => { | ||
const reportId = url.split('/').pop(); | ||
testReportIdNotFound(reportId); | ||
}); | ||
|
||
testValidGeneralInfo(); | ||
|
||
cy.get(".usa-link").contains("Federal Awards").click(); | ||
testWorkbookFederalAwards(false); | ||
|
||
it('Additional EINs uploads successfully', () => { | ||
testFederalAwards(); | ||
cy.get(".usa-link").contains("Additional EINs").click(); | ||
testWorkbookAdditionalEINs(false); | ||
}); | ||
|
||
it('Displays message if file has already been uploaded', () => { | ||
testFileUploadMsg('Edit the Additional EINs'); | ||
}); | ||
|
||
}); | ||
}); |
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 |
---|---|---|
@@ -1,65 +1,22 @@ | ||
import 'cypress-file-upload'; | ||
import { testCrossValidation } from '../support/cross-validation.js'; | ||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
//import { testLogoutGov } from '../support/logout-gov.js'; | ||
import { testValidAccess } from '../support/check-access.js'; | ||
import { testValidEligibility } from '../support/check-eligibility.js'; | ||
import { testValidAuditeeInfo } from '../support/auditee-info.js'; | ||
import { testValidGeneralInfo } from '../support/general-info.js'; | ||
import { testReportIdFound, testReportIdNotFound } from '../support/dissemination-table.js'; | ||
import { testFederalAwards } from '../support/federal-awards.js'; | ||
import { testFileUploadMsg } from '../support/file-uploaded-msg.js'; | ||
|
||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
import { | ||
testWorkbookAdditionalUEIs, | ||
testWorkbookFederalAwards, | ||
testWorkbookAdditionalUEIs, | ||
} from '../support/workbook-uploads.js'; | ||
|
||
const LOGIN_TEST_EMAIL_AUDITEE = Cypress.env('LOGIN_TEST_EMAIL_AUDITEE'); | ||
const LOGIN_TEST_PASSWORD_AUDITEE = Cypress.env('LOGIN_TEST_PASSWORD_AUDITEE'); | ||
const LOGIN_TEST_OTP_SECRET_AUDITEE = Cypress.env('LOGIN_TEST_OTP_SECRET_AUDITEE'); | ||
|
||
describe('Additional UEIs page', () => { | ||
before(() => { | ||
cy.session('login-session', () => { | ||
cy.visit('/'); | ||
cy.login(); | ||
}); | ||
}); | ||
|
||
it('Additional UEIs uploads successfully', () => { | ||
cy.visit('/'); | ||
|
||
cy.url().should('include', '/'); | ||
testLoginGovLogin(); | ||
}); | ||
|
||
cy.get('label[for=check-start-new-submission]').click(); | ||
|
||
cy.get('.usa-button').contains('Accept and start').click(); | ||
|
||
cy.url().should('match', /\/report_submission\/eligibility\/$/); | ||
|
||
testValidEligibility(); | ||
|
||
testValidAuditeeInfo(); | ||
|
||
testValidAccess(); | ||
|
||
// Report should not yet be in the dissemination table | ||
cy.url().then(url => { | ||
const reportId = url.split('/').pop(); | ||
testReportIdNotFound(reportId); | ||
}); | ||
|
||
testValidGeneralInfo(); | ||
|
||
cy.get(".usa-link").contains("Federal Awards").click(); | ||
testWorkbookFederalAwards(false); | ||
|
||
it('Additional UEIs uploads successfully', () => { | ||
testFederalAwards(); | ||
cy.get(".usa-link").contains("Additional UEIs").click(); | ||
testWorkbookAdditionalUEIs(false); | ||
}); | ||
|
||
it('Displays message if file has already been uploaded', () => { | ||
testFileUploadMsg('Edit the Additional UEIs'); | ||
}); | ||
|
||
}); | ||
}); |
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 |
---|---|---|
@@ -1,65 +1,22 @@ | ||
import 'cypress-file-upload'; | ||
import { testCrossValidation } from '../support/cross-validation.js'; | ||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
//import { testLogoutGov } from '../support/logout-gov.js'; | ||
import { testValidAccess } from '../support/check-access.js'; | ||
import { testValidEligibility } from '../support/check-eligibility.js'; | ||
import { testValidAuditeeInfo } from '../support/auditee-info.js'; | ||
import { testValidGeneralInfo } from '../support/general-info.js'; | ||
import { testReportIdFound, testReportIdNotFound } from '../support/dissemination-table.js'; | ||
import { testFederalAwards } from '../support/federal-awards.js'; | ||
import { testFileUploadMsg } from '../support/file-uploaded-msg.js'; | ||
|
||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
import { | ||
testWorkbookFederalAwards, | ||
testWorkbookFindingsText, | ||
} from '../support/workbook-uploads.js'; | ||
|
||
const LOGIN_TEST_EMAIL_AUDITEE = Cypress.env('LOGIN_TEST_EMAIL_AUDITEE'); | ||
const LOGIN_TEST_PASSWORD_AUDITEE = Cypress.env('LOGIN_TEST_PASSWORD_AUDITEE'); | ||
const LOGIN_TEST_OTP_SECRET_AUDITEE = Cypress.env('LOGIN_TEST_OTP_SECRET_AUDITEE'); | ||
|
||
describe('Audit Findings Text page', () => { | ||
before(() => { | ||
cy.session('login-session', () => { | ||
cy.visit('/'); | ||
cy.login(); | ||
}); | ||
}); | ||
|
||
it('Audit Findings Text uploads successfully', () => { | ||
cy.visit('/'); | ||
|
||
cy.url().should('include', '/'); | ||
testLoginGovLogin(); | ||
}); | ||
|
||
cy.get('label[for=check-start-new-submission]').click(); | ||
|
||
cy.get('.usa-button').contains('Accept and start').click(); | ||
|
||
cy.url().should('match', /\/report_submission\/eligibility\/$/); | ||
|
||
testValidEligibility(); | ||
|
||
testValidAuditeeInfo(); | ||
|
||
testValidAccess(); | ||
|
||
// Report should not yet be in the dissemination table | ||
cy.url().then(url => { | ||
const reportId = url.split('/').pop(); | ||
testReportIdNotFound(reportId); | ||
}); | ||
|
||
testValidGeneralInfo(); | ||
|
||
cy.get(".usa-link").contains("Federal Awards").click(); | ||
testWorkbookFederalAwards(false); | ||
|
||
it('Audit Findings Text uploads successfully', () => { | ||
testFederalAwards(); | ||
cy.get(".usa-link").contains("Federal Awards Audit Findings Text").click(); | ||
testWorkbookFindingsText(false); | ||
}); | ||
|
||
it('Displays message if file has already been uploaded', () => { | ||
testFileUploadMsg('Edit the Federal Awards Audit Findings Text'); | ||
}); | ||
|
||
}); |
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 |
---|---|---|
@@ -1,69 +1,22 @@ | ||
import 'cypress-file-upload'; | ||
import { testCrossValidation } from '../support/cross-validation.js'; | ||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
//import { testLogoutGov } from '../support/logout-gov.js'; | ||
import { testValidAccess } from '../support/check-access.js'; | ||
import { testValidEligibility } from '../support/check-eligibility.js'; | ||
import { testValidAuditeeInfo } from '../support/auditee-info.js'; | ||
import { testValidGeneralInfo } from '../support/general-info.js'; | ||
import { testReportIdFound, testReportIdNotFound } from '../support/dissemination-table.js'; | ||
import { testFederalAwards } from '../support/federal-awards.js'; | ||
import { testFileUploadMsg } from '../support/file-uploaded-msg.js'; | ||
|
||
import { testLoginGovLogin } from '../support/login-gov.js'; | ||
import { | ||
testWorkbookFederalAwards, | ||
testWorkbookFindingsUniformGuidance, | ||
} from '../support/workbook-uploads.js'; | ||
|
||
const LOGIN_TEST_EMAIL_AUDITEE = Cypress.env('LOGIN_TEST_EMAIL_AUDITEE'); | ||
const LOGIN_TEST_PASSWORD_AUDITEE = Cypress.env('LOGIN_TEST_PASSWORD_AUDITEE'); | ||
const LOGIN_TEST_OTP_SECRET_AUDITEE = Cypress.env('LOGIN_TEST_OTP_SECRET_AUDITEE'); | ||
|
||
describe('Audit Findings page', () => { | ||
before(() => { | ||
cy.session('login-session', () => { | ||
cy.visit('/'); | ||
cy.login(); | ||
}); | ||
}); | ||
|
||
it('Audit Findings uploads successfully', () => { | ||
cy.visit('/'); | ||
|
||
cy.url().should('include', '/'); | ||
testLoginGovLogin(); | ||
}); | ||
|
||
cy.get('label[for=check-start-new-submission]').click(); | ||
|
||
cy.get('.usa-button').contains('Accept and start').click(); | ||
|
||
cy.url().should('match', /\/report_submission\/eligibility\/$/); | ||
|
||
testValidEligibility(); | ||
|
||
testValidAuditeeInfo(); | ||
|
||
testValidAccess(); | ||
|
||
// Report should not yet be in the dissemination table | ||
cy.url().then(url => { | ||
const reportId = url.split('/').pop(); | ||
testReportIdNotFound(reportId); | ||
}); | ||
|
||
testValidGeneralInfo(); | ||
|
||
cy.get('.usa-link').contains("Federal Awards").click(); | ||
testWorkbookFederalAwards(false); | ||
|
||
it('Audit Findings uploads successfully', () => { | ||
testFederalAwards(); | ||
cy.get(".usa-link").contains("Federal Awards Audit Findings").click(); | ||
testWorkbookFindingsUniformGuidance(false); | ||
|
||
}); | ||
|
||
it('Displays message if file has already been uploaded', () => { | ||
testFileUploadMsg('Edit the Federal Awards Audit Findings'); | ||
}); | ||
|
||
}); | ||
|
||
|
||
|
Oops, something went wrong.