You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest SQL Anywhere 17.0.11-7254 as a standalone engine (without using testcontainers) I am trying to execute integration tests, and this is the result:
[ERROR] liquibase.dbtest.asany.SybaseASAIntegrationTest.testRerunDiffChangeLog Time elapsed: 25.215 s <<< ERROR!
liquibase.exception.CommandExecutionException:
liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for changeset changelogs/asany/complete/root.changelog.xml::16::nvoxland:
Reason: liquibase.exception.DatabaseException: [SAP][JDBC Driver][SQL Anywhere]Benutzer-ID 'liquibase' ist nicht vorhanden [Failed SQL: (-140) CREATE VIEW lbuser.personView AS select * from liquibase.person]
at liquibase.command.CommandScope.execute(CommandScope.java:235)
at liquibase.Liquibase.lambda$update$0(Liquibase.java:237)
at liquibase.Scope.lambda$child$0(Scope.java:194)
at liquibase.Scope.child(Scope.java:203)
at liquibase.Scope.child(Scope.java:193)
at liquibase.Scope.child(Scope.java:172)
at liquibase.Liquibase.runInScope(Liquibase.java:1603)
at liquibase.Liquibase.update(Liquibase.java:229)
at liquibase.Liquibase.update(Liquibase.java:213)
at liquibase.Liquibase.update(Liquibase.java:198)
at liquibase.Liquibase.update(Liquibase.java:187)
at liquibase.dbtest.AbstractIntegrationTest.runChangeLogFile(AbstractIntegrationTest.java:348)
at liquibase.dbtest.AbstractIntegrationTest.runCompleteChangeLog(AbstractIntegrationTest.java:336)
at liquibase.dbtest.AbstractIntegrationTest.testRerunDiffChangeLog(AbstractIntegrationTest.java:640)
NB: The problem can be worked around by manually creating the required user "liquibase" using the command dbisql -c DBF=.\liquibase.db;UID=lbuser;PWD=LiquibasePass1 "CREATE USER liquibase".
ITs should pass successfully using the user name given in liquibase.sdk.yaml by default, hence without out the need to explicitly create a user named "liquibase".
The test documentation should unambiguously explain that the manual creation of a user named "liquibase" is required.
Liquibase Version
master
Database Vendor & Version
SAP SQL Anywhere 17.0.11
Liquibase Integration
N/A
Liquibase Extensions
N/A
OS and/or Infrastructure Type/Provider
Windows 10 Pro (German)
Additional Context
Standalone engine / Without Testcontainers
Are you willing to submit a PR?
I'm willing to submit a PR (Thank you!)
The text was updated successfully, but these errors were encountered:
mkarg
pushed a commit
to mkarg/liquibase
that referenced
this issue
Jun 21, 2023
…quibase"
Despite the title and description of issue liquibase#4413, the actual cause of
the failing IT was *not* an undocumented IT requirement, but the fact
that the author of the IT (unintentionally) used the static prefix
"liquibase" instead of the dynamic prefix provided by the test driver.
The solution hence is to replace the static prefix by the dynamic
prefix. Hence, there is nothing wrong with the test documentation.
…quibase"
Despite the title and description of issue liquibase#4413, the actual cause of
the failing IT was *not* an undocumented IT requirement, but the fact
that the author of the IT (unintentionally) used the static prefix
"liquibase" instead of the dynamic prefix provided by the test driver.
The solution hence is to replace the static prefix by the dynamic
prefix. Hence, there is nothing wrong with the test documentation.
mkarg
added a commit
to mkarg/liquibase
that referenced
this issue
Jun 21, 2023
…quibase"
Despite the title and description of issue liquibase#4413, the actual cause of
the failing IT was *not* an undocumented IT requirement, but the fact
that the author of the IT (unintentionally) used the static prefix
"liquibase" instead of the dynamic prefix provided by the test driver.
The solution hence is to replace the static prefix by the dynamic
prefix. Hence, there is nothing wrong with the test documentation.
Search first
Description
Using latest SQL Anywhere 17.0.11-7254 as a standalone engine (without using testcontainers) I am trying to execute integration tests, and this is the result:
Apparently the ITs expect the existence of a db user named "liquibase", but unfortunately, no such requirement is told in https://contribute.liquibase.com/code/test-your-code/test-environments/ at all! Even worse, the
username
property by default is set to "lbuser" inliquibase.sdk.yaml
(not to "liquibase") and not overridden inliquibase.sdk.local.yaml
! I think we can do better and clearly describe the requirement to manually create a user name "liquibase" in https://contribute.liquibase.com/code/test-your-code/test-environments/.NB: The problem can be worked around by manually creating the required user "liquibase" using the command
dbisql -c DBF=.\liquibase.db;UID=lbuser;PWD=LiquibasePass1 "CREATE USER liquibase"
.Steps To Reproduce
Expected/Desired Behavior
liquibase.sdk.yaml
by default, hence without out the need to explicitly create a user named "liquibase".Liquibase Version
master
Database Vendor & Version
SAP SQL Anywhere 17.0.11
Liquibase Integration
N/A
Liquibase Extensions
N/A
OS and/or Infrastructure Type/Provider
Windows 10 Pro (German)
Additional Context
Standalone engine / Without Testcontainers
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: