-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support Junit4 run, add missing files, change new tests from Junit4 t…
…o Junit5
- Loading branch information
Showing
8 changed files
with
201 additions
and
15 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
2 changes: 1 addition & 1 deletion
2
src/test/java/com/uid2/shared/secure/gcpoidc/OidcPayloadValidationTest.java
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
4 changes: 2 additions & 2 deletions
4
src/test/java/com/uid2/shared/secure/gcpoidc/PolicyValidatorTest.java
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
60 changes: 60 additions & 0 deletions
60
src/test/resources/com.uid2.shared/test/secure/gcpoidc/jwt_payload_full.json
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,60 @@ | ||
{ | ||
"aud": "https://sts.googleapis.com", | ||
"exp": 1688132564, | ||
"iat": 1688128964, | ||
"iss": "https://confidentialcomputing.googleapis.com", | ||
"nbf": 1688128964, | ||
"sub": "https://www.googleapis.com/compute/v1/projects/someone-secundus-bank/zones/us-west1-b/instances/secundus-initial-vm", | ||
"secboot": true, | ||
"oemid": 11129, | ||
"hwmodel": "GCP_AMD_SEV", | ||
"swname": "CONFIDENTIAL_SPACE", | ||
"swversion": [ | ||
"230600" | ||
], | ||
"dbgstat": "disabled-since-boot", | ||
"submods": { | ||
"confidential_space": { | ||
"support_attributes": [ | ||
"LATEST", | ||
"STABLE", | ||
"USABLE" | ||
] | ||
}, | ||
"container": { | ||
"image_reference": "us-docker.pkg.dev/someone-primus-bank/primus-workloads/initial-workload-container:latest", | ||
"image_digest": "sha256:fedbd6eaf93394d5eb98d7e52d4cce17e0ea23f7fac1a6bd68e097ca85a4fffb", | ||
"restart_policy": "Never", | ||
"image_id": "sha256:5be33a19451733a45ea1bdb340fcb858a0fc733e91ca0a0d99638652f6dcabd0", | ||
"env_override": { | ||
"env1": "value1", | ||
"env2": "value2" | ||
}, | ||
"cmd_override": [ | ||
"count-location", | ||
"Seattle", | ||
"gs://yishi-secundus-bank-results-storage/seattle-result" | ||
], | ||
"env": { | ||
"HOSTNAME": "secundus-initial-vm", | ||
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
}, | ||
"args": [ | ||
"/test/initial_workload", | ||
"count-location", | ||
"Seattle", | ||
"gs://someone-secundus-bank-results-storage/seattle-result" | ||
] | ||
}, | ||
"gce": { | ||
"zone": "us-west1-b", | ||
"project_id": "someone-secundus-bank", | ||
"project_number": "600005144714", | ||
"instance_name": "secundus-initial-vm", | ||
"instance_id": "5180554646064952245" | ||
} | ||
}, | ||
"google_service_accounts": [ | ||
"run-confidential-vm@someone-secundus-bank.iam.gserviceaccount.com" | ||
] | ||
} |
49 changes: 49 additions & 0 deletions
49
src/test/resources/com.uid2.shared/test/secure/gcpoidc/jwt_payload_null.json
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,49 @@ | ||
{ | ||
"aud": "https://sts.googleapis.com", | ||
"exp": 1688132564, | ||
"iat": 1688128964, | ||
"iss": "https://confidentialcomputing.googleapis.com", | ||
"nbf": 1688128964, | ||
"sub": "https://www.googleapis.com/compute/v1/projects/someone-secundus-bank/zones/us-west1-b/instances/secundus-initial-vm", | ||
"secboot": true, | ||
"oemid": 11129, | ||
"hwmodel": "GCP_AMD_SEV", | ||
"swname": "CONFIDENTIAL_SPACE", | ||
"swversion": [ | ||
"230600" | ||
], | ||
"dbgstat": "disabled-since-boot", | ||
"submods": { | ||
"confidential_space": { | ||
"support_attributes": null | ||
}, | ||
"container": { | ||
"image_reference": "us-docker.pkg.dev/someone-primus-bank/primus-workloads/initial-workload-container:latest", | ||
"image_digest": "sha256:fedbd6eaf93394d5eb98d7e52d4cce17e0ea23f7fac1a6bd68e097ca85a4fffb", | ||
"restart_policy": "Never", | ||
"image_id": "sha256:5be33a19451733a45ea1bdb340fcb858a0fc733e91ca0a0d99638652f6dcabd0", | ||
"env_override": null, | ||
"cmd_override": null, | ||
"env": { | ||
"HOSTNAME": "secundus-initial-vm", | ||
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
}, | ||
"args": [ | ||
"/test/initial_workload", | ||
"count-location", | ||
"Seattle", | ||
"gs://someone-secundus-bank-results-storage/seattle-result" | ||
] | ||
}, | ||
"gce": { | ||
"zone": "us-west1-b", | ||
"project_id": "someone-secundus-bank", | ||
"project_number": "600005144714", | ||
"instance_name": "secundus-initial-vm", | ||
"instance_id": "5180554646064952245" | ||
} | ||
}, | ||
"google_service_accounts": [ | ||
"run-confidential-vm@someone-secundus-bank.iam.gserviceaccount.com" | ||
] | ||
} |
57 changes: 57 additions & 0 deletions
57
src/test/resources/com.uid2.shared/test/secure/gcpoidc/jwt_payload_policy_valid.json
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,57 @@ | ||
{ | ||
"aud": "https://sts.googleapis.com", | ||
"exp": 1688132564, | ||
"iat": 1688128964, | ||
"iss": "https://confidentialcomputing.googleapis.com", | ||
"nbf": 1688128964, | ||
"sub": "https://www.googleapis.com/compute/v1/projects/someone-secundus-bank/zones/us-west1-b/instances/secundus-initial-vm", | ||
"secboot": true, | ||
"oemid": 11129, | ||
"hwmodel": "GCP_AMD_SEV", | ||
"swname": "CONFIDENTIAL_SPACE", | ||
"swversion": [ | ||
"230600" | ||
], | ||
"dbgstat": "disabled-since-boot", | ||
"submods": { | ||
"confidential_space": { | ||
"support_attributes": [ | ||
"LATEST", | ||
"STABLE", | ||
"USABLE" | ||
] | ||
}, | ||
"container": { | ||
"image_reference": "us-docker.pkg.dev/someone-primus-bank/primus-workloads/initial-workload-container:latest", | ||
"image_digest": "sha256:fedbd6eaf93394d5eb98d7e52d4cce17e0ea23f7fac1a6bd68e097ca85a4fffb", | ||
"restart_policy": "Never", | ||
"image_id": "sha256:5be33a19451733a45ea1bdb340fcb858a0fc733e91ca0a0d99638652f6dcabd0", | ||
"env_override": { | ||
"DEPLOYMENT_ENVIRONMENT": "prod", | ||
"IDENTITY_SCOPE": "uid2", | ||
"API_TOKEN": "dummy" | ||
}, | ||
"cmd_override": null, | ||
"env": { | ||
"HOSTNAME": "secundus-initial-vm", | ||
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
}, | ||
"args": [ | ||
"/test/initial_workload", | ||
"count-location", | ||
"Seattle", | ||
"gs://someone-secundus-bank-results-storage/seattle-result" | ||
] | ||
}, | ||
"gce": { | ||
"zone": "us-west1-b", | ||
"project_id": "someone-secundus-bank", | ||
"project_number": "600005144714", | ||
"instance_name": "secundus-initial-vm", | ||
"instance_id": "5180554646064952245" | ||
} | ||
}, | ||
"google_service_accounts": [ | ||
"run-confidential-vm@someone-secundus-bank.iam.gserviceaccount.com" | ||
] | ||
} |