dbeaver/pro#9568 move tests to ce#4402
Open
HocKu7 wants to merge 8 commits into
Open
Conversation
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| CodeStyle | 2 minor |
🟢 Metrics 79 complexity · 38 duplication
Metric Results Complexity 79 Duplication 38
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Contributor
There was a problem hiding this comment.
Pull request overview
Moves/introduces platform-level server tests into the CloudBeaver CE test module to cover key GraphQL/admin and SQL endpoint behaviors.
Changes:
- Added reusable test utilities for GraphQL calls and H2 datasource setup.
- Added new CE platform tests for SQL result sets, grouping, FK navigation, and data filtering.
- Added new CE platform tests for admin user creation and last-login-time behavior, and registered them in the CE server test suite.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/util/WebDBTestUtils.java | Utility for creating an H2 datasource for platform tests |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/util/GraphQLTestConstant.java | Centralized GraphQL query/mutation text used by tests |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/util/GraphQLTestClientWrapper.java | Convenience wrapper around WebGQLClient for async SQL/task flows |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/util/DBTestConstants.java | Shared DB-related constants for tests |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/sql/RowIdResultSetTest.java | Verifies row identifier metadata behavior for PK/composite PK/no-PK |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/sql/GroupingEndpointTest.java | Verifies SQL grouping endpoint behavior for 1- and 2-column grouping |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/sql/GenerateSQLResultSetTest.java | Verifies SQL generation from result sets under different generator options |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/sql/ForeignKeyNavigationEndpointTest.java | Verifies forward/reverse FK metadata and navigation behavior |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/sql/DataFilterConstraintsTest.java | Verifies server-side filtering constraints (equals/not-equals/is-null) |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/CloudbeaverDBTest.java | New shared base test class to bootstrap session + H2 datasource + SQL context |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/CEServerTestSuite.java | Registers newly added platform tests in the CE suite |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/admin/AdminLastLoginTimeTest.java | Ensures lastLoginTime is populated after successful authentication |
| server/test/io.cloudbeaver.test.platform/src/io/cloudbeaver/test/platform/admin/AdminCreateUserTest.java | Ensures createUser trims incoming userId |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+52
to
+54
| DBPConnectionConfiguration configuration = new DBPConnectionConfiguration(); | ||
| configuration.setUrl(url); | ||
|
|
Comment on lines
+143
to
+151
| public String openSession() throws Exception { | ||
| Map<String, Object> openVars = new HashMap<>(); | ||
| openVars.put("defaultLocale", "en"); | ||
| Map<String, Object> bodyAndHeaders = client.sendQueryAndGetHeaders(GQL_OPEN_SESSION, openVars, Map.of()); | ||
| Map<String, Object> headers = JSONUtils.getObject(bodyAndHeaders, "headers"); | ||
| String cookie = JSONUtils.getString(headers, "Set-Cookie"); | ||
| Map<String, String> cookieMap = parseCookies(cookie); | ||
| return cookieMap.get("cb-session-id"); | ||
| } |
Comment on lines
+99
to
+101
| Thread.sleep(200); | ||
| } | ||
| } |
yagudin10
previously approved these changes
Jun 17, 2026
199454f to
1514fd7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://github.com/dbeaver/pro/issues/9568