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

NRPT-610 Add ENV BC Parks role #808

Merged
merged 2 commits into from
Mar 19, 2021
Merged

NRPT-610 Add ENV BC Parks role #808

merged 2 commits into from
Mar 19, 2021

Conversation

BcGovNeal
Copy link
Contributor

https://bcmines.atlassian.net/browse/NRPT-610

Create admin:env-bcparks record:

POST http://localhost:3000/api/record
{
    "orders": [
        {
            "recordName": "ENV-BCPARKS Role Test",
            "recordSubtype": "None",
            "issuingAgency": "BC Parks",
            "author": "BC Government",
            "issuedTo": {
                "type": "Individual",
                "companyName": null,
                "firstName": "Test",
                "middleName": "Middle",
                "lastName": "Name",
                "fullName": null,
                "dateOfBirth": null
            },
            "OrderNRCED": {
                "summary": "NRCED Summary",
                "addRole": "public"
            },
            "OrderLNG": {
                "description": "LNG Summary",
                "addRole": "public"
            }
        }
    ]
}

Verify success and record read/write issuedTo read/write have admin:env-bcparks role

Create a document in the record:

POST http://localhost:3000/api/record/{record_id}/document
form-data
fileName: test-file-name.pdf
upfile: browse to your file

Verify success document record has admin:env-bcparks role

To verify redaction, you can create a record in NRPTI from another user role and set the individual age to under 19. Then do a search using:

GET http://localhost:3000/api/search?dataset=Order,Inspection,Certificate,Permit,SelfReport,Agreement,RestorativeJustice,Ticket,AdministrativePenalty,AdministrativeSanction,Warning,ConstructionPlan,ManagementPlan,CourtConviction,AnnualReport,CertificateAmendment,Correspondence,DamSafetyInspection,Report&pageNum=0&pageSize=25&sortBy=-dateAdded&fields=

@sonarcloud
Copy link

sonarcloud bot commented Mar 18, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@BcGovNeal BcGovNeal merged commit b6508ad into bcgov:master Mar 19, 2021
@BcGovNeal BcGovNeal deleted the NRPT-610 branch May 5, 2021 20:51
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.

4 participants