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

Commit

Permalink
fix:did:sov_urls_changed_out_for_github_urls
Browse files Browse the repository at this point in the history
Signed-off-by: PeterStrob <peter@indicio.tech>
  • Loading branch information
PeterStrob committed Sep 28, 2021
1 parent 4bc557e commit d813247
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/credential_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from .schemas import SchemaRecord
from .util import admin_only, generate_model_schema

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

SEND_CRED_DEF = "{}/send-credential-definition".format(PROTOCOL)
CRED_DEF_ID = "{}/credential-definition-id".format(PROTOCOL)
Expand Down
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/dids.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from .util import generate_model_schema, admin_only

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

GET_LIST_DIDS = "{}/get-list-dids".format(PROTOCOL)
LIST_DIDS = "{}/list-dids".format(PROTOCOL)
Expand Down
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/holder/v0_1/messages/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
class AdminHolderMessage(AgentMessage):
"""Admin Holder Protocol Message Base class."""

protocol = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1"
protocol = "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1"
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/issuer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
with_generic_init,
)

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

SEND_CREDENTIAL = "{}/send-credential".format(PROTOCOL)
REQUEST_PRESENTATION = "{}/request-presentation".format(PROTOCOL)
Expand Down
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

from .util import generate_model_schema, admin_only

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

SEND_SCHEMA = "{}/send-schema".format(PROTOCOL)
SCHEMA_ID = "{}/schema-id".format(PROTOCOL)
Expand Down
2 changes: 1 addition & 1 deletion acapy_plugin_toolbox/static_connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

from .util import generate_model_schema, admin_only

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

# Message Types
CREATE_STATIC_CONNECTION = "{}/create-static-connection".format(PROTOCOL)
Expand Down
18 changes: 9 additions & 9 deletions int/tests/test_credentialdefinitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ async def test_send_cred_def(connection, endorser_did, create_schema):
schema = await create_schema(version="1.0")
send_cred_def = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
"schema_id": schema.sent.schema_id,
"~transport": {"return_route": "all"},
},
timeout=30,
)
assert (
send_cred_def["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-id"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-id"
)


Expand All @@ -48,22 +48,22 @@ async def test_cred_def_get(connection, endorser_did, create_schema):
schema = await create_schema(version="1.1")
send_cred_def = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
"schema_id": schema.sent.schema_id,
"~transport": {"return_route": "all"},
},
timeout=30,
)
cred_def_get = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-get",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-get",
"cred_def_id": send_cred_def["cred_def_id"],
"~transport": {"return_route": "all"},
}
)
assert (
cred_def_get["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition"
)
assert schema.sent.schema_id == cred_def_get["schema_id"]
assert send_cred_def["cred_def_id"] == cred_def_get["cred_def_id"]
Expand All @@ -75,7 +75,7 @@ async def test_cred_def_get_list(connection, endorser_did, create_schema):
schema1_2 = await create_schema(version="1.2")
send_schema1_2 = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
"schema_id": schema1_2.sent.schema_id,
"~transport": {"return_route": "all"},
},
Expand All @@ -84,21 +84,21 @@ async def test_cred_def_get_list(connection, endorser_did, create_schema):
schema1_3 = await create_schema(version="1.3")
send_schema1_3 = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/send-credential-definition",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/send-credential-definition",
"schema_id": schema1_3.sent.schema_id,
"~transport": {"return_route": "all"},
},
timeout=30,
)
cred_def_get_list = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-get-list",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-get-list",
"~transport": {"return_route": "all"},
}
)
assert (
cred_def_get_list["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-credential-definitions/0.1/credential-definition-list"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-credential-definitions/0.1/credential-definition-list"
)
assert send_schema1_2["cred_def_id"] in [
result["cred_def_id"] for result in cred_def_get_list["results"]
Expand Down
12 changes: 6 additions & 6 deletions int/tests/test_holder.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,23 +115,23 @@ async def test_holder_credential_exchange(
timeout=60,
)
credential_offer_received = await wait_for_message(
msg_type="did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-offer-received"
msg_type="https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-offer-received"
)
issue_result = cast(V10CredentialExchange(auto_issue="true"), issue_result)
credential_offer_accept = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-offer-accept",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-offer-accept",
"credential_exchange_id": credential_offer_received[
"credential_exchange_id"
],
}
)
assert (
credential_offer_accept["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-request-sent"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-request-sent"
)
credential_received = await wait_for_message(
msg_type="did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credential-received"
msg_type="https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credential-received"
)
records = await asyncio.wait_for(
get_issue_credential_records.asyncio(client=backchannel), timeout=20
Expand All @@ -153,11 +153,11 @@ async def test_credentials_get_list(
):
credentials_get_list = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credentials-get-list"
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credentials-get-list"
}
)
assert (
credentials_get_list["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-holder/0.1/credentials-list"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-holder/0.1/credentials-list"
)
# TODO create fixture for credential issuance to retrieve credentials from get-list protocol
16 changes: 8 additions & 8 deletions int/tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async def test_send_schema(connection, endorser_did):
"""Send a schema and verify message type"""
schema = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
"schema_name": "Test Schema",
"schema_version": "1.0",
"attributes": ["attr_1_0", "attr_1_1", "attr_1_2"],
Expand All @@ -18,7 +18,7 @@ async def test_send_schema(connection, endorser_did):
)
assert (
schema["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-id"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-id"
)


Expand All @@ -27,7 +27,7 @@ async def test_schema_get(connection, endorser_did):
"""Retrieve a pre-existing schema"""
schema = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
"schema_name": "Test Schema",
"schema_version": "2.0",
"attributes": ["attr_2_0", "attr_2_1", "attr_2_2"],
Expand All @@ -37,15 +37,15 @@ async def test_schema_get(connection, endorser_did):
)
schema_get = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-get",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-get",
"schema_id": schema["schema_id"],
"@id": schema["@id"],
"~transport": {"return_route": "all"},
}
)
assert (
schema_get["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema"
)
assert schema["schema_id"] == schema_get["schema_id"]
assert schema["@id"] == schema_get["~thread"]["thid"]
Expand All @@ -57,7 +57,7 @@ async def test_schema_get_list(connection, endorser_did):
"""Retrieve the list of schemas"""
schema = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/send-schema",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/send-schema",
"schema_name": "Test Schema",
"schema_version": "3.0",
"attributes": ["attr_3_0", "attr_3_1", "attr_3_2"],
Expand All @@ -67,14 +67,14 @@ async def test_schema_get_list(connection, endorser_did):
)
schema_get_list = await connection.send_and_await_reply_async(
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-get-list",
"@type": "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-get-list",
"@id": schema["@id"],
"~transport": {"return_route": "all"},
}
)
assert (
schema_get_list["@type"]
== "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/admin-schemas/0.1/schema-list"
== "https://github.com/hyperledger/aries-toolbox/tree/master/docs/admin-schemas/0.1/schema-list"
)
assert schema["@id"] == schema_get_list["~thread"]["thid"]
assert schema["schema_id"] in [
Expand Down

0 comments on commit d813247

Please sign in to comment.