httpd: Improve alias use in tests

This commit is contained in:
Sebastian Martinez 2024-03-11 12:26:41 +01:00 committed by cloudhead
parent 088549a333
commit 955c942c18
No known key found for this signature in database
1 changed files with 34 additions and 13 deletions

View File

@ -2321,7 +2321,10 @@ mod routes {
{ {
"emoji": "🚀", "emoji": "🚀",
"authors": [ "authors": [
{ "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS,
}
], ],
}, },
], ],
@ -2370,28 +2373,31 @@ mod routes {
"id": ISSUE_DISCUSSION_ID, "id": ISSUE_DISCUSSION_ID,
"author": { "author": {
"id": CONTRIBUTOR_DID, "id": CONTRIBUTOR_DID,
"alias": "seed" "alias": CONTRIBUTOR_ALIAS,
}, },
"title": "Issue #1", "title": "Issue #1",
"state": { "state": {
"status": "open", "status": "open",
}, },
"assignees": [ "assignees": [
{ "id": CONTRIBUTOR_DID, "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS,
}
], ],
"discussion": [ "discussion": [
{ {
"id": ISSUE_DISCUSSION_ID, "id": ISSUE_DISCUSSION_ID,
"author": { "author": {
"id": CONTRIBUTOR_DID, "id": CONTRIBUTOR_DID,
"alias": "seed", "alias": CONTRIBUTOR_ALIAS,
}, },
"body": "Change 'hello world' to 'hello everyone'", "body": "Change 'hello world' to 'hello everyone'",
"edits": [ "edits": [
{ {
"author": { "author": {
"id": CONTRIBUTOR_DID, "id": CONTRIBUTOR_DID,
"alias": "seed", "alias": CONTRIBUTOR_ALIAS,
}, },
"body": "Change 'hello world' to 'hello everyone'", "body": "Change 'hello world' to 'hello everyone'",
"timestamp": TIMESTAMP, "timestamp": TIMESTAMP,
@ -2777,7 +2783,10 @@ mod routes {
"labels": [], "labels": [],
"merges": [], "merges": [],
"assignees": [ "assignees": [
{ "id": CONTRIBUTOR_DID, "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS,
}
], ],
"revisions": [ "revisions": [
{ {
@ -3193,7 +3202,10 @@ mod routes {
{ {
"emoji": "🙏", "emoji": "🙏",
"authors": [ "authors": [
{ "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS
}
], ],
}, },
{ {
@ -3211,7 +3223,10 @@ mod routes {
}, },
"emoji": "🚀", "emoji": "🚀",
"authors": [ "authors": [
{ "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS
}
] ]
}, },
], ],
@ -3408,7 +3423,10 @@ mod routes {
{ {
"emoji": "🚀", "emoji": "🚀",
"authors": [ "authors": [
{ "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS
}
], ],
}, },
], ],
@ -3618,14 +3636,14 @@ mod routes {
{ {
"id": "0dcfca53416761cf975cc4cd6d452790cee06b49", "id": "0dcfca53416761cf975cc4cd6d452790cee06b49",
"author": { "author": {
"id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS "alias": CONTRIBUTOR_ALIAS
}, },
"body": "EDIT: This is a comment on a review", "body": "EDIT: This is a comment on a review",
"edits": [ "edits": [
{ {
"author": { "author": {
"id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS "alias": CONTRIBUTOR_ALIAS
}, },
"body": "This is a comment on a review", "body": "This is a comment on a review",
@ -3639,7 +3657,7 @@ mod routes {
}, },
{ {
"author": { "author": {
"id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS "alias": CONTRIBUTOR_ALIAS
}, },
"body": "EDIT: This is a comment on a review", "body": "EDIT: This is a comment on a review",
@ -3662,7 +3680,10 @@ mod routes {
{ {
"emoji": "🚀", "emoji": "🚀",
"authors": [ "authors": [
{ "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" } {
"id": CONTRIBUTOR_DID,
"alias": CONTRIBUTOR_ALIAS
}
], ],
}, },
], ],