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

Validate formatted SQL changelog for invalid patterns DAT-7721 #2761

Merged
merged 12 commits into from
Apr 25, 2022

Conversation

wwillard7800
Copy link
Contributor

Environment

Liquibase Version:

Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>

Liquibase Extension(s) & Version:

Database Vendor & Version:

Operating System Type & Version:

Pull Request Type

  • Bug fix (non-breaking change which fixes an issue.)
  • Enhancement/New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

A clear and concise description of the issue being addressed. Additional guidance here.

  • Describe the actual problematic behavior.
  • Ensure private information is redacted.

Steps To Reproduce

List the steps to reproduce the behavior.

  • Please be precise and ensure private information is redacted
  • Include things like
    • Files used - sql scripts, changelog file(s), property file(s), config files, POM Files
    • Exact commands used - CLI, maven, gradle, spring boot, servlet, etc.

Actual Behavior

A clear and concise description of what happens in the software before this pull request.

  • Include console output if relevant
  • Include log files if available.

Expected/Desired Behavior

A clear and concise description of what happens in the software after this pull request.

Screenshots (if appropriate)

If applicable, add screenshots to help explain your problem.

Additional Context

Add any other context about the problem here.

Fast Track PR Acceptance Checklist:

Need Help?

Come chat with us in the Liquibase Forum.

Comment on lines 122 to 127
private static final String INVALID_CHANGELOG_INVALID_PRECONDITION_PATTERN =
"--liquibase formatted sql\n" +
"\n" +
"--changeset bboisvert:invalid_precondition\n" +
"--precondition-invalid-type 123\n" +
"select 1;"
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks identical to INVALID_CHANGELOG_INVALID_PRECONDITION. Do we need both?

@wwillard7800
Copy link
Contributor Author

wwillard7800 commented Apr 14, 2022 via email

@github-actions
Copy link

github-actions bot commented Apr 14, 2022

Unit Test Results

  4 512 files  ±    0    4 512 suites  ±0   36m 43s ⏱️ + 1m 58s
  4 386 tests +  12    4 172 ✔️ +  12     214 💤 ±0  0 ±0 
51 912 runs  +144  46 904 ✔️ +144  5 008 💤 ±0  0 ±0 

Results for commit b0fc790. ± Comparison against base commit 97e6821.

♻️ This comment has been updated with latest results.

@kataggart kataggart added this to To Do in Conditioning++ via automation Apr 15, 2022
@suryaaki2 suryaaki2 merged commit 3a290c8 into master Apr 25, 2022
Conditioning++ automation moved this from To Do to Done Apr 25, 2022
@suryaaki2 suryaaki2 deleted the DAT-7721 branch April 25, 2022 15:45
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

3 participants