Skip to content

Commit

Permalink
Exclude vitess tests when all mysql are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 21, 2023
1 parent ef4bd64 commit 2ea2782
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use indoc::indoc;
use query_engine_tests::*;

#[test_suite(suite = "setdefault_onU_1to1_req", exclude(MongoDb, MySQL))]
#[test_suite(suite = "setdefault_onU_1to1_req", exclude(MongoDb, MySQL, Vitess))]
mod one2one_req {
fn required_with_default() -> String {
let schema = indoc! {
Expand Down Expand Up @@ -68,7 +68,7 @@ mod one2one_req {
}

/// Updating the parent reconnects the child to the default and fails (the default doesn't exist).
#[connector_test(schema(required_with_default), exclude(MongoDb, MySQL))]
#[connector_test(schema(required_with_default), exclude(MongoDb, MySQL, Vitess))]
async fn update_parent_no_exist_fail(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { createOneParent(data: { id: 1, uniq: "1", child: { create: { id: 1 }}}) { id }}"#),
Expand Down Expand Up @@ -105,7 +105,7 @@ mod one2one_req {
}
}

#[test_suite(suite = "setdefault_onU_1to1_opt", exclude(MongoDb, MySQL))]
#[test_suite(suite = "setdefault_onU_1to1_opt", exclude(MongoDb, MySQL, Vitess))]
mod one2one_opt {
fn optional_with_default() -> String {
let schema = indoc! {
Expand Down Expand Up @@ -171,7 +171,7 @@ mod one2one_opt {
}

/// Updating the parent reconnects the child to the default and fails (the default doesn't exist).
#[connector_test(schema(optional_with_default), exclude(MongoDb, MySQL))]
#[connector_test(schema(optional_with_default), exclude(MongoDb, MySQL, Vitess))]
async fn update_parent_no_exist_fail(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { createOneParent(data: { id: 1, uniq: "1", child: { create: { id: 1 }}}) { id }}"#),
Expand Down Expand Up @@ -210,7 +210,7 @@ mod one2one_opt {
}
}

#[test_suite(suite = "setdefault_onU_1toM_req", exclude(MongoDb, MySQL))]
#[test_suite(suite = "setdefault_onU_1toM_req", exclude(MongoDb, MySQL, Vitess))]
mod one2many_req {
fn required_with_default() -> String {
let schema = indoc! {
Expand Down Expand Up @@ -276,7 +276,7 @@ mod one2many_req {
}

/// Updating the parent reconnects the child to the default and fails (the default doesn't exist).
#[connector_test(schema(required_with_default), exclude(MongoDb, MySQL))]
#[connector_test(schema(required_with_default), exclude(MongoDb, MySQL, Vitess))]
async fn update_parent_no_exist_fail(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { createOneParent(data: { id: 1, uniq: "1", children: { create: { id: 1 }}}) { id }}"#),
Expand Down Expand Up @@ -313,7 +313,7 @@ mod one2many_req {
}
}

#[test_suite(suite = "setdefault_onU_1toM_opt", exclude(MongoDb, MySQL))]
#[test_suite(suite = "setdefault_onU_1toM_opt", exclude(MongoDb, MySQL, Vitess))]
mod one2many_opt {
fn optional_with_default() -> String {
let schema = indoc! {
Expand Down Expand Up @@ -379,7 +379,7 @@ mod one2many_opt {
}

/// Updating the parent reconnects the child to the default and fails (the default doesn't exist).
#[connector_test(schema(optional_with_default), exclude(MongoDb, MySQL))]
#[connector_test(schema(optional_with_default), exclude(MongoDb, MySQL, Vitess))]
async fn update_parent_no_exist_fail(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { createOneParent(data: { id: 1, uniq: "1", children: { create: { id: 1 }}}) { id }}"#),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ mod multi_field_unique {
schema.to_owned()
}

#[connector_test(schema(many_unique_fields), exclude(MySQL))]
#[connector_test(schema(many_unique_fields), exclude(MySQL, Vitess))]
async fn ludicrous_fields(runner: Runner) -> TestResult<()> {
create_user(
&runner,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use query_engine_tests::*;

// https://stackoverflow.com/questions/4380813/how-to-get-rid-of-mysql-error-prepared-statement-needs-to-be-re-prepared
// Looks like there's a bug with create view stmt on MariaDB
#[test_suite(schema(schema), exclude(MongoDb, MySql("mariadb")))]
#[test_suite(schema(schema), exclude(MongoDb, MySQL("mariadb"), Vitess))]
mod views {
use query_engine_tests::{connector_test, run_query, Runner};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ mod bytes {
Ok(())
}

#[connector_test(schema(bytes_id), exclude(MySQL, SqlServer))]
#[connector_test(schema(bytes_id), exclude(MySQL, Vitess, SqlServer))]
async fn byte_id_coercion(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(runner, r#"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod json {
}

// "Json float accuracy" should "work"
#[connector_test(exclude(SqlServer, Mysql, Sqlite))]
#[connector_test(exclude(SqlServer, MySQL, Vitess, Sqlite))]
async fn json_float_accuracy(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation {
Expand Down

0 comments on commit 2ea2782

Please sign in to comment.