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

Update tests so IdP imports work #463

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 34 additions & 69 deletions test/e2e/__snapshots__/config-import.e2e.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ exports[`frodo config import "frodo config import --default -CAD test/e2e/export
✔ Resolved all dependencies.
Errors occurred during full config import
Error importing config entities
Error updating config entity bravoOrgPrivileges
Error updating config entity endpoint/Test
HTTP client error
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: Access denied
Error updating config entity endpoint/Test
Status: 401
Reason: Unauthorized
Message: Access Denied
Error updating config entity endpoint/testEndpoint2
HTTP client error
Code: ERR_BAD_REQUEST
Status: 401
Expand Down Expand Up @@ -45,10 +45,8 @@ Errors occurred during full config import
Message: This operation is not available in PingOne Advanced Identity Cloud.
Error updating script
HTTP client error
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: This operation is not available in PingOne Advanced Identity Cloud.
Code: ERR_BAD_RESPONSE
Status: 502
Error importing services
Error putting realm full service configs
Error putting realm full service config email
Expand All @@ -70,6 +68,15 @@ Errors occurred during full config import
Status: 403
Reason: Forbidden
Message: This operation is not available in PingOne Advanced Identity Cloud.
Error importing services
Error putting realm full service configs
Error putting realm full service config TNTPPingOneService
Error putting descendent 'JC' of service 'TNTPPingOneService'
HTTP client error
Code: ERR_BAD_REQUEST
Status: 400
Reason: Bad Request
Message: Invalid config: Unable to add subConfig PingOneService
"
`;

Expand All @@ -89,13 +96,13 @@ exports[`frodo config import "frodo config import -AD test/e2e/exports/all-separ
✔ Resolved all dependencies.
Errors occurred during full config import
Error importing config entities
Error updating config entity bravoOrgPrivileges
Error updating config entity endpoint/Test
HTTP client error
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: Access denied
Error updating config entity endpoint/Test
Status: 401
Reason: Unauthorized
Message: Access Denied
Error updating config entity endpoint/testEndpoint2
HTTP client error
Code: ERR_BAD_REQUEST
Status: 401
Expand All @@ -120,12 +127,6 @@ exports[`frodo config import "frodo config import -AD test/e2e/exports/all-separ
✔ Resolved all dependencies.
Errors occurred during full config import
Error importing config entities
Error updating config entity bravoOrgPrivileges
HTTP client error
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: Access denied
Error updating config entity endpoint/Test
HTTP client error
Code: ERR_BAD_REQUEST
Expand Down Expand Up @@ -159,22 +160,6 @@ Errors occurred during full config import
Status: 404
Reason: Not Found
Message: Resource '' not found
Error importing providers
Error updating provider Google Test
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 500
Reason: Internal Server Error
Message: Unable to update SMS config: Data validation failed for the attribute, Redirect after form post URL
Error importing services
Error putting realm full service configs
Error putting realm full service config SocialIdentityProviders
Error putting descendent 'Google Test' of service 'SocialIdentityProviders'
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 500
Reason: Internal Server Error
Message: Unable to update SMS config: Data validation failed for the attribute, Redirect after form post URL
"
`;

Expand All @@ -186,12 +171,6 @@ exports[`frodo config import "frodo config import -CAD test/e2e/exports/all-sepa
✔ Resolved all dependencies.
Errors occurred during full config import
Error importing config entities
Error updating config entity bravoOrgPrivileges
HTTP client error
Code: ERR_BAD_REQUEST
Status: 401
Reason: Unauthorized
Message: Access Denied
Error updating config entity endpoint/Test
HTTP client error
Code: ERR_BAD_REQUEST
Expand Down Expand Up @@ -233,13 +212,13 @@ exports[`frodo config import "frodo config import -aCf test/e2e/exports/all/all.
✔ Resolved all dependencies.
Errors occurred during full config import
Error importing config entities
Error updating config entity bravoOrgPrivileges
Error updating config entity endpoint/Test
HTTP client error
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: Access denied
Error updating config entity endpoint/Test
Status: 401
Reason: Unauthorized
Message: Access Denied
Error updating config entity endpoint/testEndpoint2
HTTP client error
Code: ERR_BAD_REQUEST
Status: 401
Expand Down Expand Up @@ -288,22 +267,6 @@ Errors occurred during full config import
Status: 404
Reason: Not Found
Message: Resource '' not found
Error importing providers
Error updating provider Google Test
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 500
Reason: Internal Server Error
Message: Unable to update SMS config: Data validation failed for the attribute, Redirect after form post URL
Error importing services
Error putting realm full service configs
Error putting realm full service config SocialIdentityProviders
Error putting descendent 'Google Test' of service 'SocialIdentityProviders'
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 500
Reason: Internal Server Error
Message: Unable to update SMS config: Data validation failed for the attribute, Redirect after form post URL
"
`;

Expand Down Expand Up @@ -336,16 +299,18 @@ Errors occurred during full config import
Message: This operation is not available in PingOne Advanced Identity Cloud.
Error updating script
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 502
Code: ERR_BAD_REQUEST
Status: 403
Reason: Forbidden
Message: This operation is not available in PingOne Advanced Identity Cloud.
Error importing services
Error putting realm full service configs
Error putting realm full service config email
HTTP client error
Code: ERR_BAD_RESPONSE
Status: 500
Reason: Internal Server Error
Message: Unable to update SMS config: Data validation failed for the attribute, Transport Type
Code: ERR_BAD_REQUEST
Status: 400
Reason: Bad Request
Message: Data validation failed for the attribute, Transport Type
Error importing scripts
Error updating script
HTTP client error
Expand Down
17 changes: 2 additions & 15 deletions test/e2e/__snapshots__/service-import.e2e.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,12 @@ exports[`frodo service import "frodo service import -ACrD test/e2e/exports/all-s

exports[`frodo service import "frodo service import -AD test/e2e/exports/all-separate/cloud/realm/root-alpha/service": should import all services from the directory "test/e2e/exports/all-separate/cloud/realm/root-alpha/service" 1`] = `""`;

exports[`frodo service import "frodo service import -Crf test/e2e/exports/all/allAlphaServices.service.json": should import the first service from the file "test/e2e/exports/all/allAlphaServices.service.json", and clean the old one 1`] = `
"Connected to https://openam-frodo-dev.forgeblocks.com/am [alpha] as service account Frodo-SA-1720799681233 [b672336b-41ef-428d-ae4a-e0c082875377]
- Importing test/e2e/exports/all/allAlphaServices.service.json...
✖ Error importing first service
Error importing service SocialIdentityProviders
Error putting realm full service config SocialIdentityProviders
Error putting descendent 'apple-stoyan' of service 'SocialIdentityProviders'
HTTP client error
Code: ERR_BAD_REQUEST
Status: 400
Reason: Bad Request
Message: Invalid config: Unable to add subConfig appleConfig
"
`;
exports[`frodo service import "frodo service import -Crf test/e2e/exports/all/allAlphaServices.service.json": should import the first service from the file "test/e2e/exports/all/allAlphaServices.service.json", and clean the old one 1`] = `""`;

exports[`frodo service import "frodo service import -Cri baseurl -f test/e2e/exports/all/allAlphaServices.service.json": should import the service with the id "baseurl" from the file "test/e2e/exports/all/allAlphaServices.service.json", and clean the old one 1`] = `""`;

exports[`frodo service import "frodo service import -af test/e2e/exports/all/allAlphaServices.service.json": should import all services from the file "test/e2e/exports/all/allAlphaServices.service.json" 1`] = `""`;

exports[`frodo service import "frodo service import -f test/e2e/exports/all/allAlphaServices.service.json": should import the first service from the file "test/e2e/exports/all/allAlphaServices.service.json" 1`] = `""`;

exports[`frodo service import "frodo service import -i baseurl -f test/e2e/exports/all/allAlphaServices.service.json": should import the service with the id "baseurl" from the file "test/e2e/exports/all/allAlphaServices.service.json" 1`] = `""`;
exports[`frodo service import "frodo service import -i SocialIdentityProviders -f test/e2e/exports/all/allAlphaServices.service.json": should import the service with the id "SocialIdentityProviders" from the file "test/e2e/exports/all/allAlphaServices.service.json" 1`] = `""`;
Loading
Loading