forked from alexandru-slobodcicov/liquibase-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 46
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
DAT-12932. mongoDb foundational test. #326
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d20d433
DAT-12932. mongoDb foundational test. wip.
PavloTytarchuk 93eb159
DAT-12932. added more mongodb supported changetypes to the noSqlCompa…
PavloTytarchuk 7d2feeb
DAT-12932. realligned test harness step in gha workflow file
PavloTytarchuk 7b17883
DAT-12932. wip. adding harness test to CI/CD
PavloTytarchuk 8e6d311
DAT-12932. wip. updated gmaven, groovy-all and spock-core dependecies…
PavloTytarchuk e10cb7d
DAT-12932. wip. renamed harness nosql test
PavloTytarchuk fcc1ceb
DAT-12932. wip. removed redundant dependency.
PavloTytarchuk b89113e
DAT-12932. wip. made requested changes. added spock reports for the H…
PavloTytarchuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
### Maven ### | ||
!.mvn/wrapper/maven-wrapper.jar | ||
target/ | ||
build/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
|
This file contains 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
19 changes: 19 additions & 0 deletions
19
.../resources/liquibase/harness/compatibility/foundational/changelogs/nosql/adminCommand.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
<changeSet id="1" author="as"> | ||
<ext:adminCommand> | ||
<ext:command> | ||
{ buildInfo: 1 } | ||
</ext:command> | ||
</ext:adminCommand> | ||
<rollback/> | ||
</changeSet> | ||
</databaseChangeLog> |
16 changes: 16 additions & 0 deletions
16
...ources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
<changeSet id="1" author="as" labels="createCollectionLabel" context="createCollectionContext"> | ||
<comment>create_collection_comment</comment> | ||
<ext:createCollection collectionName="towns"/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
76 changes: 76 additions & 0 deletions
76
...n/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createIndex.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
|
||
<changeSet id="1" author="as"> | ||
<ext:createCollection collectionName="countries"/> | ||
</changeSet> | ||
|
||
|
||
<changeSet id="2" author="as"> | ||
<ext:insertMany collectionName="countries"> | ||
<ext:documents> | ||
[ | ||
{ | ||
_id : "us", | ||
name : "United States", | ||
exports : { | ||
foods : [ | ||
{name : "bacon", tasty : "true" }, | ||
{name : "burger"} | ||
] | ||
} | ||
}, | ||
{ | ||
_id : "ca", | ||
name : "Canada", | ||
exports : { | ||
foods : [ | ||
{name : "bacon", tasty : false }, | ||
{name : "syrup", tasty : true} | ||
] | ||
} | ||
}, | ||
{ | ||
_id : "mx", | ||
name : "Mexico", | ||
exports : { | ||
foods : [ | ||
{name : "salsa", tasty : true, condiment : true} | ||
] | ||
} | ||
} | ||
] | ||
</ext:documents> | ||
</ext:insertMany> | ||
|
||
<rollback> | ||
<ext:runCommand> | ||
<ext:command> | ||
{ | ||
delete: "countries", | ||
deletes: [ { q: { }, limit: 0 } ] | ||
} | ||
</ext:command> | ||
</ext:runCommand> | ||
</rollback> | ||
</changeSet> | ||
|
||
<changeSet id="3" author="as"> | ||
<ext:createIndex collectionName="countries"> | ||
<ext:keys> | ||
{ name: 1, type: 1} | ||
</ext:keys> | ||
<ext:options> | ||
{unique: true, name: "ui_countries"} | ||
</ext:options> | ||
</ext:createIndex> | ||
</changeSet> | ||
</databaseChangeLog> |
17 changes: 17 additions & 0 deletions
17
...esources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropCollection.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
<changeSet id="1" author="as"> | ||
<ext:createCollection collectionName="towns"/> | ||
<ext:dropCollection collectionName="towns"/> | ||
<rollback/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
88 changes: 88 additions & 0 deletions
88
...ain/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropIndex.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | ||
|
||
|
||
<changeSet id="1" author="as"> | ||
<ext:createCollection collectionName="countries"/> | ||
</changeSet> | ||
|
||
|
||
<changeSet id="2" author="as"> | ||
<ext:insertMany collectionName="countries"> | ||
<ext:documents> | ||
[ | ||
{ | ||
_id : "us", | ||
name : "United States", | ||
exports : { | ||
foods : [ | ||
{name : "bacon", tasty : "true" }, | ||
{name : "burger"} | ||
] | ||
} | ||
}, | ||
{ | ||
_id : "ca", | ||
name : "Canada", | ||
exports : { | ||
foods : [ | ||
{name : "bacon", tasty : false }, | ||
{name : "syrup", tasty : true} | ||
] | ||
} | ||
}, | ||
{ | ||
_id : "mx", | ||
name : "Mexico", | ||
exports : { | ||
foods : [ | ||
{name : "salsa", tasty : true, condiment : true} | ||
] | ||
} | ||
} | ||
] | ||
</ext:documents> | ||
</ext:insertMany> | ||
|
||
<rollback> | ||
<ext:runCommand> | ||
<ext:command> | ||
{ | ||
delete: "countries", | ||
deletes: [ { q: { }, limit: 0 } ] | ||
} | ||
</ext:command> | ||
</ext:runCommand> | ||
</rollback> | ||
</changeSet> | ||
|
||
<changeSet id="3" author="as"> | ||
<ext:createIndex collectionName="countries"> | ||
<ext:keys> | ||
{ name: 1, type: 1} | ||
</ext:keys> | ||
<ext:options> | ||
{unique: true, name: "ui_countries"} | ||
</ext:options> | ||
</ext:createIndex> | ||
|
||
<ext:dropIndex collectionName="countries"> | ||
<ext:keys> | ||
{ name: 1, type: 1} | ||
</ext:keys> | ||
<ext:options> | ||
{unique: true, name: "ui_countries"} | ||
</ext:options> | ||
</ext:dropIndex> | ||
|
||
<rollback/> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might be the way to allow Java/groovy/spock updates in test-harness itself