From 1dc899983b414206033d620da28fae3b7ea9de51 Mon Sep 17 00:00:00 2001 From: ayeshLK Date: Fri, 15 Sep 2023 10:09:50 +0530 Subject: [PATCH] Fix test cases --- ballerina/tests/subscription_initiation_test.bal | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/ballerina/tests/subscription_initiation_test.bal b/ballerina/tests/subscription_initiation_test.bal index 3dcda463..d494f289 100644 --- a/ballerina/tests/subscription_initiation_test.bal +++ b/ballerina/tests/subscription_initiation_test.bal @@ -56,17 +56,6 @@ service /common on new http:Listener(9192) { } check caller->respond(); } - - isolated resource function post hub/additional/unsub(http:Caller caller, http:Request request) returns error? { - map params = check request.getFormParams(); - foreach var ['key, _] in self.expectedAdditionalParams { - test:assertTrue(!params.hasKey('key), "unexpected additional parameter present"); - } - foreach var [header, _] in self.expectedAdditionalHeaders { - test:assertTrue(!request.hasHeader(header), "unexpected additional header present"); - } - check caller->respond(); - } } isolated function getServiceAnnotationConfig(string|[string, string] target) returns SubscriberServiceConfiguration { @@ -239,7 +228,7 @@ isolated function testUnSubscriptionInitiationDisable() returns error? { } isolated function testUnSubscriptionInitiationSuccessWithAdditionalParams() returns error? { SubscriberServiceConfiguration config = { - target: ["http://127.0.0.1:9192/common/hub/additional/unsub", COMMON_TOPIC], + target: ["http://127.0.0.1:9192/common/hub/additional", COMMON_TOPIC], leaseSeconds: 36000, callback: CALLBACK, unsubscribeOnShutdown: true