mirror of
https://github.com/XRPLF/clio.git
synced 2026-08-27 23:50:55 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58d8f12ba3 | ||
|
|
bab8789bbb |
@@ -53,7 +53,7 @@ jobs:
|
||||
CHANNEL: ${{ inputs.channel }}
|
||||
NEXUS_USERNAME: ${{ secrets.nexus_username }}
|
||||
NEXUS_PASSWORD: ${{ secrets.nexus_password }}
|
||||
DRY_RUN_OPTION: ${{ (github.repository == 'XRPLF/clio' && github.event_name != 'pull_request') && '' || '--dry-run' }}
|
||||
DRY_RUN_OPTION: ${{ (github.event_name == 'pull_request' || github.repository != 'XRPLF/clio') && '--dry-run' || '' }}
|
||||
run: |
|
||||
publish_pkg.py \
|
||||
--channel "${CHANNEL}" \
|
||||
|
||||
@@ -2025,6 +2025,38 @@ generateTestValuesForParametersTest()
|
||||
.expectedError = "malformedRequest",
|
||||
.expectedErrorMessage = "Malformed request."
|
||||
},
|
||||
ParamTestCaseBundle{
|
||||
.testName = "CredentialCredentialTypeNotHex",
|
||||
.testJson = fmt::format(
|
||||
R"JSON({{
|
||||
"credential": {{
|
||||
"subject": "{}",
|
||||
"issuer": "{}",
|
||||
"credential_type": "hello world"
|
||||
}}
|
||||
}})JSON",
|
||||
kAccount,
|
||||
kAccount2
|
||||
),
|
||||
.expectedError = "malformedAuthorizedCredentials",
|
||||
.expectedErrorMessage = "credential_type NotHexString"
|
||||
},
|
||||
ParamTestCaseBundle{
|
||||
.testName = "CredentialCredentialTypeEmpty",
|
||||
.testJson = fmt::format(
|
||||
R"JSON({{
|
||||
"credential": {{
|
||||
"subject": "{}",
|
||||
"issuer": "{}",
|
||||
"credential_type": ""
|
||||
}}
|
||||
}})JSON",
|
||||
kAccount,
|
||||
kAccount2
|
||||
),
|
||||
.expectedError = "malformedAuthorizedCredentials",
|
||||
.expectedErrorMessage = "credential_type is empty"
|
||||
},
|
||||
ParamTestCaseBundle{
|
||||
.testName = "InvalidMPTokenAccount",
|
||||
.testJson = fmt::format(
|
||||
|
||||
Reference in New Issue
Block a user