Skip to content

Commit

Permalink
fix test for changes to flyway 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wetted committed Nov 6, 2023
1 parent a58da9b commit 16992db
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import org.flywaydb.core.api.ErrorCode
import org.flywaydb.core.api.FlywayException
import org.flywaydb.core.api.MigrationState
import org.flywaydb.core.api.pattern.ValidatePattern
import org.flywaydb.core.internal.license.FlywayTeamsUpgradeRequiredException
import org.flywaydb.core.internal.license.FlywayRedgateEditionRequiredException
import spock.lang.Specification

/**
Expand Down Expand Up @@ -51,10 +51,10 @@ class ValidatePatternTypeConverterSpec extends Specification {
validatePatternTypeConverter.convert("repeatable:*", ValidatePattern.class)

then:
def e = thrown(FlywayTeamsUpgradeRequiredException)
def e = thrown(FlywayRedgateEditionRequiredException)
e.errorCode == ErrorCode.ERROR
e.message == 'Flyway Teams Edition upgrade required: ignoreMigrationPattern with type \'repeatable\' is not supported by Flyway Community Edition\n' +
'Try Flyway Teams Edition for free: https://rd.gt/2VzHpkY'
e.message == 'Flyway Redgate Edition Required: ignoreMigrationPattern with type \'repeatable\' is not supported by OSS Edition\n' +
'Download Redgate Edition for free: https://rd.gt/2VzHpkY'
}

void "test versioned string conversion"() {
Expand All @@ -65,10 +65,10 @@ class ValidatePatternTypeConverterSpec extends Specification {
validatePatternTypeConverter.convert("versioned:missing", ValidatePattern.class)

then:
def e = thrown(FlywayTeamsUpgradeRequiredException)
def e = thrown(FlywayRedgateEditionRequiredException)
e.errorCode == ErrorCode.ERROR
e.message == 'Flyway Teams Edition upgrade required: ignoreMigrationPattern with type \'versioned\' is not supported by Flyway Community Edition\n' +
'Try Flyway Teams Edition for free: https://rd.gt/2VzHpkY'
e.message == 'Flyway Redgate Edition Required: ignoreMigrationPattern with type \'versioned\' is not supported by OSS Edition\n' +
'Download Redgate Edition for free: https://rd.gt/2VzHpkY'
}

void "test missing string conversion"() {
Expand Down

0 comments on commit 16992db

Please sign in to comment.