Skip to content

Adding test cases for primary key evaluation for complex composite views - #552

Merged
ayush3797 merged 37 commits into
mainfrom
dev/agarwalayush/BootStrapFailureTestCase
Jul 28, 2022
Merged

Adding test cases for primary key evaluation for complex composite views#552
ayush3797 merged 37 commits into
mainfrom
dev/agarwalayush/BootStrapFailureTestCase

Conversation

@ayush3797

@ayush3797 ayush3797 commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

This PR includes a test cases to affirm that an appropriate exception is thrown when the primary key for a view cannot be determined, and pass the bootstrap in case if it can be determined.

Please refer to this issue : #404
The fix was already provided in this PR: #414

@ayush3797 ayush3797 self-assigned this Jul 13, 2022
@ayush3797 ayush3797 changed the title Negative test case for undeterminitstic primary key Negative test case for indeterminitstic primary key Jul 13, 2022
Comment thread DataGateway.Service.Tests/Unittests/BootStrapFailureTest.cs Outdated
Comment thread DataGateway.Service.Tests/SqlTests/SqlTestHelper.cs Outdated
Comment thread DataGateway.Service.Tests/SqlTests/SqlTestHelper.cs Outdated
Comment thread DataGateway.Service.Tests/Unittests/BootStrapFailureTest.cs Outdated
Comment thread DataGateway.Service.Tests/Unittests/BootStrapFailureTest.cs Outdated
Comment thread DataGateway.Service.Tests/Unittests/BootStrapFailureTest.cs Outdated

@Aniruddh25 Aniruddh25 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on using Assert.ThrowsException

@Aniruddh25 Aniruddh25 linked an issue Jul 15, 2022 that may be closed by this pull request
@ayush3797 ayush3797 changed the title Negative test case for indeterminitstic primary key Adding test cases for primary key evaluation for complex composite views Jul 25, 2022
Comment thread DataGateway.Service.Tests/TestHelper.cs Outdated
Comment thread DataGateway.Service.Tests/Unittests/PrimaryKeyTestsForCompositeViews.cs Outdated

@jarupatj jarupatj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add comments.

Comment thread DataGateway.Service.Tests/Unittests/PrimaryKeyTestsForCompositeViews.cs Outdated
Comment thread DataGateway.Service.Tests/TestHelper.cs Outdated

@seantleonard seantleonard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple questions prior to merge.

Comment thread DataGateway.Service.Tests/SqlTests/SqlTestBase.cs Outdated
@ayush3797
ayush3797 enabled auto-merge (squash) July 28, 2022 18:26
@ayush3797
ayush3797 dismissed seantleonard’s stale review July 28, 2022 18:27

All comments addressed.

@ayush3797
ayush3797 merged commit 2bc5700 into main Jul 28, 2022
@ayush3797
ayush3797 deleted the dev/agarwalayush/BootStrapFailureTestCase branch July 28, 2022 18:27

@seantleonard seantleonard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some nits and questions to consider for follow-up.

Comment thread DataGateway.Service.Tests/TestHelper.cs
Comment thread DataGateway.Service.Tests/SqlTests/SqlTestBase.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sql: Fail Bootstrap if Primary key is not found

6 participants