Skip to content

Commit eaaa2c9

Browse files
authored
Update webvh server url (openwallet-foundation#2056)
* add pending record webhook Signed-off-by: PatStLouis <[email protected]> * remove commented code Signed-off-by: PatStLouis <[email protected]> * update record Signed-off-by: PatStLouis <[email protected]> * update protocol records Signed-off-by: PatStLouis <[email protected]> * fix integration tests and events Signed-off-by: PatStLouis <[email protected]> * update server test url for bcvh Signed-off-by: PatStLouis <[email protected]> --------- Signed-off-by: PatStLouis <[email protected]>
1 parent b53c5c5 commit eaaa2c9

File tree

9 files changed

+20
-17
lines changed

9 files changed

+20
-17
lines changed

webvh/docker/controller.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ auto-respond-messages: true
3030

3131
# Plugin
3232
plugin-config-value:
33-
- did-webvh.server_url=https://id.test-suite.app
33+
- did-webvh.server_url=https://sandbox.bcvh.vonx.io

webvh/docker/witness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ auto-respond-messages: true
3232

3333
# Plugin
3434
plugin-config-value:
35-
- did-webvh.server_url=https://id.test-suite.app
35+
- did-webvh.server_url=https://sandbox.bcvh.vonx.io

webvh/integration/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
--notify-revocation
2424
--plugin webvh
2525
--plugin-config-value did-webvh.witness=true
26-
--plugin-config-value did-webvh.server_url=https://id.test-suite.app
26+
--plugin-config-value did-webvh.server_url=https://sandbox.bcvh.vonx.io
2727
--tails-server-base-url https://tails.anoncreds.vc
2828
--auto-provision
2929
--seed 00000000000000000000000000000000
@@ -55,7 +55,7 @@ services:
5555
--monitor-revocation-notification
5656
--plugin webvh
5757
--plugin-config-value did-webvh.witness=false
58-
--plugin-config-value did-webvh.server_url=https://id.test-suite.app
58+
--plugin-config-value did-webvh.server_url=https://sandbox.bcvh.vonx.io
5959
--auto-accept-invites
6060
--auto-respond-messages
6161
tests:

webvh/integration/tests/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from os import getenv
22

3-
WEBVH_DOMAIN = "id.test-suite.app"
3+
WEBVH_DOMAIN = "sandbox.bcvh.vonx.io"
44
WITNESS_SEED = "00000000000000000000000000000000"
55
WITNESS_KEY = "z6MkgKA7yrw5kYSiDuQFcye4bMaJpcfHFry3Bx45pdWh3s8i"
66
WITNESS_KID = f"webvh:{WEBVH_DOMAIN}@witnessKey"

webvh/webvh/anoncreds/tests/test_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
from ...did.manager import ControllerManager
3939
from ..registry import DIDWebVHRegistry
4040

41-
test_domain = "id.test-suite.app"
42-
test_server = "https://id.test-suite.app"
41+
test_domain = "sandbox.bcvh.vonx.io"
42+
test_server = "https://sandbox.bcvh.vonx.io"
4343
test_schema = AnonCredsSchema(
4444
issuer_id=f"did:webvh:Q:{test_domain}:issuer:01",
4545
attr_names=["name", "age", "vmax"],

webvh/webvh/did/tests/test_controller_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from ...protocols.log_entry.record import PendingLogEntryRecord
1919

2020
SCID_PLACEHOLDER = "{SCID}"
21-
TEST_DOMAIN = "id.test-suite.app"
21+
TEST_DOMAIN = "sandbox.bcvh.vonx.io"
2222
TEST_NAMESPACE = "test"
2323
TEST_IDENTIFIER = "123"
2424
TEST_VERSION_TIME = "2025-07-28T21:47:32Z"

webvh/webvh/did/tests/test_witness_manager.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
PENDING_DOCUMENT_TABLE_NAME = PendingLogEntryRecord().RECORD_TYPE
1919

20+
SERVER_DOMAIN = "sandbox.bcvh.vonx.io"
21+
SERVER_URL = f"https://{SERVER_DOMAIN}"
22+
2023

2124
class TestWitnessManager(IsolatedAsyncioTestCase):
2225
async def asyncSetUp(self):
@@ -58,7 +61,7 @@ async def test_auto_witness_setup_as_witness(
5861
):
5962
self.profile.settings.set_value(
6063
"plugin_config",
61-
{"did-webvh": {"witness": True, "server_url": "https://id.test-suite.app"}},
64+
{"did-webvh": {"witness": True, "server_url": SERVER_URL}},
6265
)
6366
await self.controller.auto_witness_setup()
6467
assert not mock_get_active_witness_connection.called
@@ -77,13 +80,13 @@ async def test_auto_witness_setup_as_controller_with_previous_connection(self):
7780
{
7881
"did-webvh": {
7982
"witness": False,
80-
"server_url": "https://id.test-suite.app",
83+
"server_url": SERVER_URL,
8184
}
8285
},
8386
)
8487
async with self.profile.session() as session:
8588
record = ConnRecord(
86-
alias="https://id.test-suite.app@Witness",
89+
alias=f"{SERVER_URL}@Witness",
8790
state="active",
8891
)
8992
await record.save(session)
@@ -95,7 +98,7 @@ async def test_auto_witness_setup_as_controller_no_witness_invitation(self):
9598
{
9699
"did-webvh": {
97100
"witness": False,
98-
"server_url": "https://id.test-suite.app",
101+
"server_url": SERVER_URL,
99102
}
100103
},
101104
)
@@ -110,7 +113,7 @@ async def test_auto_witness_setup_as_controller_no_active_connection(self, *_):
110113
{
111114
"did-webvh": {
112115
"witness": False,
113-
"server_url": "https://id.test-suite.app",
116+
"server_url": SERVER_URL,
114117
"witness_invitation": "http://witness:9050?oob=eyJAdHlwZSI6ICJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzEuMS9pbnZpdGF0aW9uIiwgIkBpZCI6ICIwZDkwMGVjMC0wYzE3LTRmMTYtOTg1ZC1mYzU5MzVlYThjYTkiLCAibGFiZWwiOiAidGR3LWVuZG9yc2VyIiwgImhhbmRzaGFrZV9wcm90b2NvbHMiOiBbImh0dHBzOi8vZGlkY29tbS5vcmcvZGlkZXhjaGFuZ2UvMS4wIl0sICJzZXJ2aWNlcyI6IFt7ImlkIjogIiNpbmxpbmUiLCAidHlwZSI6ICJkaWQtY29tbXVuaWNhdGlvbiIsICJyZWNpcGllbnRLZXlzIjogWyJkaWQ6a2V5Ono2TWt0bXJUQURBWWRlc2Ftb3F1ZVV4NHNWM0g1Mms5b2ZoQXZRZVFaUG9vdTE3ZSN6Nk1rdG1yVEFEQVlkZXNhbW9xdWVVeDRzVjNINTJrOW9maEF2UWVRWlBvb3UxN2UiXSwgInNlcnZpY2VFbmRwb2ludCI6ICJodHRwOi8vbG9jYWxob3N0OjkwNTAifV19",
115118
}
116119
},
@@ -128,7 +131,7 @@ async def test_auto_witness_setup_as_controller_conn_becomes_active(self, *_):
128131
{
129132
"did-webvh": {
130133
"witness": False,
131-
"server_url": "https://id.test-suite.app",
134+
"server_url": SERVER_URL,
132135
"witness_invitation": "http://witness:9050?oob=eyJAdHlwZSI6ICJodHRwczovL2RpZGNvbW0ub3JnL291dC1vZi1iYW5kLzEuMS9pbnZpdGF0aW9uIiwgIkBpZCI6ICIwZDkwMGVjMC0wYzE3LTRmMTYtOTg1ZC1mYzU5MzVlYThjYTkiLCAibGFiZWwiOiAidGR3LWVuZG9yc2VyIiwgImhhbmRzaGFrZV9wcm90b2NvbHMiOiBbImh0dHBzOi8vZGlkY29tbS5vcmcvZGlkZXhjaGFuZ2UvMS4wIl0sICJzZXJ2aWNlcyI6IFt7ImlkIjogIiNpbmxpbmUiLCAidHlwZSI6ICJkaWQtY29tbXVuaWNhdGlvbiIsICJyZWNpcGllbnRLZXlzIjogWyJkaWQ6a2V5Ono2TWt0bXJUQURBWWRlc2Ftb3F1ZVV4NHNWM0g1Mms5b2ZoQXZRZVFaUG9vdTE3ZSN6Nk1rdG1yVEFEQVlkZXNhbW9xdWVVeDRzVjNINTJrOW9maEF2UWVRWlBvb3UxN2UiXSwgInNlcnZpY2VFbmRwb2ludCI6ICJodHRwOi8vbG9jYWxob3N0OjkwNTAifV19",
133136
}
134137
},
@@ -141,7 +144,7 @@ async def _create_connection():
141144
await asyncio.sleep(1)
142145
async with self.profile.session() as session:
143146
record = ConnRecord(
144-
alias="https://id.test-suite.app@Witness",
147+
alias=f"{SERVER_URL}@Witness",
145148
state="active",
146149
)
147150
await record.save(session)

webvh/webvh/tests/fixtures.py

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

55

66
SCID_PLACEHOLDER = "{SCID}"
7-
TEST_DOMAIN = "id.test-suite.app"
7+
TEST_DOMAIN = "sandbox.bcvh.vonx.io"
88
TEST_SERVER_URL = f"https://{TEST_DOMAIN}"
99
TEST_WITNESS_SEED = "00000000000000000000000000000000"
1010
TEST_WITNESS_KEY = "z6MkgKA7yrw5kYSiDuQFcye4bMaJpcfHFry3Bx45pdWh3s8i"

webvh/webvh/tests/test_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
create,
1313
)
1414

15-
TEST_SERVER_URL = "https://id.test-suite.app"
15+
TEST_SERVER_URL = "https://sandbox.bcvh.vonx.io"
1616
TEST_WITNESS_INVITATION = {
1717
"@type": "https://didcomm.org/out-of-band/1.1/invitation",
1818
"@id": "fe469f3d-b288-4e3f-99ba-b631af98248b",

0 commit comments

Comments
 (0)