Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Improve alias use in tests
Sebastian Martinez committed 2 years ago
commit ca9c4a68ac5ca4f9ba48544486e89dbfd1039c51
parent f8743dc67eccb191ac34f241bdff3160663babbc
1 file changed +34 -13
modified radicle-httpd/src/api/v1/projects.rs
@@ -2321,7 +2321,10 @@ mod routes {
                    {
                      "emoji": "🚀",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS,
+
                        }
                      ],
                    },
                  ],
@@ -2370,28 +2373,31 @@ mod routes {
              "id": ISSUE_DISCUSSION_ID,
              "author": {
                "id": CONTRIBUTOR_DID,
-
                "alias": "seed"
+
                "alias": CONTRIBUTOR_ALIAS,
              },
              "title": "Issue #1",
              "state": {
                "status": "open",
              },
              "assignees": [
-
                { "id": CONTRIBUTOR_DID, "alias": "seed" }
+
                {
+
                  "id": CONTRIBUTOR_DID,
+
                  "alias": CONTRIBUTOR_ALIAS,
+
                }
              ],
              "discussion": [
                {
                  "id": ISSUE_DISCUSSION_ID,
                  "author": {
                    "id": CONTRIBUTOR_DID,
-
                    "alias": "seed",
+
                    "alias": CONTRIBUTOR_ALIAS,
                  },
                  "body": "Change 'hello world' to 'hello everyone'",
                  "edits": [
                    {
                      "author": {
                        "id": CONTRIBUTOR_DID,
-
                        "alias": "seed",
+
                        "alias": CONTRIBUTOR_ALIAS,
                      },
                      "body": "Change 'hello world' to 'hello everyone'",
                      "timestamp": TIMESTAMP,
@@ -2777,7 +2783,10 @@ mod routes {
              "labels": [],
              "merges": [],
              "assignees": [
-
                { "id": CONTRIBUTOR_DID, "alias": "seed" }
+
                {
+
                  "id": CONTRIBUTOR_DID,
+
                  "alias": CONTRIBUTOR_ALIAS,
+
                }
              ],
              "revisions": [
                {
@@ -3193,7 +3202,10 @@ mod routes {
                    {
                      "emoji": "🙏",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS
+
                        }
                      ],
                    },
                    {
@@ -3211,7 +3223,10 @@ mod routes {
                      },
                      "emoji": "🚀",
                      "authors": [
-
                        { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" }
+
                        {
+
                          "id": CONTRIBUTOR_DID,
+
                          "alias": CONTRIBUTOR_ALIAS
+
                        }
                      ]
                    },
                  ],
@@ -3408,7 +3423,10 @@ mod routes {
                        {
                          "emoji": "🚀",
                          "authors": [
-
                            { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" }
+
                            {
+
                              "id": CONTRIBUTOR_DID,
+
                              "alias": CONTRIBUTOR_ALIAS
+
                            }
                          ],
                        },
                      ],
@@ -3618,14 +3636,14 @@ mod routes {
                        {
                          "id": "0dcfca53416761cf975cc4cd6d452790cee06b49",
                          "author": {
-
                            "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                            "id": CONTRIBUTOR_DID,
                            "alias": CONTRIBUTOR_ALIAS
                          },
                          "body": "EDIT: This is a comment on a review",
                          "edits": [
                            {
                              "author": {
-
                                "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                                "id": CONTRIBUTOR_DID,
                                "alias": CONTRIBUTOR_ALIAS
                              },
                              "body": "This is a comment on a review",
@@ -3639,7 +3657,7 @@ mod routes {
                            },
                            {
                              "author": {
-
                                "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8",
+
                                "id": CONTRIBUTOR_DID,
                                "alias": CONTRIBUTOR_ALIAS
                              },
                              "body": "EDIT: This is a comment on a review",
@@ -3662,7 +3680,10 @@ mod routes {
                            {
                              "emoji": "🚀",
                              "authors": [
-
                                { "id": "did:key:z6Mkk7oqY4pPxhMmGEotDYsFo97vhCj85BLY1H256HrJmjN8", "alias": "seed" }
+
                                {
+
                                  "id": CONTRIBUTOR_DID,
+
                                  "alias": CONTRIBUTOR_ALIAS
+
                                }
                              ],
                            },
                          ],