-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update integration tests to run as upgrade tests for multitenancy #8799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still reviewing
df25dc7 to
a19f192
Compare
a19f192 to
2776ed8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks much cleaner, thanks for all the work.
2776ed8 to
59d1575
Compare
59d1575 to
b0600b6
Compare
b0600b6 to
172828e
Compare
172828e to
badbf40
Compare
ce9c16e to
b6ee096
Compare
b6ee096 to
f13e02d
Compare
@jbhamra1 Could you please add which tests were added and if there were test cases which were modified. A small summary would help me in reviewing the code. |
The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { integration_test.go and upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, a bit of nitpicks here and there.
| name | ||
| } | ||
| // Upgrade | ||
| suite.Upgrade() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel a bit uneasy calling upgrade here, given that this would be used for integration tests also. Can we improve this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What doesn't feel right to you? For integration tests, this function is empty. It looks odd I agree, we couldn't think of a better way though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting this block here for now, because we need to fix the infrastructure in dgraphtest before adding more tests. @mangalaman93
d3ee584 to
f248367
Compare
57f7233 to
2b0a742
Compare
2b0a742 to
9af1765
Compare
) we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests. The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() { func (suite *MultitenancyTestSuite) TestPersistentQuery() { func (suite *MultitenancyTestSuite) TestTokenExpired() { func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() { func (suite *MultitenancyTestSuite) TestCreateNamespace() { func (suite *MultitenancyTestSuite) TestResetPassword() { func (suite *MultitenancyTestSuite) TestDeleteNamespace() { systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test.
) we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests. The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() { func (suite *MultitenancyTestSuite) TestPersistentQuery() { func (suite *MultitenancyTestSuite) TestTokenExpired() { func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() { func (suite *MultitenancyTestSuite) TestCreateNamespace() { func (suite *MultitenancyTestSuite) TestResetPassword() { func (suite *MultitenancyTestSuite) TestDeleteNamespace() { systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test.
) we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests. The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() { func (suite *MultitenancyTestSuite) TestPersistentQuery() { func (suite *MultitenancyTestSuite) TestTokenExpired() { func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() { func (suite *MultitenancyTestSuite) TestCreateNamespace() { func (suite *MultitenancyTestSuite) TestResetPassword() { func (suite *MultitenancyTestSuite) TestDeleteNamespace() { systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test.
) (#8854) we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests. The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() { func (suite *MultitenancyTestSuite) TestPersistentQuery() { func (suite *MultitenancyTestSuite) TestTokenExpired() { func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() { func (suite *MultitenancyTestSuite) TestCreateNamespace() { func (suite *MultitenancyTestSuite) TestResetPassword() { func (suite *MultitenancyTestSuite) TestDeleteNamespace() { systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test. Co-authored-by: Jassi <jbhamra@dgraph.io>
) (#8854) we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests. The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP. func (suite *MultitenancyTestSuite) TestAclBasic() { func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() { func (suite *MultitenancyTestSuite) TestPersistentQuery() { func (suite *MultitenancyTestSuite) TestTokenExpired() { func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() { func (suite *MultitenancyTestSuite) TestCreateNamespace() { func (suite *MultitenancyTestSuite) TestResetPassword() { func (suite *MultitenancyTestSuite) TestDeleteNamespace() { systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test. integration_basic_helper_test.go contain test functions that are run for integration test. Co-authored-by: Jassi <jbhamra@dgraph.io>
we now start using dgraphtest package instead of testutil package. This PR also modifies the tests in systest/multi-tenancy package to run as both integration as well as upgrade tests.
The below test functions in systest/multi-tenancy/basic_test.go file are modified to run for 'upgrade' and 'integration' test using dgraphtest framework. For 'integration', Upgrade() is a NOOP.
func (suite *MultitenancyTestSuite) TestAclBasic() {
func (suite *MultitenancyTestSuite) TestNameSpaceLimitFlag() {
func (suite *MultitenancyTestSuite) TestPersistentQuery() {
func (suite *MultitenancyTestSuite) TestTokenExpired() {
func (suite *MultitenancyTestSuite) TestTwoPermissionSetsInNameSpacesWithAcl() {
func (suite *MultitenancyTestSuite) TestCreateNamespace() {
func (suite *MultitenancyTestSuite) TestResetPassword() {
func (suite *MultitenancyTestSuite) TestDeleteNamespace() {
systest/multi-tenancy/integration_test.go and systest/multi-tenancy/upgrade_test.go contains the testify/suite functions and datatypes to start the test.
integration_basic_helper_test.go contain test functions that are run for integration test.