Skip to content

Commit

Permalink
Merge pull request #2112 from MohamedSabthar/subscription-disable
Browse files Browse the repository at this point in the history
Disable subscription tests
  • Loading branch information
gimantha authored Dec 4, 2024
2 parents 149b571 + 5997147 commit 9137f28
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ isolated function testDataLoaderWithDifferentAliasForSameField() returns error?
}

@test:Config {
enable: false,
groups: ["subscriptions", "dataloader"],
after: resetDispatchCounters
}
Expand All @@ -68,8 +69,8 @@ isolated function testDataLoaderWithSubscription() returns error? {
@test:Config {
groups: ["dataloader", "mutation"],
dependsOn: [
testDataLoaderWithQuery,
testDataLoaderWithSubscription
testDataLoaderWithQuery
// ,testDataLoaderWithSubscription
],
after: resetDispatchCounters
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["listener", "subscriptions"]
}
function testAttachServiceWithSubscriptionToHttp2BasedListener() returns error? {
Expand All @@ -32,6 +33,7 @@ function testAttachServiceWithSubscriptionToHttp2BasedListener() returns error?
}

@test:Config {
enable: false,
groups: ["listener", "subscriptions"]
}
function testAttachServiceWithSubscriptionToHttp1BasedListener() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["context", "subscriptions"]
}
isolated function testContextWithSubscriptions() returns error? {
Expand All @@ -40,6 +41,7 @@ isolated function testContextWithSubscriptions() returns error? {
}

@test:Config {
enable: false,
groups: ["context", "subscriptions"]
}
isolated function testContextWithInvalidScopeInSubscriptions() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["constraints", "subscriptions"]
}
isolated function testSubscriptionWithConstraints() returns error? {
Expand All @@ -33,6 +34,7 @@ isolated function testSubscriptionWithConstraints() returns error? {
}

@test:Config {
enable: false,
groups: ["constraints", "subscriptions"]
}
isolated function testMultipleSubscriptionClientsWithConstraints() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["subscriptions", "multiplexing"]
}
isolated function testSubscriptionMultiplexing() returns error? {
Expand Down Expand Up @@ -55,6 +56,7 @@ isolated function testSubscriptionMultiplexing() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testInvalidWebSocketRequestWithEmptyQuery() returns error? {
Expand All @@ -69,6 +71,7 @@ isolated function testInvalidWebSocketRequestWithEmptyQuery() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testInvalidWebSocketRequestWithInvalidQuery() returns error? {
Expand All @@ -84,6 +87,7 @@ isolated function testInvalidWebSocketRequestWithInvalidQuery() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testInvalidWebSocketRequestWithoutQuery() returns error? {
Expand All @@ -98,6 +102,7 @@ isolated function testInvalidWebSocketRequestWithoutQuery() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testInvalidVariableInWebSocketPayload() returns error? {
Expand All @@ -114,6 +119,7 @@ isolated function testInvalidVariableInWebSocketPayload() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testEmptyWebSocketPayload() returns error? {
Expand All @@ -128,6 +134,7 @@ isolated function testEmptyWebSocketPayload() returns error? {
}

@test:Config {
enable: false,
groups: ["request_validation", "websocket", "subscriptions"]
}
isolated function testInvalidWebSocketPayload() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscription() returns error? {
Expand All @@ -36,6 +37,7 @@ isolated function testSubscription() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscriptionWithoutSubProtocol() returns error? {
Expand All @@ -47,6 +49,7 @@ isolated function testSubscriptionWithoutSubProtocol() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscriptionsWithMultipleOperations() returns error? {
Expand Down Expand Up @@ -76,6 +79,7 @@ isolated function testSubscriptionsWithMultipleOperations() returns error? {
}

@test:Config {
enable: false,
groups: ["records", "subscriptions"]
}
isolated function testSubscriptionWithRecords() returns error? {
Expand All @@ -93,6 +97,7 @@ isolated function testSubscriptionWithRecords() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testQueryWithSameSubscriptionFieldName() returns error? {
Expand All @@ -104,6 +109,7 @@ isolated function testQueryWithSameSubscriptionFieldName() returns error? {
}

@test:Config {
enable: false,
groups: ["fragments", "subscriptions"]
}
isolated function testSubscriptionWithFragments() returns error? {
Expand All @@ -121,6 +127,7 @@ isolated function testSubscriptionWithFragments() returns error? {
}

@test:Config {
enable: false,
groups: ["union", "subscriptions"]
}
isolated function testSubscriptionWithUnionType() returns error? {
Expand All @@ -138,6 +145,7 @@ isolated function testSubscriptionWithUnionType() returns error? {
}

@test:Config {
enable: false,
groups: ["variables", "subscriptions"]
}
isolated function testSubscriptionWithVariables() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["subscriptions", "service"]
}
isolated function testConnectionClousureWhenPongNotRecived() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["interceptors", "subscriptions"]
}
isolated function testInterceptorsWithSubscriptionReturningScalar() returns error? {
Expand All @@ -41,6 +42,7 @@ isolated function testInterceptorsWithSubscriptionReturningScalar() returns erro
}

@test:Config {
enable: false,
groups: ["interceptors", "subscriptions", "records"]
}
isolated function testInterceptorsWithSubscriptionReturningRecord() returns error? {
Expand All @@ -63,6 +65,7 @@ isolated function testInterceptorsWithSubscriptionReturningRecord() returns erro
}

@test:Config {
enable: false,
groups: ["interceptors", "fragments", "subscriptions"]
}
isolated function testInterceptorsWithSubscriptionAndFragments() returns error? {
Expand All @@ -85,6 +88,7 @@ isolated function testInterceptorsWithSubscriptionAndFragments() returns error?
}

@test:Config {
enable: false,
groups: ["interceptors", "union", "subscriptions"]
}
isolated function testInterceptorsWithUnionTypeSubscription() returns error? {
Expand Down Expand Up @@ -128,6 +132,7 @@ isolated function testInterceptorsWithUnionTypeSubscription() returns error? {
}

@test:Config {
enable: false,
groups: ["interceptors", "subscriptions"]
}
isolated function testInterceptorsReturnBeforeResolverWithSubscription() returns error? {
Expand All @@ -150,6 +155,7 @@ isolated function testInterceptorsReturnBeforeResolverWithSubscription() returns
}

@test:Config {
enable: false,
groups: ["interceptors", "subscriptions"]
}
isolated function testInterceptorsDestructiveModificationWithSubscription() returns error? {
Expand Down Expand Up @@ -198,6 +204,7 @@ isolated function testInterceptorsDestructiveModificationWithSubscription() retu
}

@test:Config {
enable: false,
groups: ["interceptors", "subscriptions"]
}
isolated function testInterceptorsWithSubscribersRunSimultaniously1() returns error? {
Expand Down Expand Up @@ -237,6 +244,7 @@ isolated function testInterceptorsWithSubscribersRunSimultaniously1() returns er
}

@test:Config {
enable: false,
groups: ["interceptors", "union", "subscriptions"]
}
isolated function testInterceptorsWithSubscribersRunSimultaniously2() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["subscriptions"]
}
function testAlreadyExistingSubscriber() returns error? {
Expand Down Expand Up @@ -51,6 +52,7 @@ function testAlreadyExistingSubscriber() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testOnPing() returns error? {
Expand All @@ -63,6 +65,7 @@ isolated function testOnPing() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testInvalidSubProtocolInSubscriptions() returns error? {
Expand All @@ -77,6 +80,7 @@ isolated function testInvalidSubProtocolInSubscriptions() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions", "runtime_errors"]
}
isolated function testErrorsInStreams() returns error? {
Expand All @@ -96,6 +100,7 @@ isolated function testErrorsInStreams() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testMultipleSubscriptionUsingSingleClient() returns error? {
Expand All @@ -121,6 +126,7 @@ isolated function testMultipleSubscriptionUsingSingleClient() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscriptionWithInvalidPayload() returns error? {
Expand All @@ -137,6 +143,7 @@ isolated function testSubscriptionWithInvalidPayload() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions", "recrods", "service"]
}
isolated function testResolverReturingStreamOfRecordsWithServiceObjects() returns error? {
Expand All @@ -152,6 +159,7 @@ isolated function testResolverReturingStreamOfRecordsWithServiceObjects() return
}

@test:Config {
enable: false,
groups: ["subscriptions", "recrods", "service", "maps"]
}
isolated function testResolverReturingStreamOfRecordsWithMapOfServiceObjects() returns error? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ballerina/test;
import ballerina/websocket;

@test:Config {
enable: false,
groups: ["introspection", "typename", "subscriptions"]
}
isolated function testSubscriptionWithIntrospectionInFields() returns error? {
Expand All @@ -34,6 +35,7 @@ isolated function testSubscriptionWithIntrospectionInFields() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testInvalidSubscription() returns error? {
Expand All @@ -49,6 +51,7 @@ isolated function testInvalidSubscription() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscriptionFunctionWithErrors() returns error? {
Expand All @@ -70,6 +73,7 @@ isolated function testSubscriptionFunctionWithErrors() returns error? {
}

@test:Config {
enable: false,
groups: ["service", "subscriptions"]
}
isolated function testSubscriptionWithServiceObjects() returns error? {
Expand All @@ -88,6 +92,7 @@ isolated function testSubscriptionWithServiceObjects() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testSubscriptionWithMultipleClients() returns error? {
Expand Down Expand Up @@ -125,6 +130,7 @@ isolated function testConnectionInitMessage() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testInvalidMultipleConnectionInitMessages() returns error? {
Expand All @@ -139,6 +145,7 @@ isolated function testInvalidMultipleConnectionInitMessages() returns error? {
}

@test:Config {
enable: false,
groups: ["subscriptions"]
}
isolated function testUnauthorizedAccess() returns error? {
Expand Down
1 change: 1 addition & 0 deletions ballerina/tests/03_subscriptions.bal
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import ballerina/test;
import graphql.parser;

@test:Config {
enable: false,
groups: ["subscriptions", "validation"],
dataProvider: dataProviderSubscriptionValidation
}
Expand Down

0 comments on commit 9137f28

Please sign in to comment.