From b97f2fe46180458ec239e26916a276d7c074fa33 Mon Sep 17 00:00:00 2001 From: Pavlo Tytarchuk Date: Wed, 1 Feb 2023 11:57:19 +0100 Subject: [PATCH 1/3] DAT-13180. added .json format changelogs to HarnessNoSqlCompatibility test --- pom.xml | 2 +- .../changelogs/nosql/adminCommand.json | 18 +++ .../changelogs/nosql/createCollection.json | 20 ++++ .../changelogs/nosql/createIndex.json | 93 +++++++++++++++ .../changelogs/nosql/dropCollection.json | 23 ++++ .../changelogs/nosql/dropIndex.json | 111 ++++++++++++++++++ .../changelogs/nosql/insertMany.json | 68 +++++++++++ .../changelogs/nosql/insertOne.json | 42 +++++++ .../changelogs/nosql/runCommand.json | 18 +++ .../changelogs/nosql/runCommand.xml | 2 +- .../mongodb/adminCommand.json | 8 ++ .../mongodb/createCollection.json | 11 ++ .../mongodb/createIndex.json | 24 ++++ .../mongodb/dropCollection.json | 8 ++ .../expectedResultSet/mongodb/dropIndex.json | 24 ++++ .../expectedResultSet/mongodb/insertMany.json | 16 +++ .../expectedResultSet/mongodb/insertOne.json | 16 +++ .../expectedResultSet/mongodb/runCommand.json | 10 +- .../HarnessNoSqlCompatibility.groovy | 3 +- 19 files changed, 513 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/adminCommand.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createIndex.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropCollection.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropIndex.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertMany.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertOne.json create mode 100644 src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.json diff --git a/pom.xml b/pom.xml index ffa50142..31e9efbe 100644 --- a/pom.xml +++ b/pom.xml @@ -248,7 +248,7 @@ maven-surefire-plugin 2.22.2 - false + true plain diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/adminCommand.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/adminCommand.json new file mode 100644 index 00000000..0e8f3383 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/adminCommand.json @@ -0,0 +1,18 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "adminCommand": { + "command": "{ buildInfo: 1 }" + } + } + ], + "rollback": "" + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json new file mode 100644 index 00000000..0c94ede8 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json @@ -0,0 +1,20 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "labels": "test_label", + "context": "test_context", + "comment": "test_comment", + "changes": [ + { + "createCollection": { + "collectionName": "test_collection_json" + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createIndex.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createIndex.json new file mode 100644 index 00000000..a2228053 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createIndex.json @@ -0,0 +1,93 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "createCollection": { + "collectionName": "countries_json" + } + } + ] + } + }, + { + "changeSet": { + "id": "2", + "author": "as", + "changes": [ + { + "insertMany": { + "collectionName": "countries_json", + "documents": { + "$rawJson": [ + { + "_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} + ] + } + } + ] + } + } + } + ], + "rollback": { + "runCommand": { + "command": "{ delete: \"countries_json\", deletes: [{q: { }, limit: 0}] }" + } + } + } + }, + { + "changeSet": { + "id": "3", + "author": "as", + "changes": [ + { + "createIndex": { + "collectionName": "countries_json", + "keys": { + "$rawJson": { + "name": 1, + "type": 1 + } + }, + "options": { + "$rawJson": { + "unique": true, + "name": "ui_countries_json" + } + } + } + } + ] + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropCollection.json new file mode 100644 index 00000000..77a424e6 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropCollection.json @@ -0,0 +1,23 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "createCollection": { + "collectionName": "towns_json" + } + }, + { + "dropCollection": { + "collectionName": "towns_json" + } + } + ], + "rollback": "" + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropIndex.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropIndex.json new file mode 100644 index 00000000..b0cae5de --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/dropIndex.json @@ -0,0 +1,111 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "createCollection": { + "collectionName": "countries_json" + } + } + ] + } + }, + { + "changeSet": { + "id": "2", + "author": "as", + "changes": [ + { + "insertMany": { + "collectionName": "countries_json", + "documents": { + "$rawJson": [ + { + "_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} + ] + } + } + ] + } + } + } + ], + "rollback": { + "runCommand": { + "command": "{ delete: \"countries_json\", deletes: [{q: { }, limit: 0}] }" + } + } + } + }, + { + "changeSet": { + "id": "3", + "author": "as", + "changes": [ + { + "createIndex": { + "collectionName": "countries_json", + "keys": { + "$rawJson": { + "name": 1, + "type": 1 + } + }, + "options": { + "$rawJson": { + "unique": true, + "name": "ui_countries_json" + } + } + } + }, + { + "dropIndex": { + "collectionName": "countries_json", + "keys": { + "$rawJson": { + "name": 1, + "type": 1 + } + }, + "options": { + "$rawJson": { + "unique": true, + "name": "ui_countries_json" + } + } + } + } + ], + "rollback": "" + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertMany.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertMany.json new file mode 100644 index 00000000..5e9c05e3 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertMany.json @@ -0,0 +1,68 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "createCollection": { + "collectionName": "countries_json" + } + } + ] + } + }, + { + "changeSet": { + "id": "2", + "author": "as", + "changes": [ + { + "insertMany": { + "collectionName": "countries_json", + "documents": { + "$rawJson": [ + { + "_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} + ] + } + } + ] + } + } + } + ], + "rollback": { + "runCommand": { + "command": "{ delete: \"countries_json\", deletes: [{q: { }, limit: 0}] }" + } + } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertOne.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertOne.json new file mode 100644 index 00000000..23209748 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/insertOne.json @@ -0,0 +1,42 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "createCollection": { + "collectionName": "towns_json" + } + } + ] + } + }, + { + "changeSet": { + "id": "2", + "author": "as", + "changes": [ + { + "insertOne": { + "collectionName": "towns_json", + "document": { + "$rawJson": { + "name": "New York", + "population": 222000000, + "famousFor": [ "the MOMA", "food", "Derek Jeter" ], + "mayor": { + "name": "Bill de Blasio", + "party": "D" + } + } + } + } + } + ], + "rollback": "" + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.json new file mode 100644 index 00000000..716e8479 --- /dev/null +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.json @@ -0,0 +1,18 @@ +{ + "databaseChangeLog": [ + { + "changeSet": { + "id": "1", + "author": "as", + "changes": [ + { + "runCommand": { + "command": "{ buildInfo: 1 }" + } + } + ], + "rollback": "" + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.xml b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.xml index 612b5d68..a95f6fdd 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.xml +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/runCommand.xml @@ -12,7 +12,7 @@ { - dropAllUsersFromDatabase: 1 + buildInfo: 1 } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/adminCommand.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/adminCommand.json index afdbbf34..02b56f29 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/adminCommand.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/adminCommand.json @@ -6,6 +6,14 @@ "description":"adminCommand", "md5sum":"8:e17342ecb217a7588eb1d33af4fadff4", "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/adminCommand.json", + "author":"as", + "description":"adminCommand", + "md5sum":"8:e17342ecb217a7588eb1d33af4fadff4", + "id":"1", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json index 09693cf2..6886208a 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json @@ -9,6 +9,17 @@ "labels":"createcollectionlabel", "md5sum":"8:6ce62ac2811ee1d17a3a9c6beb9e7140", "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createCollection.json", + "comments":"test_comment", + "author":"as", + "description":"createCollection collectionName=test_collection_json", + "contexts":"test_context", + "labels":"test_label", + "md5sum":"8:aae5fd52e701ca0e2685d722d0616834", + "id":"1", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createIndex.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createIndex.json index 1bb9ea9c..c29db399 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createIndex.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createIndex.json @@ -22,6 +22,30 @@ "description":"createIndex collectionName=countries", "md5sum":"8:93b494d7d641142f6d916ef0a8fd5377", "id":"3", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.json", + "author":"as", + "description":"createCollection collectionName=countries_json", + "md5sum":"8:8434f3e85c2f661325f3056e7fd50950", + "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.json", + "author":"as", + "description":"insertMany collectionName=countries_json", + "md5sum":"8:d265ad391180c1b1c014c5823df8f1eb", + "id":"2", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createIndex.json", + "author":"as", + "description":"createIndex collectionName=countries_json", + "md5sum":"8:4a8eec51d80b71bbdb1d01e361a33d08", + "id":"3", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropCollection.json index d09605f0..4034f1b2 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropCollection.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropCollection.json @@ -6,6 +6,14 @@ "description":"createCollection collectionName=towns; dropCollection collectionName=towns", "md5sum":"8:17ca3575b5b2a8fc8ff685c841c6cdb2", "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/dropCollection.json", + "author":"as", + "description":"createCollection collectionName=towns_json; dropCollection collectionName=towns_json", + "md5sum":"8:a33efc698b455c7502cc37fd2984572d", + "id":"1", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropIndex.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropIndex.json index f9f9f43f..aa254803 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropIndex.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/dropIndex.json @@ -22,6 +22,30 @@ "description":"createIndex collectionName=countries; dropIndex collectionName=countries", "md5sum":"8:cb2d36c90ca2afd7447550178a8d7096", "id":"3", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/dropIndex.json", + "author":"as", + "description":"createCollection collectionName=countries_json", + "md5sum":"8:8434f3e85c2f661325f3056e7fd50950", + "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/dropIndex.json", + "author":"as", + "description":"insertMany collectionName=countries_json", + "md5sum":"8:d265ad391180c1b1c014c5823df8f1eb", + "id":"2", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/dropIndex.json", + "author":"as", + "description":"createIndex collectionName=countries_json; dropIndex collectionName=countries_json", + "md5sum":"8:cb76d038e4a29be1fe784be0d519771d", + "id":"3", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertMany.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertMany.json index fa367aef..42a0f67a 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertMany.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertMany.json @@ -14,6 +14,22 @@ "description":"insertMany collectionName=countries", "md5sum":"8:72eb957ce141d1eda7c6918f23124cda", "id":"2", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/insertMany.json", + "author":"as", + "description":"createCollection collectionName=countries_json", + "md5sum":"8:8434f3e85c2f661325f3056e7fd50950", + "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/insertMany.json", + "author":"as", + "description":"insertMany collectionName=countries_json", + "md5sum":"8:d265ad391180c1b1c014c5823df8f1eb", + "id":"2", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertOne.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertOne.json index 85069176..1c017836 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertOne.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/insertOne.json @@ -19,6 +19,22 @@ "labels":"insertonelabel", "md5sum":"8:a6e8c30b5cdba0667b8cc1988ca04c09", "id":"2", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/insertOne.json", + "author":"as", + "description":"createCollection collectionName=towns_json", + "md5sum":"8:d9a9bab47a6eab608f53ace261a5b9e7", + "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/insertOne.json", + "author":"as", + "description":"insertOne collectionName=towns_json", + "md5sum":"8:59c5bd17b1f517c4dfd90ae3ecd756e9", + "id":"2", "tag":"test_tag", "execType":"EXECUTED" } diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/runCommand.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/runCommand.json index 7fbdb53c..4f6437ad 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/runCommand.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/runCommand.json @@ -4,7 +4,15 @@ "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/runCommand.xml", "author":"as", "description":"runCommand", - "md5sum":"8:e912107c9bbb2f759ec01d51bb3e19cf", + "md5sum":"8:d01587a51e40ebc07fbd995aa1cb7afe", + "id":"1", + "execType":"EXECUTED" + }, + { + "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/runCommand.json", + "author":"as", + "description":"runCommand", + "md5sum":"8:a9f789a8482003bb149da01cdab92707", "id":"1", "tag":"test_tag", "execType":"EXECUTED" diff --git a/src/test/groovy/liquibase/harness/compatibility/foundational/HarnessNoSqlCompatibility.groovy b/src/test/groovy/liquibase/harness/compatibility/foundational/HarnessNoSqlCompatibility.groovy index 7bb69fad..6480b012 100644 --- a/src/test/groovy/liquibase/harness/compatibility/foundational/HarnessNoSqlCompatibility.groovy +++ b/src/test/groovy/liquibase/harness/compatibility/foundational/HarnessNoSqlCompatibility.groovy @@ -42,6 +42,7 @@ class HarnessNoSqlCompatibility extends Specification { String basePath = "liquibase/harness/compatibility/foundational/changelogs/nosql" ArrayList changelogList = new ArrayList<>() changelogList.add("${basePath}/${testInput.change}.xml") + changelogList.add("${basePath}/${testInput.change}.json") boolean shouldRunChangeSet @@ -56,7 +57,7 @@ class HarnessNoSqlCompatibility extends Specification { shouldRunChangeSet = connection instanceof MongoConnection assert shouldRunChangeSet: "Database ${testInput.databaseName} ${testInput.version} is offline!" - and: "execute Liquibase validate command to ensure a chagelog is valid" + and: "execute Liquibase validate command to ensure that changelog is valid" for (int i = 0; i < changelogList.size(); i++) { argsMap.put("changeLogFile", changelogList.get(i)) MongoTestUtils.executeCommandScope("validate", argsMap) From 29de326d2654bf168ff959b2363c0d729f0fb146 Mon Sep 17 00:00:00 2001 From: Pavlo Tytarchuk Date: Wed, 1 Feb 2023 11:58:06 +0100 Subject: [PATCH 2/3] DAT-13180. commented redirectTestOutputToFile param in pom --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 31e9efbe..70da8250 100644 --- a/pom.xml +++ b/pom.xml @@ -249,7 +249,7 @@ 2.22.2 - true + plain From 5c950e54bf583271fc9a0006f942f02bfb2a20b5 Mon Sep 17 00:00:00 2001 From: Pavlo Tytarchuk Date: Wed, 1 Feb 2023 12:17:23 +0100 Subject: [PATCH 3/3] DAT-13180. uncommented redirectTestOutputToFile param in pom. small changes in test data --- pom.xml | 2 +- .../foundational/changelogs/nosql/createCollection.json | 2 +- .../expectedResultSet/mongodb/createCollection.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 70da8250..31e9efbe 100644 --- a/pom.xml +++ b/pom.xml @@ -249,7 +249,7 @@ 2.22.2 - + true plain diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json index 0c94ede8..73f69b77 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/changelogs/nosql/createCollection.json @@ -10,7 +10,7 @@ "changes": [ { "createCollection": { - "collectionName": "test_collection_json" + "collectionName": "towns_json" } } ] diff --git a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json index 6886208a..004819af 100644 --- a/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json +++ b/src/main/resources/liquibase/harness/compatibility/foundational/expectedResultSet/mongodb/createCollection.json @@ -15,10 +15,10 @@ "fileName":"liquibase\/harness\/compatibility\/foundational\/changelogs\/nosql\/createCollection.json", "comments":"test_comment", "author":"as", - "description":"createCollection collectionName=test_collection_json", + "description":"createCollection collectionName=towns_json", "contexts":"test_context", "labels":"test_label", - "md5sum":"8:aae5fd52e701ca0e2685d722d0616834", + "md5sum":"8:d9a9bab47a6eab608f53ace261a5b9e7", "id":"1", "tag":"test_tag", "execType":"EXECUTED"