Skip to content

Commit

Permalink
WIP: tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Nov 22, 2023
1 parent fcc3ece commit afdf5c7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ mod order_by_dependent {
}

// "[Circular with differing records] Ordering by related record field ascending" should "work"
#[connector_test(exclude(SqlServer))]
#[connector_test(exclude(SqlServer, Vitess("planetscale.js")))]
async fn circular_diff_related_record_asc(runner: Runner) -> TestResult<()> {
// Records form circles with their relations
create_row(&runner, 1, Some(1), Some(1), Some(3)).await?;
Expand Down Expand Up @@ -255,7 +255,7 @@ mod order_by_dependent {
}

// "[Circular with differing records] Ordering by related record field descending" should "work"
#[connector_test(exclude(SqlServer))]
#[connector_test(exclude(SqlServer, Vitess("planetscale.js")))]
async fn circular_diff_related_record_desc(runner: Runner) -> TestResult<()> {
// Records form circles with their relations
create_row(&runner, 1, Some(1), Some(1), Some(3)).await?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mod order_by_dependent_pag {

// "[Hops: 1] Ordering by related record field ascending with nulls" should "work"
// TODO(julius): should enable for SQL Server when partial indices are in the PSL
#[connector_test(exclude(SqlServer))]
#[connector_test(exclude(SqlServer, Vitess("planetscale.js")))]
async fn hop_1_related_record_asc_nulls(runner: Runner) -> TestResult<()> {
// 1 record has the "full chain", one half, one none
create_row(&runner, 1, Some(1), Some(1), None).await?;
Expand Down Expand Up @@ -146,7 +146,7 @@ mod order_by_dependent_pag {

// "[Hops: 2] Ordering by related record field ascending with nulls" should "work"
// TODO(garren): should enable for SQL Server when partial indices are in the PSL
#[connector_test(exclude(SqlServer))]
#[connector_test(exclude(SqlServer, Vitess("planetscale.js")))]
async fn hop_2_related_record_asc_null(runner: Runner) -> TestResult<()> {
// 1 record has the "full chain", one half, one none
create_row(&runner, 1, Some(1), Some(1), None).await?;
Expand Down Expand Up @@ -227,7 +227,7 @@ mod order_by_dependent_pag {

// "[Circular with differing records] Ordering by related record field ascending" should "work"
// TODO(julius): should enable for SQL Server when partial indices are in the PSL
#[connector_test(exclude(SqlServer))]
#[connector_test(exclude(SqlServer, Vitess("planetscale.js")))]
async fn circular_diff_related_record_asc(runner: Runner) -> TestResult<()> {
// Records form circles with their relations
create_row(&runner, 1, Some(1), Some(1), Some(3)).await?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ mod pagination {
********************/

// "A skip" should "return all records after the offset specified"
#[connector_test]
#[connector_test(exclude(Vitess("planetscale.js")))]
async fn skip_returns_all_after_offset(runner: Runner) -> TestResult<()> {
create_test_data(&runner).await?;

Expand All @@ -296,7 +296,7 @@ mod pagination {
}

// "A skip with order reversed" should "return all records after the offset specified"
#[connector_test]
#[connector_test(exclude(Vitess("planetscale.js")))]
async fn skip_reversed_order(runner: Runner) -> TestResult<()> {
create_test_data(&runner).await?;

Expand All @@ -315,7 +315,7 @@ mod pagination {
}

// "A skipping beyond all records" should "return no records"
#[connector_test]
#[connector_test(exclude(Vitess("planetscale.js")))]
async fn skipping_beyond_all_records(runner: Runner) -> TestResult<()> {
create_test_data(&runner).await?;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ mod byoid {
}

// "A Create Mutation" should "create and return item with own Id"
#[connector_test(schema(schema_1))]
#[connector_test(
schema(schema_1),
only(MySql, Postgres, Sqlite, Vitess),
exclude(Vitess("planetscale.js"))
)]
async fn create_and_return_item_woi_1(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation {
Expand Down Expand Up @@ -73,7 +77,11 @@ mod byoid {
}

// "A Create Mutation" should "create and return item with own Id"
#[connector_test(schema(schema_2))]
#[connector_test(
schema(schema_2),
only(MySql, Postgres, Sqlite, Vitess),
exclude(Vitess("planetscale.js"))
)]
async fn create_and_return_item_woi_2(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation {
Expand Down Expand Up @@ -131,7 +139,11 @@ mod byoid {
}

// "A Nested Create Mutation" should "create and return item with own Id"
#[connector_test(schema(schema_1))]
#[connector_test(
schema(schema_1),
only(MySql, Postgres, Sqlite, Vitess),
exclude(Vitess("planetscale.js"))
)]
async fn nested_create_return_item_woi_1(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation {
Expand Down Expand Up @@ -159,7 +171,11 @@ mod byoid {
}

// "A Nested Create Mutation" should "create and return item with own Id"
#[connector_test(schema(schema_2))]
#[connector_test(
schema(schema_2),
only(MySql, Postgres, Sqlite, Vitess),
exclude(Vitess("planetscale.js"))
)]
async fn nested_create_return_item_woi_2(runner: Runner) -> TestResult<()> {
insta::assert_snapshot!(
run_query!(&runner, r#"mutation {
Expand Down

0 comments on commit afdf5c7

Please sign in to comment.