Skip to content

Commit

Permalink
Restructure content-verification tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Aug 7, 2024
1 parent 209867f commit e355239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ballerina/tests/content_verification_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ isolated function isUrlEncodedContentVerified() returns boolean {
secret: hashKey,
unsubscribeOnShutdown: false
}
service /subscriber on new Listener(9098) {
service /subscriber on new Listener(CONTENT_VERIFY_SUB_PORT) {
remote function onEventNotification(ContentDistributionMessage event)
returns Acknowledgement|SubscriptionDeletedError? {
log:printInfo("[VERIFICATION] onEventNotification invoked ", contentDistributionMessage = event);
Expand All @@ -86,7 +86,7 @@ service /subscriber on new Listener(9098) {
}
}

final http:Client contentVerificationClient = check new("http://localhost:9098/subscriber");
final http:Client contentVerificationClient = check new(string `http://localhost:${CONTENT_VERIFY_SUB_PORT}/subscriber`);

@test:Config {
groups: ["contentVerification"]
Expand Down
1 change: 1 addition & 0 deletions ballerina/tests/test_ports.bal
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ const int SUB_WITH_OPT_TARGET_PORT = BASE_PORT + 4;
const int SSL_ENABLED_SUB_PORT = BASE_PORT + 5;
const int MULTIPLE_SUB_ATTACH_PORT = BASE_PORT + 6;
const int MANUAL_SUB_ATTACH_PORT = BASE_PORT + 7;
const int CONTENT_VERIFY_SUB_PORT = BASE_PORT + 8;

0 comments on commit e355239

Please sign in to comment.