From b14f1bf6574cd6ad04b6a1bc26488bc94a111030 Mon Sep 17 00:00:00 2001 From: Nas Kavian Date: Thu, 3 Sep 2026 22:13:17 -0700 Subject: [PATCH] test: accept an external Service DID in the Platform fixture --- .../java/foundation/aep/examples/NodeInteroperability.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/src/main/java/foundation/aep/examples/NodeInteroperability.java b/examples/src/main/java/foundation/aep/examples/NodeInteroperability.java index ec4ae85..8bfe4cd 100644 --- a/examples/src/main/java/foundation/aep/examples/NodeInteroperability.java +++ b/examples/src/main/java/foundation/aep/examples/NodeInteroperability.java @@ -142,8 +142,10 @@ private static void runServer(String... arguments) throws IOException, Interrupt int port = Integer.parseInt(listen.substring(separator + 1)); String encodedHost = listen.replace(":", "%3A"); String serviceDid = "did:web:" + encodedHost + ":services:store"; + String platformServiceDid = System.getenv("AEP_INTEROP_SERVICE_DID"); + if (platformServiceDid == null || platformServiceDid.isBlank()) platformServiceDid = serviceDid; InteroperabilityKeyStore keys = new InteroperabilityKeyStore(); - AepPlatform platform = platform(listen, serviceDid, keys); + AepPlatform platform = platform(listen, platformServiceDid, keys); AepServiceHttpHandler service = service(serviceDid); HttpServer server = HttpServer.create(new InetSocketAddress(host, port), 0); server.setExecutor(Executors.newFixedThreadPool(SERVER_THREADS));