Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 6a9cd08

Browse files
committed
fix:did:sov_urls_changed_out_for_github_urls
Signed-off-by: PeterStrob <peter@indicio.tech>
1 parent 4bc557e commit 6a9cd08

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

acapy_plugin_toolbox/credential_definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
from .schemas import SchemaRecord
2525
from .util import admin_only, generate_model_schema
2626

27-
PROTOCOL = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1"
27+
PROTOCOL = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1"
2828

2929
SEND_CRED_DEF = "{}/send-credential-definition".format(PROTOCOL)
3030
CRED_DEF_ID = "{}/credential-definition-id".format(PROTOCOL)

acapy_plugin_toolbox/dids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from .util import generate_model_schema, admin_only
2323

24-
PROTOCOL = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-dids/0.1"
24+
PROTOCOL = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-dids/0.1"
2525

2626
GET_LIST_DIDS = "{}/get-list-dids".format(PROTOCOL)
2727
LIST_DIDS = "{}/list-dids".format(PROTOCOL)

acapy_plugin_toolbox/holder/v0_1/messages/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
class AdminHolderMessage(AgentMessage):
55
"""Admin Holder Protocol Message Base class."""
66

7-
protocol = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1"
7+
protocol = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1"

acapy_plugin_toolbox/issuer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
with_generic_init,
5757
)
5858

59-
PROTOCOL = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-issuer/0.1"
59+
PROTOCOL = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-issuer/0.1"
6060

6161
SEND_CREDENTIAL = "{}/send-credential".format(PROTOCOL)
6262
REQUEST_PRESENTATION = "{}/request-presentation".format(PROTOCOL)

acapy_plugin_toolbox/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from .util import generate_model_schema, admin_only
2323

24-
PROTOCOL = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1"
24+
PROTOCOL = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1"
2525

2626
SEND_SCHEMA = "{}/send-schema".format(PROTOCOL)
2727
SCHEMA_ID = "{}/schema-id".format(PROTOCOL)

acapy_plugin_toolbox/static_connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from .util import generate_model_schema, admin_only
3030

31-
PROTOCOL = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-static-connections/0.1"
31+
PROTOCOL = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-static-connections/0.1"
3232

3333
# Message Types
3434
CREATE_STATIC_CONNECTION = "{}/create-static-connection".format(PROTOCOL)

int/tests/test_credentialdefinitions.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ async def test_send_cred_def(connection, endorser_did, create_schema):
3030
schema = await create_schema(version="1.0")
3131
send_cred_def = await connection.send_and_await_reply_async(
3232
{
33-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
33+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
3434
"schema_id": schema.sent.schema_id,
3535
"~transport": {"return_route": "all"},
3636
},
3737
timeout=30,
3838
)
3939
assert (
4040
send_cred_def["@type"]
41-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-id"
41+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-id"
4242
)
4343

4444

@@ -48,22 +48,22 @@ async def test_cred_def_get(connection, endorser_did, create_schema):
4848
schema = await create_schema(version="1.1")
4949
send_cred_def = await connection.send_and_await_reply_async(
5050
{
51-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
51+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
5252
"schema_id": schema.sent.schema_id,
5353
"~transport": {"return_route": "all"},
5454
},
5555
timeout=30,
5656
)
5757
cred_def_get = await connection.send_and_await_reply_async(
5858
{
59-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-get",
59+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-get",
6060
"cred_def_id": send_cred_def["cred_def_id"],
6161
"~transport": {"return_route": "all"},
6262
}
6363
)
6464
assert (
6565
cred_def_get["@type"]
66-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition"
66+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition"
6767
)
6868
assert schema.sent.schema_id == cred_def_get["schema_id"]
6969
assert send_cred_def["cred_def_id"] == cred_def_get["cred_def_id"]
@@ -75,7 +75,7 @@ async def test_cred_def_get_list(connection, endorser_did, create_schema):
7575
schema1_2 = await create_schema(version="1.2")
7676
send_schema1_2 = await connection.send_and_await_reply_async(
7777
{
78-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
78+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
7979
"schema_id": schema1_2.sent.schema_id,
8080
"~transport": {"return_route": "all"},
8181
},
@@ -84,21 +84,21 @@ async def test_cred_def_get_list(connection, endorser_did, create_schema):
8484
schema1_3 = await create_schema(version="1.3")
8585
send_schema1_3 = await connection.send_and_await_reply_async(
8686
{
87-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
87+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
8888
"schema_id": schema1_3.sent.schema_id,
8989
"~transport": {"return_route": "all"},
9090
},
9191
timeout=30,
9292
)
9393
cred_def_get_list = await connection.send_and_await_reply_async(
9494
{
95-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-get-list",
95+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-get-list",
9696
"~transport": {"return_route": "all"},
9797
}
9898
)
9999
assert (
100100
cred_def_get_list["@type"]
101-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-list"
101+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-list"
102102
)
103103
assert send_schema1_2["cred_def_id"] in [
104104
result["cred_def_id"] for result in cred_def_get_list["results"]

int/tests/test_holder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ async def test_holder_credential_exchange(
115115
timeout=60,
116116
)
117117
credential_offer_received = await wait_for_message(
118-
msg_type="did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-offer-received"
118+
msg_type="https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-offer-received"
119119
)
120120
issue_result = cast(V10CredentialExchange(auto_issue="true"), issue_result)
121121
credential_offer_accept = await connection.send_and_await_reply_async(
122122
{
123-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-offer-accept",
123+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-offer-accept",
124124
"credential_exchange_id": credential_offer_received[
125125
"credential_exchange_id"
126126
],
127127
}
128128
)
129129
assert (
130130
credential_offer_accept["@type"]
131-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-request-sent"
131+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-request-sent"
132132
)
133133
credential_received = await wait_for_message(
134-
msg_type="did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-received"
134+
msg_type="https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-received"
135135
)
136136
records = await asyncio.wait_for(
137137
get_issue_credential_records.asyncio(client=backchannel), timeout=20
@@ -153,11 +153,11 @@ async def test_credentials_get_list(
153153
):
154154
credentials_get_list = await connection.send_and_await_reply_async(
155155
{
156-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credentials-get-list"
156+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credentials-get-list"
157157
}
158158
)
159159
assert (
160160
credentials_get_list["@type"]
161-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credentials-list"
161+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credentials-list"
162162
)
163163
# TODO create fixture for credential issuance to retrieve credentials from get-list protocol

int/tests/test_schemas.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async def test_send_schema(connection, endorser_did):
99
"""Send a schema and verify message type"""
1010
schema = await connection.send_and_await_reply_async(
1111
{
12-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
12+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
1313
"schema_name": "Test Schema",
1414
"schema_version": "1.0",
1515
"attributes": ["attr_1_0", "attr_1_1", "attr_1_2"],
@@ -18,7 +18,7 @@ async def test_send_schema(connection, endorser_did):
1818
)
1919
assert (
2020
schema["@type"]
21-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-id"
21+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-id"
2222
)
2323

2424

@@ -27,7 +27,7 @@ async def test_schema_get(connection, endorser_did):
2727
"""Retrieve a pre-existing schema"""
2828
schema = await connection.send_and_await_reply_async(
2929
{
30-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
30+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
3131
"schema_name": "Test Schema",
3232
"schema_version": "2.0",
3333
"attributes": ["attr_2_0", "attr_2_1", "attr_2_2"],
@@ -37,15 +37,15 @@ async def test_schema_get(connection, endorser_did):
3737
)
3838
schema_get = await connection.send_and_await_reply_async(
3939
{
40-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-get",
40+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-get",
4141
"schema_id": schema["schema_id"],
4242
"@id": schema["@id"],
4343
"~transport": {"return_route": "all"},
4444
}
4545
)
4646
assert (
4747
schema_get["@type"]
48-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema"
48+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema"
4949
)
5050
assert schema["schema_id"] == schema_get["schema_id"]
5151
assert schema["@id"] == schema_get["~thread"]["thid"]
@@ -57,7 +57,7 @@ async def test_schema_get_list(connection, endorser_did):
5757
"""Retrieve the list of schemas"""
5858
schema = await connection.send_and_await_reply_async(
5959
{
60-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
60+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
6161
"schema_name": "Test Schema",
6262
"schema_version": "3.0",
6363
"attributes": ["attr_3_0", "attr_3_1", "attr_3_2"],
@@ -67,14 +67,14 @@ async def test_schema_get_list(connection, endorser_did):
6767
)
6868
schema_get_list = await connection.send_and_await_reply_async(
6969
{
70-
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-get-list",
70+
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-get-list",
7171
"@id": schema["@id"],
7272
"~transport": {"return_route": "all"},
7373
}
7474
)
7575
assert (
7676
schema_get_list["@type"]
77-
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-list"
77+
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-list"
7878
)
7979
assert schema["@id"] == schema_get_list["~thread"]["thid"]
8080
assert schema["schema_id"] in [

0 commit comments

Comments
 (0)