Skip to content

Commit 97df382

Browse files
committed
Skip Insert with Composite key tests in MySql and PG to allow adding ability to use one DB roundtrip mutation model. Also utilize insert constant for PUT.
1 parent 0023c13 commit 97df382

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

DataGateway.Service.Tests/SqlTests/MsSqlRestApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public class MsSqlRestApiTests : RestApiTestBase
199199
{
200200
"PutOne_Insert_Test",
201201
$"SELECT [id], [title], [issueNumber] FROM { _integration_NonAutoGenPK_TableName } " +
202-
$"WHERE id = 1 AND [title] = 'Batman Returns' " +
202+
$"WHERE id = { STARTING_ID_FOR_TEST_INSERTS } AND [title] = 'Batman Returns' " +
203203
$"AND [issueNumber] = 1234" +
204204
$"FOR JSON PATH, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER"
205205
},

DataGateway.Service.Tests/SqlTests/MySqlRestApiTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,13 @@ public override Task InsertOneTest()
429429
throw new NotImplementedException();
430430
}
431431

432+
[TestMethod]
433+
[Ignore]
434+
public override Task InsertOneInCompositeKeyTableTest()
435+
{
436+
throw new NotImplementedException();
437+
}
438+
432439
[TestMethod]
433440
[Ignore]
434441
public override Task PutOne_Update_Test()

DataGateway.Service.Tests/SqlTests/PostgreSqlRestApiTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,13 @@ public override Task InsertOneTest()
370370
throw new NotImplementedException();
371371
}
372372

373+
[TestMethod]
374+
[Ignore]
375+
public override Task InsertOneInCompositeKeyTableTest()
376+
{
377+
throw new NotImplementedException();
378+
}
379+
373380
[TestMethod]
374381
[Ignore]
375382
public override Task PutOne_Update_Test()

0 commit comments

Comments
 (0)