Run smoke flows through EDUT ID alias endpoints
Some checks are pending
check / contracts (push) Waiting to run
Some checks are pending
check / contracts (push) Waiting to run
This commit is contained in:
parent
b918bad769
commit
3c7e10b3d5
@ -104,7 +104,7 @@ export $(grep -v '^#' .env | xargs)
|
|||||||
npm run deploy:sepolia
|
npm run deploy:sepolia
|
||||||
```
|
```
|
||||||
|
|
||||||
Full control-plane smoke (membership + marketplace + governance install/status):
|
Full control-plane smoke (EDUT ID + marketplace + governance install/status):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /Users/vsg/Documents/VSG\ Codex/contracts
|
cd /Users/vsg/Documents/VSG\ Codex/contracts
|
||||||
|
|||||||
@ -132,7 +132,7 @@ async function main() {
|
|||||||
|
|
||||||
const statusBefore = await expectOK(
|
const statusBefore = await expectOK(
|
||||||
"GET",
|
"GET",
|
||||||
`/secret/membership/status?wallet=${encodeURIComponent(wallet)}`,
|
`/secret/id/status?wallet=${encodeURIComponent(wallet)}`,
|
||||||
undefined,
|
undefined,
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
@ -182,7 +182,7 @@ async function main() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if ((statusBefore.status || "").toLowerCase() !== "active") {
|
if ((statusBefore.status || "").toLowerCase() !== "active") {
|
||||||
const quote = await expectOK("POST", "/secret/membership/quote", {
|
const quote = await expectOK("POST", "/secret/id/quote", {
|
||||||
designation_code: intent.designation_code,
|
designation_code: intent.designation_code,
|
||||||
address: wallet,
|
address: wallet,
|
||||||
chain_id: CHAIN_ID,
|
chain_id: CHAIN_ID,
|
||||||
@ -230,7 +230,7 @@ async function main() {
|
|||||||
confirmPayload.identity_attestation_id = IDENTITY_ATTESTATION_ID;
|
confirmPayload.identity_attestation_id = IDENTITY_ATTESTATION_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirmRes = await requestJSON("POST", "/secret/membership/confirm", confirmPayload);
|
const confirmRes = await requestJSON("POST", "/secret/id/confirm", confirmPayload);
|
||||||
if (!confirmRes.ok) {
|
if (!confirmRes.ok) {
|
||||||
if (isTxPendingResponse(confirmRes)) {
|
if (isTxPendingResponse(confirmRes)) {
|
||||||
result.stages.membership_activation = summarizeSkip(
|
result.stages.membership_activation = summarizeSkip(
|
||||||
@ -240,7 +240,7 @@ async function main() {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`POST /secret/membership/confirm failed (${confirmRes.status}): ${JSON.stringify(confirmRes.data)}`
|
`POST /secret/id/confirm failed (${confirmRes.status}): ${JSON.stringify(confirmRes.data)}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -258,7 +258,7 @@ async function main() {
|
|||||||
|
|
||||||
const statusAfter = await expectOK(
|
const statusAfter = await expectOK(
|
||||||
"GET",
|
"GET",
|
||||||
`/secret/membership/status?wallet=${encodeURIComponent(wallet)}`,
|
`/secret/id/status?wallet=${encodeURIComponent(wallet)}`,
|
||||||
undefined,
|
undefined,
|
||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|||||||
@ -105,7 +105,7 @@ async function main() {
|
|||||||
});
|
});
|
||||||
console.log("verify_status:", verify.status);
|
console.log("verify_status:", verify.status);
|
||||||
|
|
||||||
const quote = await postJSON("/secret/membership/quote", {
|
const quote = await postJSON("/secret/id/quote", {
|
||||||
designation_code: intent.designation_code,
|
designation_code: intent.designation_code,
|
||||||
address,
|
address,
|
||||||
chain_id: CHAIN_ID,
|
chain_id: CHAIN_ID,
|
||||||
@ -173,14 +173,14 @@ async function main() {
|
|||||||
confirmPayload.identity_attestation_id = IDENTITY_ATTESTATION_ID;
|
confirmPayload.identity_attestation_id = IDENTITY_ATTESTATION_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
const confirm = await postJSON("/secret/membership/confirm", confirmPayload);
|
const confirm = await postJSON("/secret/id/confirm", confirmPayload);
|
||||||
console.log("confirm_status:", confirm.status);
|
console.log("confirm_status:", confirm.status);
|
||||||
if (confirm.identity_assurance_level) {
|
if (confirm.identity_assurance_level) {
|
||||||
console.log("identity_assurance:", confirm.identity_assurance_level);
|
console.log("identity_assurance:", confirm.identity_assurance_level);
|
||||||
}
|
}
|
||||||
|
|
||||||
const status = await getJSON(
|
const status = await getJSON(
|
||||||
`/secret/membership/status?wallet=${encodeURIComponent(address)}`
|
`/secret/id/status?wallet=${encodeURIComponent(address)}`
|
||||||
);
|
);
|
||||||
console.log("membership_status:", status.status);
|
console.log("membership_status:", status.status);
|
||||||
if (status.identity_assurance_level) {
|
if (status.identity_assurance_level) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user