Skip to content

Commit

Permalink
Merge pull request #2049 from MohamedSabthar/sub
Browse files Browse the repository at this point in the history
Temporarily disable subscription tests
  • Loading branch information
NipunaRanasinghe authored Oct 1, 2024
2 parents 6f9f934 + 29bb6f7 commit dfc747d
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 20 deletions.
2 changes: 1 addition & 1 deletion ballerina-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "graphql_tests"
version = "1.14.0"
version = "1.14.1"

[build-options]
observabilityIncluded = true
6 changes: 3 additions & 3 deletions ballerina-tests/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ modules = [
[[package]]
org = "ballerina"
name = "graphql"
version = "1.14.0"
version = "1.14.1"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down Expand Up @@ -99,7 +99,7 @@ modules = [
[[package]]
org = "ballerina"
name = "graphql_tests"
version = "1.14.0"
version = "1.14.1"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "file"},
Expand All @@ -123,7 +123,7 @@ modules = [
[[package]]
org = "ballerina"
name = "http"
version = "2.12.0"
version = "2.12.1"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down
4 changes: 3 additions & 1 deletion ballerina-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ task initializeVariables {
if (project.hasProperty("groups")) {
groupParams = "--groups ${project.findProperty('groups')}"
}
// Temporarily disable subscription tests
disableGroups = "--disable-groups subscriptions "
if (project.hasProperty("disable")) {
disableGroups = "--disable-groups ${project.findProperty("disable")}"
disableGroups += "${project.findProperty("disable")}"
}
if (project.hasProperty("debug")) {
debugParams = "--debug ${project.findProperty("debug")}"
Expand Down
2 changes: 1 addition & 1 deletion ballerina-tests/tests/01_listener_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function dataProviderListener() returns string[][] {
}

@test:Config {
groups: ["listener"]
groups: ["subscriptions", "listener"]
}
function testAttachServiceWithSubscriptionToHttp2BasedListener() returns error? {
graphql:Error? result = http2BasedListener.attach(subscriptionService);
Expand Down
2 changes: 1 addition & 1 deletion ballerina-tests/tests/27_context.bal
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ isolated function testContextWithAdditionalParametersInNestedObjectWithInvalidSc
}

@test:Config {
groups: ["context"]
groups: ["context", "subscriptions"]
}
isolated function testContextWithSubscriptions() returns error? {
string url = "ws://localhost:9092/context";
Expand Down
12 changes: 8 additions & 4 deletions ballerina-tests/tests/41_dataloader.bal
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// under the License.

import ballerina/graphql;
import ballerina/websocket;
import ballerina/test;
import ballerina/websocket;

@test:Config {
groups: ["dataloader", "query"],
Expand Down Expand Up @@ -47,8 +47,9 @@ isolated function testDataLoaderWithDifferentAliasForSameField() returns error?
}

@test:Config {
groups: ["dataloader", "subscription"],
after: resetDispatchCounters
groups: ["subscriptions", "dataloader"],
after: resetDispatchCounters,
enable: false
}
isolated function testDataLoaderWithSubscription() returns error? {
string document = check getGraphqlDocumentFromFile("dataloader_with_subscription");
Expand All @@ -66,7 +67,10 @@ isolated function testDataLoaderWithSubscription() returns error? {

@test:Config {
groups: ["dataloader", "mutation"],
dependsOn: [testDataLoaderWithQuery, testDataLoaderWithSubscription],
dependsOn: [
testDataLoaderWithQuery
// , testDataLoaderWithSubscription
],
after: resetDispatchCounters
}
isolated function testDataLoaderWithMutation() returns error? {
Expand Down
10 changes: 5 additions & 5 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "graphql"
version = "1.14.0"
version = "1.14.1"
authors = ["Ballerina"]
export=["graphql", "graphql.subgraph", "graphql.dataloader"]
keywords = ["gql", "network", "query", "service"]
Expand All @@ -16,11 +16,11 @@ graalvmCompatible = true
[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "graphql-native"
version = "1.14.0"
path = "../native/build/libs/graphql-native-1.14.0.jar"
version = "1.14.1"
path = "../native/build/libs/graphql-native-1.14.1-SNAPSHOT.jar"

[[platform.java17.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "graphql-commons"
version = "1.14.0"
path = "../commons/build/libs/graphql-commons-1.14.0.jar"
version = "1.14.1"
path = "../commons/build/libs/graphql-commons-1.14.1-SNAPSHOT.jar"
4 changes: 2 additions & 2 deletions ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ id = "graphql-compiler-plugin"
class = "io.ballerina.stdlib.graphql.compiler.GraphqlCompilerPlugin"

[[dependency]]
path = "../compiler-plugin/build/libs/graphql-compiler-plugin-1.14.0.jar"
path = "../compiler-plugin/build/libs/graphql-compiler-plugin-1.14.1-SNAPSHOT.jar"

[[dependency]]
path = "../commons/build/libs/graphql-commons-1.14.0.jar"
path = "../commons/build/libs/graphql-commons-1.14.1-SNAPSHOT.jar"
4 changes: 2 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ modules = [
[[package]]
org = "ballerina"
name = "graphql"
version = "1.14.0"
version = "1.14.1"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down Expand Up @@ -106,7 +106,7 @@ modules = [
[[package]]
org = "ballerina"
name = "http"
version = "2.12.0"
version = "2.12.1"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
Expand Down

0 comments on commit dfc747d

Please sign in to comment.