@@ -48,9 +48,11 @@ public void testSuccessChannelGroupSync() throws PubNubException {
4848
4949 stubFor (get (urlPathEqualTo ("/v1/auth/audit/sub-key/mySubscribeKey" ))
5050 .withQueryParam ("pnsdk" , matching ("PubNub-Java-Unified/suchJava" ))
51+ .withQueryParam ("instanceId" , matching ("PubNubInstanceId" ))
52+ .withQueryParam ("requestId" , matching ("PubNubRequestId" ))
53+ .withQueryParam ("signature" , matching ("dVle3aE_grdzKypoEegdNSZs_CXpJQJEcnqcM0nMH0Q%3D%0A" ))
5154 .withQueryParam ("channel-group" , matching ("cg1" ))
5255 .withQueryParam ("auth" , matching ("key1" ))
53- .withQueryParam ("signature" , matching ("rXy69MNT1vceNs3Ob6HnjShUAzCV5x4OumSG1lSPL6s%3D%0A" ))
5456 .withQueryParam ("uuid" , matching ("myUUID" ))
5557 .withQueryParam ("timestamp" , matching ("1337" ))
5658 .willReturn (aResponse ().withBody ("{\" message\" :\" Success\" ,\" payload\" :{\" level\" :\" channel-group+auth\" ,\" subscribe_key\" :\" sub-c-82ab2196-b64f-11e5-8622-0619f8945a4f\" ,\" channel-group\" :\" cg2\" ,\" auths\" :{\" key1\" :{\" r\" :1,\" m\" :1,\" w\" :1}}},\" service\" :\" Access Manager\" ,\" status\" :200}" )));
@@ -76,7 +78,9 @@ public void testSuccessChannelSync() throws PubNubException {
7678 .withQueryParam ("pnsdk" , matching ("PubNub-Java-Unified/suchJava" ))
7779 .withQueryParam ("channel" , matching ("ch1" ))
7880 .withQueryParam ("auth" , matching ("key1" ))
79- .withQueryParam ("signature" , matching ("oICb_S5OubabiqrEA9vDqQ-Ri4PdztWLs6__fQQP_Gs%3D%0A" ))
81+ .withQueryParam ("instanceId" , matching ("PubNubInstanceId" ))
82+ .withQueryParam ("requestId" , matching ("PubNubRequestId" ))
83+ .withQueryParam ("signature" , matching ("4WIVMIc007EqwYGrqyJuMy5qf-gvtdopDjfaXEa1zOs%3D%0A" ))
8084 .withQueryParam ("uuid" , matching ("myUUID" ))
8185 .withQueryParam ("timestamp" , matching ("1337" ))
8286 .willReturn (aResponse ().withBody ("{\" message\" :\" Success\" ,\" payload\" :{\" level\" :\" user\" ,\" subscribe_key\" :\" sub-c-82ab2196-b64f-11e5-8622-0619f8945a4f\" ,\" channel\" :\" ch1\" ,\" auths\" :{\" key1\" :{\" r\" :1,\" m\" :1,\" w\" :1}}},\" service\" :\" Access Manager\" ,\" status\" :200}" )));
@@ -143,7 +147,9 @@ public void testIsAuthRequiredSuccessSync() throws IOException, PubNubException,
143147 .withQueryParam ("pnsdk" , matching ("PubNub-Java-Unified/suchJava" ))
144148 .withQueryParam ("channel-group" , matching ("cg1" ))
145149 .withQueryParam ("auth" , matching ("key1" ))
146- .withQueryParam ("signature" , matching ("rXy69MNT1vceNs3Ob6HnjShUAzCV5x4OumSG1lSPL6s%3D%0A" ))
150+ .withQueryParam ("instanceId" , matching ("PubNubInstanceId" ))
151+ .withQueryParam ("requestId" , matching ("PubNubRequestId" ))
152+ .withQueryParam ("signature" , matching ("dVle3aE_grdzKypoEegdNSZs_CXpJQJEcnqcM0nMH0Q%3D%0A" ))
147153 .withQueryParam ("uuid" , matching ("myUUID" ))
148154 .withQueryParam ("timestamp" , matching ("1337" ))
149155 .willReturn (aResponse ().withBody ("{\" message\" :\" Success\" ,\" payload\" :{\" level\" :\" channel-group+auth\" ,\" subscribe_key\" :\" sub-c-82ab2196-b64f-11e5-8622-0619f8945a4f\" ,\" channel-group\" :\" cg2\" ,\" auths\" :{\" key1\" :{\" r\" :1,\" m\" :1,\" w\" :1}}},\" service\" :\" Access Manager\" ,\" status\" :200}" )));
0 commit comments