Skip to content
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

Quality Checks for Databases (DAT-9298) #2715

Merged
merged 70 commits into from
Jun 3, 2022
Merged

Quality Checks for Databases (DAT-9298) #2715

merged 70 commits into from
Jun 3, 2022

Conversation

StevenMassaro
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 4, 2022

Unit Test Results

  4 524 files  ±0    4 524 suites  ±0   29m 30s ⏱️ -15s
  4 422 tests ±0    4 208 ✔️ ±0     214 💤 ±0  0 ±0 
52 344 runs  ±0  47 336 ✔️ ±0  5 008 💤 ±0  0 ±0 

Results for commit f9896e3. ± Comparison against base commit c1a67a7.

♻️ This comment has been updated with latest results.

Simplify the license checks that occur in the core code
Remove ability to store licenses in any other format (like a file) other than a base64 string
Move some of the pro license specific code into the pro repo
@kataggart kataggart added this to To Do in Conditioning++ via automation Apr 4, 2022
Add new parameters for QCs for databases to maven plugin.
…03) (#2815)

Previously, the maven integration handled its own verification of the pro license key. This meant that specifying the key through the liquibase.properties file was not supported in maven. Now, instead of having maven do the license check, the license checks occur in the command step, and additionally, unneeded license check code from the Main.java class has been removed.
…" property (#2838) (#2839)

Add a property called "liquibase.sdk.testSystem.skip" to the test system framework. This property works in conjunction with the "liquibase.sdk.testSystem.test" property, allowing developers to run all test system frameworks, and exclude a subset of them.

(cherry picked from commit 8d3abcd)
…2831)

Some properties in the property file were not being loaded if they were not specified in their individual mojo definitions.
The existing integration test framework was configured to stop TestSystem's when the cleanup: method was called. Spock internally called this method when it finished executing all of the tests in a class. Thus, when a particular test class was completed, its TestSystem was stopped, which in some cases was premature, since other classes might use the same TestSystem.

Instead, the TestSystem's should be stopped when Spock finishes executing all of the tests in all classes.

(cherry picked from commit d2bea1a)
Change array to list in TableOutput method
Add option to ignore whitespace in CommandTests "contains" comparison
…9) (#2858)

A user could specify their license key using the LIQUIBASE_PRO_LICENSE_KEY property in any provider (perhaps environment variable) and specify a second license key using the LIQUIBASE_LICENSE_KEY property in the defaults file. The defaults file value provider is not registered until after invoking the license service's license installation code, and the license service caches installed licenses so that it does not have to recheck for license keys. However, this means that in the above example, a license specified in the defaults file is not loaded because the license in the environment variable is erroneously installed and cached first.
@@ -62,9 +62,11 @@ public CommandFailedException commandFailed(String message, int exitCode) {
/**
* Collects the results and flushes the output stream.
*/
CommandResults build() {
public CommandResults build() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this have to become public?

It was designed to not be callable outside the command package because we want the framework to control that portion of the lifecycle. Do we need to open it up like that?

Copy link
Contributor

Choose a reason for hiding this comment

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

I refactored the code in SnapshotCommandStep so that it doesn't need to call the build() method. I changed it back to package-protected.

* change licenseKey mojo property name

* undo breaking change to TableOutput API

* move buildFullyQualifiedName method to pro code

Co-authored-by: Steven Massaro <steven.massaro.web@gmail.com>
@StevenMassaro StevenMassaro marked this pull request as ready for review June 2, 2022 19:48
@StevenMassaro StevenMassaro merged commit 8c9cde5 into master Jun 3, 2022
Conditioning++ automation moved this from To Do to Done Jun 3, 2022
@StevenMassaro StevenMassaro deleted the DAT-9298 branch June 7, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants