diff --git a/audits/README.md b/audits/README.md index e2c023f5b11..f0b42b7afd2 100644 --- a/audits/README.md +++ b/audits/README.md @@ -164,12 +164,12 @@ These remain because coverage has not fully moved off them yet. Each one goes wh its users does. - **Core's legacy fixture loader** (`data.json`, `action.json`, `expected.json` through - `TemplatedTestBase`). It runs 205 legacy fixture directories; 351 cases have moved to the runner. - Of the 205: + `TemplatedTestBase`). It runs 193 legacy fixture directories; 363 cases have moved to the runner. + Of the 193: - 98 are still locked: 96 have no documented source that reproduces them, and are listed under `unresolved` in `form-review.json`; - 23 are tracked as legacy-only in `cutover.json`; - - 81 never-locked fixtures have no pinned reference. + - 69 never-locked fixtures have no pinned reference. - **The legacy RST extractor** (`rst/`, `model/CodeBlock`). Cutover and the example inventory read pages through it. It goes once the structured parser (`scenarios/`) owns example extraction and resolves tested code snippets, which hold most stage examples. diff --git a/audits/catalog/fixture-migration.json b/audits/catalog/fixture-migration.json index e28103de374..ca12becfc33 100644 --- a/audits/catalog/fixture-migration.json +++ b/audits/catalog/fixture-migration.json @@ -19031,6 +19031,834 @@ "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/and/andQueriesWithMultipleExpressionsSpecifyingTheSameOperator/scenario.json", "scenarioSha256" : "81cfdb08330b35253eaed197446465985aab7b32b73851cea29a2d2e68644aba", "test" : "dev.morphia.test.query.filters.TestAnd#testAndQueriesWithMultipleExpressionsSpecifyingTheSameOperator" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "7e2d6102d1df3fcc72d33d06bbea97b79f00bd207fbcf7ec0d0df149464aa718", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "fixture" : "query/filters/bitsAllClear/binDataBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllClear(\"a\", new byte[] { 32 })));\n }", + "legacyBodySha256" : "88592d7870f1bd9e1995e96fd1f5468f41c20937370524470fcbb5d034f44751", + "legacyMethod" : "testBinDataBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "7e2d6102d1df3fcc72d33d06bbea97b79f00bd207fbcf7ec0d0df149464aa718", + "text" : "db.collection.find( { a: { $bitsAllClear: BinData(0, \"IA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAllClear/binDataBitmask", + "fixtureFiles" : { + "action.json" : "7e2d6102d1df3fcc72d33d06bbea97b79f00bd207fbcf7ec0d0df149464aa718", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json", + "scenarioSha256" : "987233f6aecea1b0032daab89a8c30e4b27a133e6b643daf7bb294d108482400", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testBinDataBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "bf72e0da79277e115bb4b4bb4bf5d4633177e183c4f0e6569239e7ea1e92b3bd", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "fixture" : "query/filters/bitsAllClear/bitPositionArray", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllClear(\"a\", new int[] { 1, 5 })));\n }", + "legacyBodySha256" : "4a5e1dc9ba71ab15a5d59ae0b4326739e88345d16ceb759f7566af9e49f2cfb5", + "legacyMethod" : "testBitPositionArray", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "bf72e0da79277e115bb4b4bb4bf5d4633177e183c4f0e6569239e7ea1e92b3bd", + "text" : "db.collection.find( { a: { $bitsAllClear: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAllClear/bitPositionArray", + "fixtureFiles" : { + "action.json" : "bf72e0da79277e115bb4b4bb4bf5d4633177e183c4f0e6569239e7ea1e92b3bd", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json", + "scenarioSha256" : "3bb3b70262f6b39dfae7aa99abeeb614751b57ae34502242f16d89d4d23a0bf5", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testBitPositionArray" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "46f83d59ffc3c7566bfb01b0445595a5f3159c30ebe41a6e2ddca951dc650307", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "fixture" : "query/filters/bitsAllClear/integerBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllClear(\"a\", 35)));\n }", + "legacyBodySha256" : "73e18ea64f016d0b4722fb72dade9f4782a5282871edd31fca48c0a9b8377c1c", + "legacyMethod" : "testIntegerBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "46f83d59ffc3c7566bfb01b0445595a5f3159c30ebe41a6e2ddca951dc650307", + "text" : "db.collection.find( { a: { $bitsAllClear: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAllClear/integerBitmask", + "fixtureFiles" : { + "action.json" : "46f83d59ffc3c7566bfb01b0445595a5f3159c30ebe41a6e2ddca951dc650307", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json", + "scenarioSha256" : "36200eac51e74286ead2c4d97fb1372b636601ac0dd582e16347b44f685d4fa9", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testIntegerBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "295cac61b1445cb5a8c36670298fce8298549b0174b22c77fbef6a260f012ad2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "b4a20a1fc7a5a94b754d03d47aa4c0162e2944086483e5297f0dd15cf278ff28", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "fixture" : "query/filters/bitsAllSet/binDataBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllSet(\"a\", new byte[] { 48 })));\n }", + "legacyBodySha256" : "df4d7f79ffef909e3fd0632bbecea3e7d295c6fe9f61855a182b5546546b7a18", + "legacyMethod" : "testBinDataBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllSet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "295cac61b1445cb5a8c36670298fce8298549b0174b22c77fbef6a260f012ad2", + "text" : "db.collection.find( { a: { $bitsAllSet: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "b4a20a1fc7a5a94b754d03d47aa4c0162e2944086483e5297f0dd15cf278ff28", + "text" : "{ _id: 1, a: 54, binaryValueofA: \"00110110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAllSet/binDataBitmask", + "fixtureFiles" : { + "action.json" : "295cac61b1445cb5a8c36670298fce8298549b0174b22c77fbef6a260f012ad2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "b4a20a1fc7a5a94b754d03d47aa4c0162e2944086483e5297f0dd15cf278ff28", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json", + "scenarioSha256" : "262a36aacd368982263b577b85ae85b250106e8c2b230fa888c8384b6ee3f1c8", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testBinDataBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "89e31d49a9ea63d724b97e97587109903a8539c3a7573b4a0dc60b8760df334f", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "fixture" : "query/filters/bitsAllSet/bitPositionArray", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllSet(\"a\", new int[] { 1, 5 })));\n }", + "legacyBodySha256" : "de56403dd2f50f381bb28ad37eff31a02c624a540d20ff602a6bcc8c5b51d3f6", + "legacyMethod" : "testBitPositionArray", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllSet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "89e31d49a9ea63d724b97e97587109903a8539c3a7573b4a0dc60b8760df334f", + "text" : "db.collection.find( { a: { $bitsAllSet: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAllSet/bitPositionArray", + "fixtureFiles" : { + "action.json" : "89e31d49a9ea63d724b97e97587109903a8539c3a7573b4a0dc60b8760df334f", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json", + "scenarioSha256" : "b026bae3c0203949fc87a2d9e6e12345a05ea5a98de39309d795d078f6a56567", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testBitPositionArray" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "c427e083469c6b9410b03b51f966b044340839784b9ff30c34eef1bef7cda9c2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "ffd8dd0c29eaa7fed1d36bd6cf87804799b2f3775d17e2268c2e12720c36156e", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "fixture" : "query/filters/bitsAllSet/integerBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAllSet(\"a\", 50)));\n }", + "legacyBodySha256" : "931c16ceec3549d19fe2290027e2fe64a8241a5c54ac7ac366c952ab5e9fd000", + "legacyMethod" : "testIntegerBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAllSet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "c427e083469c6b9410b03b51f966b044340839784b9ff30c34eef1bef7cda9c2", + "text" : "db.collection.find( { a: { $bitsAllSet: 50 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "ffd8dd0c29eaa7fed1d36bd6cf87804799b2f3775d17e2268c2e12720c36156e", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAllSet/integerBitmask", + "fixtureFiles" : { + "action.json" : "c427e083469c6b9410b03b51f966b044340839784b9ff30c34eef1bef7cda9c2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "ffd8dd0c29eaa7fed1d36bd6cf87804799b2f3775d17e2268c2e12720c36156e", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json", + "scenarioSha256" : "80a2bc067de5207ee7b77f4aa764fc300e3fab9310486bbfd8dfc254bf70a9ee", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testIntegerBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "ad9bf044a12d2a5c90c5cdf4977f2c130bdfceeff84ad704f1d3316e5e4d7b5b", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "be438998c43b5be0fca519f7977b02c4867cc105080b05b2bdd562c10031066a", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "fixture" : "query/filters/bitsAnyClear/binDataBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnyClear(\"a\", new byte[] { 48 })));\n }", + "legacyBodySha256" : "9f2edffc3a9f3b427d6f0e81dbf43b4345394293c56e01c5f205d552c9ff90b4", + "legacyMethod" : "testBinDataBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnyClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "ad9bf044a12d2a5c90c5cdf4977f2c130bdfceeff84ad704f1d3316e5e4d7b5b", + "text" : "db.collection.find( { a: { $bitsAnyClear: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "be438998c43b5be0fca519f7977b02c4867cc105080b05b2bdd562c10031066a", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAnyClear/binDataBitmask", + "fixtureFiles" : { + "action.json" : "ad9bf044a12d2a5c90c5cdf4977f2c130bdfceeff84ad704f1d3316e5e4d7b5b", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "be438998c43b5be0fca519f7977b02c4867cc105080b05b2bdd562c10031066a", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json", + "scenarioSha256" : "458fa543a69e6fc6fec6d8b4db807a802d09a1992e79aef7fb61eb5cd20d6233", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testBinDataBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "15c571d095dd0f6cf27fe8fe9644188d3a00e8569cc3da49266d9368c2377452", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "0d88a02cc24602bf771cc40e75a5c630b87c1487b3e700a9ad873799be5d1d0e", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "fixture" : "query/filters/bitsAnyClear/bitPositionArray", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnyClear(\"a\", new int[] { 1, 5 })));\n }", + "legacyBodySha256" : "a753f949b2191f9e31637d1d90eebfe74a5426c133cd8ea03e72070aeda23227", + "legacyMethod" : "testBitPositionArray", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnyClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "15c571d095dd0f6cf27fe8fe9644188d3a00e8569cc3da49266d9368c2377452", + "text" : "db.collection.find( { a: { $bitsAnyClear: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "0d88a02cc24602bf771cc40e75a5c630b87c1487b3e700a9ad873799be5d1d0e", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAnyClear/bitPositionArray", + "fixtureFiles" : { + "action.json" : "15c571d095dd0f6cf27fe8fe9644188d3a00e8569cc3da49266d9368c2377452", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "0d88a02cc24602bf771cc40e75a5c630b87c1487b3e700a9ad873799be5d1d0e", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json", + "scenarioSha256" : "91badfca0b2a0c2ed6f260bb7475b354597a7d218f975eb13b37d4113af4a405", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testBitPositionArray" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "60c07f0a3a856349962f97281674230ac317211544706009a6d4b46e5a871d09", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "fixture" : "query/filters/bitsAnyClear/integerBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnyClear(\"a\", 35)));\n }", + "legacyBodySha256" : "bc81a7e94941b56aeb265e93369053202457a4b20ff3a9c1bfd4a49332614428", + "legacyMethod" : "testIntegerBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnyClear", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "60c07f0a3a856349962f97281674230ac317211544706009a6d4b46e5a871d09", + "text" : "db.collection.find( { a: { $bitsAnyClear: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAnyClear/integerBitmask", + "fixtureFiles" : { + "action.json" : "60c07f0a3a856349962f97281674230ac317211544706009a6d4b46e5a871d09", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json", + "scenarioSha256" : "fe57afdb32dd002fe2c2986bc1827219cb1e52098810ab8edc492e5e4ed14daa", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testIntegerBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "b532e69337963de6331f51913caf8041decc126e76a628c839dd3cfb83e3104e", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "fixture" : "query/filters/bitsAnySet/binDataBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnySet(\"a\", new byte[] { 48 })));\n }", + "legacyBodySha256" : "ca3e56692cf58c16dacd2ba5960ffa331a395acf497adae280695f778cc773a7", + "legacyMethod" : "testBinDataBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnySet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "b532e69337963de6331f51913caf8041decc126e76a628c839dd3cfb83e3104e", + "text" : "db.collection.find( { a: { $bitsAnySet: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAnySet/binDataBitmask", + "fixtureFiles" : { + "action.json" : "b532e69337963de6331f51913caf8041decc126e76a628c839dd3cfb83e3104e", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json", + "scenarioSha256" : "e999e63ec7435c4206fa42890fac3924337ca308964a97e5b3230b0b71a77544", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testBinDataBitmask" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "ad13984b4dcb507dca9002bf6a74d5ade85fad589e95dd0f485bc995edd3a60c", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "fixture" : "query/filters/bitsAnySet/bitPositionArray", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnySet(\"a\", new int[] { 1, 5 })));\n }", + "legacyBodySha256" : "1378246f4cdbdf1c09256d53e5526eaad51b8941cb19f948ee1416201b435016", + "legacyMethod" : "testBitPositionArray", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnySet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "ad13984b4dcb507dca9002bf6a74d5ade85fad589e95dd0f485bc995edd3a60c", + "text" : "db.collection.find( { a: { $bitsAnySet: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAnySet/bitPositionArray", + "fixtureFiles" : { + "action.json" : "ad13984b4dcb507dca9002bf6a74d5ade85fad589e95dd0f485bc995edd3a60c", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json", + "scenarioSha256" : "66728f9cb4f525fb3e8644770d0dde277459f645d2d859d4d5db565c134ee7ba", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testBitPositionArray" + }, { + "bodyEdit" : null, + "fileEdits" : { + "data.json" : { + "fromSha256" : "3413e8ba8893122ee55df1ca8af435f233b396a991ca9b5515e02dad3db702c5", + "reason" : "The third document's a is 20, as the page's mongosh insert stores it (an Int32); the fixture had 20.0, a Double, with no lock recording why." + } + }, + "files" : { + "action.json" : "02b964a72f8323c7d1536465ddab78f7122ca51ecf97e0e43f8e05d8365b5622", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "fixture" : "query/filters/bitsAnySet/integerBitmask", + "kind" : "CONVERTED", + "legacyBody" : "{\n testQuery((query) -> query.filter(bitsAnySet(\"a\", 35)));\n }", + "legacyBodySha256" : "1ab018fcadac225c4191405eeb3eb1b7290d8a7673e7738c14831395b8e98842", + "legacyMethod" : "testIntegerBitmask", + "legacyType" : "dev.morphia.test.query.filters.TestBitsAnySet", + "options" : [ ], + "ordered" : true, + "override" : { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "02b964a72f8323c7d1536465ddab78f7122ca51ecf97e0e43f8e05d8365b5622", + "text" : "db.collection.find( { a: { $bitsAnySet: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAnySet/integerBitmask", + "fixtureFiles" : { + "action.json" : "02b964a72f8323c7d1536465ddab78f7122ca51ecf97e0e43f8e05d8365b5622", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, + "scenario" : "core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json", + "scenarioSha256" : "b95bcc316ae12aba658884bafec3b4a88903d8331115c4dcd730a6f993014a55", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testIntegerBitmask" }, { "bodyEdit" : null, "files" : { diff --git a/audits/catalog/legacy-references.json b/audits/catalog/legacy-references.json index 65df91f6b23..d95adad70b9 100644 --- a/audits/catalog/legacy-references.json +++ b/audits/catalog/legacy-references.json @@ -7827,6 +7827,522 @@ "relation" : "AT_ORIGIN" }, "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "7e2d6102d1df3fcc72d33d06bbea97b79f00bd207fbcf7ec0d0df149464aa718", + "text" : "db.collection.find( { a: { $bitsAllClear: BinData(0, \"IA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAllClear/binDataBitmask", + "fixtureFiles" : { + "action.json" : "7e2d6102d1df3fcc72d33d06bbea97b79f00bd207fbcf7ec0d0df149464aa718", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "bf72e0da79277e115bb4b4bb4bf5d4633177e183c4f0e6569239e7ea1e92b3bd", + "text" : "db.collection.find( { a: { $bitsAllClear: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAllClear/bitPositionArray", + "fixtureFiles" : { + "action.json" : "bf72e0da79277e115bb4b4bb4bf5d4633177e183c4f0e6569239e7ea1e92b3bd", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "46f83d59ffc3c7566bfb01b0445595a5f3159c30ebe41a6e2ddca951dc650307", + "text" : "db.collection.find( { a: { $bitsAllClear: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAllClear/integerBitmask", + "fixtureFiles" : { + "action.json" : "46f83d59ffc3c7566bfb01b0445595a5f3159c30ebe41a6e2ddca951dc650307", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "a4ba71678c15d5264670811305a39a97fea2c59e6ec1eaf33964e06ef7858f6f", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", + "pageBlob" : "effe7d1f201aee463d171fa7038824f2a865ed04", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "295cac61b1445cb5a8c36670298fce8298549b0174b22c77fbef6a260f012ad2", + "text" : "db.collection.find( { a: { $bitsAllSet: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "b4a20a1fc7a5a94b754d03d47aa4c0162e2944086483e5297f0dd15cf278ff28", + "text" : "{ _id: 1, a: 54, binaryValueofA: \"00110110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAllSet/binDataBitmask", + "fixtureFiles" : { + "action.json" : "295cac61b1445cb5a8c36670298fce8298549b0174b22c77fbef6a260f012ad2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "b4a20a1fc7a5a94b754d03d47aa4c0162e2944086483e5297f0dd15cf278ff28", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "89e31d49a9ea63d724b97e97587109903a8539c3a7573b4a0dc60b8760df334f", + "text" : "db.collection.find( { a: { $bitsAllSet: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAllSet/bitPositionArray", + "fixtureFiles" : { + "action.json" : "89e31d49a9ea63d724b97e97587109903a8539c3a7573b4a0dc60b8760df334f", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "c427e083469c6b9410b03b51f966b044340839784b9ff30c34eef1bef7cda9c2", + "text" : "db.collection.find( { a: { $bitsAllSet: 50 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "ffd8dd0c29eaa7fed1d36bd6cf87804799b2f3775d17e2268c2e12720c36156e", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAllSet/integerBitmask", + "fixtureFiles" : { + "action.json" : "c427e083469c6b9410b03b51f966b044340839784b9ff30c34eef1bef7cda9c2", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "ffd8dd0c29eaa7fed1d36bd6cf87804799b2f3775d17e2268c2e12720c36156e", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", + "pageBlob" : "a42e9ed0cc32e891ca6377ca8e517560c2e1739d", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAllSet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "ad9bf044a12d2a5c90c5cdf4977f2c130bdfceeff84ad704f1d3316e5e4d7b5b", + "text" : "db.collection.find( { a: { $bitsAnyClear: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "be438998c43b5be0fca519f7977b02c4867cc105080b05b2bdd562c10031066a", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAnyClear/binDataBitmask", + "fixtureFiles" : { + "action.json" : "ad9bf044a12d2a5c90c5cdf4977f2c130bdfceeff84ad704f1d3316e5e4d7b5b", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "be438998c43b5be0fca519f7977b02c4867cc105080b05b2bdd562c10031066a", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "15c571d095dd0f6cf27fe8fe9644188d3a00e8569cc3da49266d9368c2377452", + "text" : "db.collection.find( { a: { $bitsAnyClear: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "0d88a02cc24602bf771cc40e75a5c630b87c1487b3e700a9ad873799be5d1d0e", + "text" : "{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAnyClear/bitPositionArray", + "fixtureFiles" : { + "action.json" : "15c571d095dd0f6cf27fe8fe9644188d3a00e8569cc3da49266d9368c2377452", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "0d88a02cc24602bf771cc40e75a5c630b87c1487b3e700a9ad873799be5d1d0e", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "60c07f0a3a856349962f97281674230ac317211544706009a6d4b46e5a871d09", + "text" : "db.collection.find( { a: { $bitsAnyClear: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAnyClear/integerBitmask", + "fixtureFiles" : { + "action.json" : "60c07f0a3a856349962f97281674230ac317211544706009a6d4b46e5a871d09", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "5bf0e04dd403bd1ef21eda74577dd97365819bce", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnyClear.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "b532e69337963de6331f51913caf8041decc126e76a628c839dd3cfb83e3104e", + "text" : "db.collection.find( { a: { $bitsAnySet: BinData(0, \"MA==\") } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 2, \"a\" : 20, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 3, \"a\" : 20.0, \"binaryValueofA\" : \"00010100\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "BinData Bitmask", + "fixture" : "query/filters/bitsAnySet/binDataBitmask", + "fixtureFiles" : { + "action.json" : "b532e69337963de6331f51913caf8041decc126e76a628c839dd3cfb83e3104e", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "e6d431b08e059905512fab17afa5658d4116d6d015cbcf2754810aaf76ac9b65", + "name" : "50333ed01b0270ec629fe2c3f0520495e0fb39de114fe8e0c243e72a2ba06164" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "ad13984b4dcb507dca9002bf6a74d5ade85fad589e95dd0f485bc995edd3a60c", + "text" : "db.collection.find( { a: { $bitsAnySet: [ 1, 5 ] } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Bit Position Array", + "fixture" : "query/filters/bitsAnySet/bitPositionArray", + "fixtureFiles" : { + "action.json" : "ad13984b4dcb507dca9002bf6a74d5ade85fad589e95dd0f485bc995edd3a60c", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "aa08f2e6d8e1623ed20dc2af71a8f01a7daf8d5d7cf84d321ba6e1ec6ac34fae" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] + }, { + "blocks" : [ { + "role" : "ACTION", + "sha256" : "02b964a72f8323c7d1536465ddab78f7122ca51ecf97e0e43f8e05d8365b5622", + "text" : "db.collection.find( { a: { $bitsAnySet: 35 } } )" + }, { + "role" : "DATA", + "sha256" : "396e48ff38b3c46971f463feb6b190a4e6361088fbfaecd9d69c507cc92c8633", + "text" : "db.collection.insertMany([\n { _id: 1, a: 54, binaryValueofA: \"00110110\" },\n { _id: 2, a: 20, binaryValueofA: \"00010100\" },\n { _id: 3, a: 20.0, binaryValueofA: \"00010100\" },\n { _id: 4, a: BinData(0, \"Zg==\"), binaryValueofA: \"01100110\" }\n])" + }, { + "role" : "EXPECTED", + "sha256" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "text" : "{ \"_id\" : 1, \"a\" : 54, \"binaryValueofA\" : \"00110110\" }\n{ \"_id\" : 4, \"a\" : BinData(0,\"Zg==\"), \"binaryValueofA\" : \"01100110\" }" + } ], + "collections" : { }, + "corrections" : [ ], + "example" : "Integer Bitmask", + "fixture" : "query/filters/bitsAnySet/integerBitmask", + "fixtureFiles" : { + "action.json" : "02b964a72f8323c7d1536465ddab78f7122ca51ecf97e0e43f8e05d8365b5622", + "data.json" : "9e73e8772cf2a4556ce9913a5c52836d94fa285cd9695c0333e78286c6757088", + "expected.json" : "9bd47bb152c462f59d780aa2880d4563d40a79e84abe33c0381cac6329a34b83", + "name" : "0a80eb47e534935e3d7ec0571cc9d43d19ee7717d1164c03261ee0c0a8728370" + }, + "includes" : [ { + "blob" : "afbd145c74b39307f276191e848f7b1fd3d4abfc", + "path" : "source/includes/extracts-fact-query-bitwise.yaml" + }, { + "blob" : "8c0e5bd69b54bae71656f0530221d81ecc617c2e", + "path" : "source/includes/fact-bindata-endian.rst" + } ], + "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", + "pageBlob" : "d520b515dec6566e81ed71559966fde21a97539f", + "retiredLock" : null, + "retypes" : [ ], + "rules" : [ ], + "shape" : "FIND", + "source" : { + "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path" : "source/reference/operator/query/bitsAnySet.txt", + "relation" : "AT_ORIGIN" + }, + "unexpandedIncludes" : [ ] }, { "blocks" : [ { "role" : "ACTION", @@ -10615,12 +11131,12 @@ "gap.NO_MATCHING_EXAMPLE" : 14, "gap.PAGE_UNSUPPORTED" : 0, "gap.REJECTED" : 0, - "gap.RESIDUAL_DIFFERENCE" : 21, + "gap.RESIDUAL_DIFFERENCE" : 9, "gap.SOURCE_UNSUPPORTED" : 27, - "references" : 239, + "references" : 251, "references.afterOrigin" : 0, "references.printed" : 1, - "unresolved" : 81 + "unresolved" : 69 }, "unresolved" : [ { "detail" : "UNSUPPORTED_AST", @@ -11132,126 +11648,6 @@ "path" : "source/reference/operator/aggregation/unionWith.txt", "relation" : "AT_ORIGIN" } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllClear/binDataBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllClear/bitPositionArray", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllClear/integerBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0f2800205eb2f4bc77951cd5873bfd569753f142", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllSet/binDataBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllSet.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllSet/bitPositionArray", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllSet.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAllSet/integerBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "0d6bb0d38d13759baa9571fd1cf6c82d4fda74c1", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAllSet.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnyClear/binDataBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnyClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnyClear/bitPositionArray", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnyClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnyClear/integerBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnyClear.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnySet/binDataBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnySet.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnySet/bitPositionArray", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnySet.txt", - "relation" : "AT_ORIGIN" - } - }, { - "detail" : "data.json TYPE at /2/a", - "fixture" : "query/filters/bitsAnySet/integerBitmask", - "gap" : "RESIDUAL_DIFFERENCE", - "origin" : "74483d2d9c9a6a475ee0531f55b365f7b18bd8af", - "source" : { - "commit" : "1cf4196013fa93644ac656e716874c8f6d9248b6", - "path" : "source/reference/operator/query/bitsAnySet.txt", - "relation" : "AT_ORIGIN" - } }, { "detail" : "not one test helper", "fixture" : "query/filters/comment/attachACommentToAnAggregationExpression", diff --git a/audits/src/main/kotlin/dev/morphia/audits/repairs/FixtureMigration.kt b/audits/src/main/kotlin/dev/morphia/audits/repairs/FixtureMigration.kt index 0eafa2d8c84..d43030b41de 100644 --- a/audits/src/main/kotlin/dev/morphia/audits/repairs/FixtureMigration.kt +++ b/audits/src/main/kotlin/dev/morphia/audits/repairs/FixtureMigration.kt @@ -1,5 +1,6 @@ package dev.morphia.audits.repairs +import com.fasterxml.jackson.annotation.JsonInclude import dev.morphia.audits.bindings.LegacyBindingCatalog import dev.morphia.audits.bindings.LegacyBindings import dev.morphia.audits.published.PublishedDocument @@ -50,8 +51,20 @@ data class MigratedFixture( val options: List = emptyList(), /** A reviewed edit of a converted case's legacy body, made so that its strict checks hold. */ val bodyEdit: BodyEdit? = null, + /** + * Reviewed edits of legacy fixture files made before the move, by file name; [files] holds the + * edited digest. Omitted from the ledger when empty. + */ + @get:JsonInclude(JsonInclude.Include.NON_EMPTY) + val fileEdits: Map = emptyMap(), ) +/** + * A reviewed edit of a legacy fixture file: [fromSha256] is the digest the preserved corpus + * records, and [reason] says why the file changed before it retired. + */ +data class FileEdit(val fromSha256: String, val reason: String) + /** * A reviewed edit of a legacy test body: [fromSha256] is the body digest the frozen binding catalog * records, and [reason] says why the body changed. The edited body is the entry's `legacyBody`. @@ -604,6 +617,20 @@ object FixtureMigration { } .toMap() + /** + * [retired] as the preserved corpus knows it: a file with a reviewed [FileEdit] has the digest + * the edit started from. + */ + fun preserved(ledger: FixtureMigrationLedger): Map = + ledger.migrations + .flatMap { migrated -> + migrated.files.map { (name, digest) -> + "$resources${migrated.fixture}/$name" to + (migrated.fileEdits[name]?.fromSha256 ?: digest) + } + } + .toMap() + /** * [catalog] without the legacy methods the migration moved, each exactly as recorded, and with * each converted method's reviewed [BodyEdit] applied: the catalog must record the body the @@ -778,6 +805,16 @@ object FixtureMigration { if (migrated.files != expectedFiles) { problems += "${migrated.fixture}: removed files differ from the override" } + migrated.fileEdits.forEach { (name, edit) -> + when { + name !in migrated.files -> + problems += "${migrated.fixture}: edited file $name was not removed" + edit.fromSha256 == migrated.files[name] -> + problems += "${migrated.fixture}: edit of $name changes nothing" + edit.reason.isBlank() -> + problems += "${migrated.fixture}: edit of $name has no reason" + } + } val scenario = root.resolve(migrated.scenario) if ( migrated.scenario != scenarioPath(migrated.fixture, migrated.kind) || diff --git a/audits/src/test/kotlin/dev/morphia/audits/offline/FixtureMigrationTest.kt b/audits/src/test/kotlin/dev/morphia/audits/offline/FixtureMigrationTest.kt index ff474f5ba5f..709f40ba48f 100644 --- a/audits/src/test/kotlin/dev/morphia/audits/offline/FixtureMigrationTest.kt +++ b/audits/src/test/kotlin/dev/morphia/audits/offline/FixtureMigrationTest.kt @@ -97,6 +97,42 @@ class FixtureMigrationTest { assertTrue("does not start from the recorded body" in edit.message!!, edit.message) } + /** + * A fixture file may change before it retires only through a reviewed edit of a removed file. + */ + @Test + fun aFileEditMustChangeARemovedFileForAReason() { + val review = AuditJson.formReview(read("audits/catalog/form-review.json")) + val inventory = AuditJson.curatedRepairs(read("audits/catalog/curated-repairs.json")) + val references = AuditJson.legacyReferences(read("audits/catalog/legacy-references.json")) + val edited = ledger.migrations.first { it.fileEdits.isNotEmpty() } + val (name, edit) = edited.fileEdits.entries.first() + assertEquals( + edit.fromSha256, + FixtureMigration.preserved(ledger)[edited.scenario.substringBeforeLast('/') + "/$name"], + ) + listOf( + mapOf(name to edit.copy(fromSha256 = edited.files.getValue(name))) to + "changes nothing", + mapOf(name to edit.copy(reason = " ")) to "has no reason", + mapOf("other.json" to edit) to "was not removed", + ) + .forEach { (edits, problem) -> + val tampered = + ledger.copy( + migrations = + ledger.migrations.map { + if (it == edited) it.copy(fileEdits = edits) else it + } + ) + val failure = + assertThrows(IllegalArgumentException::class.java) { + FixtureMigration.verify(root, tampered, inventory, review, references) + } + assertTrue(problem in failure.message!!, failure.message) + } + } + @Test fun theLedgersOverrideMustMatchItsReviewedDeclaration() { val review = AuditJson.formReview(read("audits/catalog/form-review.json")) diff --git a/audits/src/test/kotlin/dev/morphia/audits/offline/FormMigrationTest.kt b/audits/src/test/kotlin/dev/morphia/audits/offline/FormMigrationTest.kt index 1cba11963d8..24d738b7e1e 100644 --- a/audits/src/test/kotlin/dev/morphia/audits/offline/FormMigrationTest.kt +++ b/audits/src/test/kotlin/dev/morphia/audits/offline/FormMigrationTest.kt @@ -1024,8 +1024,8 @@ class FormMigrationTest { .toSet(), (report.references.map { it.fixture } + report.unresolved.map { it.fixture }).toSet(), ) - assertEquals(239, report.references.size) - assertEquals(81, report.unresolved.size) + assertEquals(251, report.references.size) + assertEquals(69, report.unresolved.size) } private fun sha256(text: String): String = diff --git a/audits/src/test/kotlin/dev/morphia/audits/offline/LegacyBindingsTest.kt b/audits/src/test/kotlin/dev/morphia/audits/offline/LegacyBindingsTest.kt index 298b788f05d..f1aee6d8b51 100644 --- a/audits/src/test/kotlin/dev/morphia/audits/offline/LegacyBindingsTest.kt +++ b/audits/src/test/kotlin/dev/morphia/audits/offline/LegacyBindingsTest.kt @@ -305,7 +305,7 @@ class LegacyBindingsTest { forms.overrides.associate { val lock = requireNotNull(it.retiredLock) "core/src/test/resources/dev/morphia/test/${it.fixture}/${lock.name}" to lock.sha256 - } + FixtureMigration.retired(migration), + } + FixtureMigration.preserved(migration), ) FixtureMigration.verify( root, diff --git a/core/src/test/resources/dev/morphia/test/generated/manifest.json b/core/src/test/resources/dev/morphia/test/generated/manifest.json index dd94ad31b0f..4b52e019aab 100644 --- a/core/src/test/resources/dev/morphia/test/generated/manifest.json +++ b/core/src/test/resources/dev/morphia/test/generated/manifest.json @@ -1429,6 +1429,66 @@ "name" : "query/filters/and/andQueriesWithMultipleExpressionsSpecifyingTheSameOperator", "scenario" : "/dev/morphia/test/query/filters/and/andQueriesWithMultipleExpressionsSpecifyingTheSameOperator/scenario.json", "test" : "dev.morphia.test.query.filters.TestAnd#testAndQueriesWithMultipleExpressionsSpecifyingTheSameOperator" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllClear/binDataBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testBinDataBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllClear/bitPositionArray", + "scenario" : "/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testBitPositionArray" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllClear/integerBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllClear#testIntegerBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllSet/binDataBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testBinDataBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllSet/bitPositionArray", + "scenario" : "/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testBitPositionArray" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAllSet/integerBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAllSet#testIntegerBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnyClear/binDataBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testBinDataBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnyClear/bitPositionArray", + "scenario" : "/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testBitPositionArray" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnyClear/integerBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnyClear#testIntegerBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnySet/binDataBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testBinDataBitmask" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnySet/bitPositionArray", + "scenario" : "/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testBitPositionArray" + }, { + "kind" : "CONVERTED", + "name" : "query/filters/bitsAnySet/integerBitmask", + "scenario" : "/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json", + "test" : "dev.morphia.test.query.filters.TestBitsAnySet#testIntegerBitmask" }, { "kind" : "CONVERTED", "name" : "query/filters/box/boxQueryPredicateOperator", @@ -2932,6 +2992,54 @@ "owner" : "GENERATED", "path" : "src/test/resources/dev/morphia/test/query/filters/and/andQueriesWithMultipleExpressionsSpecifyingTheSameOperator/scenario.json", "sha256" : "81cfdb08330b35253eaed197446465985aab7b32b73851cea29a2d2e68644aba" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json", + "sha256" : "987233f6aecea1b0032daab89a8c30e4b27a133e6b643daf7bb294d108482400" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json", + "sha256" : "3bb3b70262f6b39dfae7aa99abeeb614751b57ae34502242f16d89d4d23a0bf5" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json", + "sha256" : "36200eac51e74286ead2c4d97fb1372b636601ac0dd582e16347b44f685d4fa9" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json", + "sha256" : "262a36aacd368982263b577b85ae85b250106e8c2b230fa888c8384b6ee3f1c8" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json", + "sha256" : "b026bae3c0203949fc87a2d9e6e12345a05ea5a98de39309d795d078f6a56567" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json", + "sha256" : "80a2bc067de5207ee7b77f4aa764fc300e3fab9310486bbfd8dfc254bf70a9ee" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json", + "sha256" : "458fa543a69e6fc6fec6d8b4db807a802d09a1992e79aef7fb61eb5cd20d6233" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json", + "sha256" : "91badfca0b2a0c2ed6f260bb7475b354597a7d218f975eb13b37d4113af4a405" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json", + "sha256" : "fe57afdb32dd002fe2c2986bc1827219cb1e52098810ab8edc492e5e4ed14daa" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json", + "sha256" : "e999e63ec7435c4206fa42890fac3924337ca308964a97e5b3230b0b71a77544" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json", + "sha256" : "66728f9cb4f525fb3e8644770d0dde277459f645d2d859d4d5db565c134ee7ba" + }, { + "owner" : "GENERATED", + "path" : "src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json", + "sha256" : "b95bcc316ae12aba658884bafec3b4a88903d8331115c4dcd730a6f993014a55" }, { "owner" : "GENERATED", "path" : "src/test/resources/dev/morphia/test/query/filters/box/boxQueryPredicateOperator/scenario.json", diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/action.json deleted file mode 100644 index e9debd4cba9..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllClear: BinData(0, "IA==") } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/expected.json deleted file mode 100644 index b9cc57d1293..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20, "binaryValueofA" : "00010100" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/name deleted file mode 100644 index a90b4622323..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/name +++ /dev/null @@ -1 +0,0 @@ -BinData Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json new file mode 100644 index 00000000000..ce192e1b35b --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/binDataBitmask/scenario.json @@ -0,0 +1,139 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllClear/binDataBitmask", + "title": "BinData Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllClear.txt", + "blob": "effe7d1f201aee463d171fa7038824f2a865ed04" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllClear": { + "$binary": { + "base64": "IA==", + "subType": "00" + } + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/action.json deleted file mode 100644 index fdbb2b9b290..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllClear: [ 1, 5 ] } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/expected.json deleted file mode 100644 index b9cc57d1293..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20, "binaryValueofA" : "00010100" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/name deleted file mode 100644 index bbb596dbc4a..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/name +++ /dev/null @@ -1 +0,0 @@ -Bit Position Array \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json new file mode 100644 index 00000000000..14ad541f75c --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/bitPositionArray/scenario.json @@ -0,0 +1,141 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllClear/bitPositionArray", + "title": "Bit Position Array", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllClear.txt", + "blob": "effe7d1f201aee463d171fa7038824f2a865ed04" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllClear": [ + { + "$numberInt": "1" + }, + { + "$numberInt": "5" + } + ] + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/action.json deleted file mode 100644 index 4a269db5bbd..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllClear: 35 } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/expected.json deleted file mode 100644 index b9cc57d1293..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20, "binaryValueofA" : "00010100" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/name deleted file mode 100644 index 45884820524..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/name +++ /dev/null @@ -1 +0,0 @@ -Integer Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json new file mode 100644 index 00000000000..4767dd0679e --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllClear/integerBitmask/scenario.json @@ -0,0 +1,136 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllClear/integerBitmask", + "title": "Integer Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllClear.txt", + "blob": "effe7d1f201aee463d171fa7038824f2a865ed04" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllClear": { + "$numberInt": "35" + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/action.json deleted file mode 100644 index 8354ae26864..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllSet: BinData(0, "MA==") } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/expected.json deleted file mode 100644 index eb962595dfd..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/expected.json +++ /dev/null @@ -1 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/name deleted file mode 100644 index a90b4622323..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/name +++ /dev/null @@ -1 +0,0 @@ -BinData Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json new file mode 100644 index 00000000000..6611cc5ae33 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/binDataBitmask/scenario.json @@ -0,0 +1,113 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllSet/binDataBitmask", + "title": "BinData Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllSet.txt", + "blob": "a42e9ed0cc32e891ca6377ca8e517560c2e1739d" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllSet": { + "$binary": { + "base64": "MA==", + "subType": "00" + } + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/action.json deleted file mode 100644 index 7bd459dfc1a..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllSet: [ 1, 5 ] } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/expected.json deleted file mode 100644 index 83ffee53965..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/name deleted file mode 100644 index bbb596dbc4a..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/name +++ /dev/null @@ -1 +0,0 @@ -Bit Position Array \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json new file mode 100644 index 00000000000..8a0862e0165 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/bitPositionArray/scenario.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllSet/bitPositionArray", + "title": "Bit Position Array", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllSet.txt", + "blob": "a42e9ed0cc32e891ca6377ca8e517560c2e1739d" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllSet": [ + { + "$numberInt": "1" + }, + { + "$numberInt": "5" + } + ] + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/action.json deleted file mode 100644 index 7e1b739e3b6..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAllSet: 50 } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/expected.json deleted file mode 100644 index 971efc37fa5..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/expected.json +++ /dev/null @@ -1 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/name deleted file mode 100644 index 45884820524..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/name +++ /dev/null @@ -1 +0,0 @@ -Integer Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json new file mode 100644 index 00000000000..6fd8cfe7c7d --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAllSet/integerBitmask/scenario.json @@ -0,0 +1,110 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAllSet/integerBitmask", + "title": "Integer Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAllSet.txt", + "blob": "a42e9ed0cc32e891ca6377ca8e517560c2e1739d" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAllSet": { + "$numberInt": "50" + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/action.json deleted file mode 100644 index a3804b9c95f..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnyClear: BinData(0, "MA==") } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/expected.json deleted file mode 100644 index d8cdaa01ff1..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/expected.json +++ /dev/null @@ -1,3 +0,0 @@ -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20.0, "binaryValueofA" : "00010100" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/name deleted file mode 100644 index a90b4622323..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/name +++ /dev/null @@ -1 +0,0 @@ -BinData Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json new file mode 100644 index 00000000000..0983b455d17 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/binDataBitmask/scenario.json @@ -0,0 +1,168 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnyClear/binDataBitmask", + "title": "BinData Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnyClear.txt", + "blob": "5bf0e04dd403bd1ef21eda74577dd97365819bce" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnyClear": { + "$binary": { + "base64": "MA==", + "subType": "00" + } + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/action.json deleted file mode 100644 index f12cfa0ba94..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnyClear: [ 1, 5 ] } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/expected.json deleted file mode 100644 index ec3159cfb03..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20.0, "binaryValueofA" : "00010100" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/name deleted file mode 100644 index bbb596dbc4a..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/name +++ /dev/null @@ -1 +0,0 @@ -Bit Position Array \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json new file mode 100644 index 00000000000..015b8f427b5 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/bitPositionArray/scenario.json @@ -0,0 +1,141 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnyClear/bitPositionArray", + "title": "Bit Position Array", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnyClear.txt", + "blob": "5bf0e04dd403bd1ef21eda74577dd97365819bce" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnyClear": [ + { + "$numberInt": "1" + }, + { + "$numberInt": "5" + } + ] + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/action.json deleted file mode 100644 index c180f788a81..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnyClear: 35 } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/expected.json deleted file mode 100644 index 7ebf78fabd6..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/expected.json +++ /dev/null @@ -1,4 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20.0, "binaryValueofA" : "00010100" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/name deleted file mode 100644 index 45884820524..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/name +++ /dev/null @@ -1 +0,0 @@ -Integer Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json new file mode 100644 index 00000000000..04828f1e573 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnyClear/integerBitmask/scenario.json @@ -0,0 +1,191 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnyClear/integerBitmask", + "title": "Integer Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnyClear.txt", + "blob": "5bf0e04dd403bd1ef21eda74577dd97365819bce" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnyClear": { + "$numberInt": "35" + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/action.json deleted file mode 100644 index 17bfee88edd..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnySet: BinData(0, "MA==") } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/expected.json deleted file mode 100644 index 7ebf78fabd6..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/expected.json +++ /dev/null @@ -1,4 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } -{ "_id" : 2, "a" : 20, "binaryValueofA" : "00010100" } -{ "_id" : 3, "a" : 20.0, "binaryValueofA" : "00010100" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/name deleted file mode 100644 index a90b4622323..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/name +++ /dev/null @@ -1 +0,0 @@ -BinData Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json new file mode 100644 index 00000000000..7de1c9f6305 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/binDataBitmask/scenario.json @@ -0,0 +1,194 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnySet/binDataBitmask", + "title": "BinData Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnySet.txt", + "blob": "d520b515dec6566e81ed71559966fde21a97539f" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnySet": { + "$binary": { + "base64": "MA==", + "subType": "00" + } + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "2" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "3" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "20" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00010100" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/action.json deleted file mode 100644 index ffbae961cd3..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnySet: [ 1, 5 ] } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/expected.json deleted file mode 100644 index 83ffee53965..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/name deleted file mode 100644 index bbb596dbc4a..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/name +++ /dev/null @@ -1 +0,0 @@ -Bit Position Array \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json new file mode 100644 index 00000000000..2afb2edd673 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/bitPositionArray/scenario.json @@ -0,0 +1,144 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnySet/bitPositionArray", + "title": "Bit Position Array", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnySet.txt", + "blob": "d520b515dec6566e81ed71559966fde21a97539f" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnySet": [ + { + "$numberInt": "1" + }, + { + "$numberInt": "5" + } + ] + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/action.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/action.json deleted file mode 100644 index c003a373ebe..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/action.json +++ /dev/null @@ -1 +0,0 @@ -db.collection.find( { a: { $bitsAnySet: 35 } } ) \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/data.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/data.json deleted file mode 100644 index ec9a9173fff..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/data.json +++ /dev/null @@ -1,4 +0,0 @@ -{ _id: 1, a: 54, binaryValueofA: "00110110" }, -{ _id: 2, a: 20, binaryValueofA: "00010100" }, -{ _id: 3, a: 20.0, binaryValueofA: "00010100" }, -{ _id: 4, a: BinData(0, "Zg=="), binaryValueofA: "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/expected.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/expected.json deleted file mode 100644 index 83ffee53965..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/expected.json +++ /dev/null @@ -1,2 +0,0 @@ -{ "_id" : 1, "a" : 54, "binaryValueofA" : "00110110" } -{ "_id" : 4, "a" : BinData(0,"Zg=="), "binaryValueofA" : "01100110" } \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/name b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/name deleted file mode 100644 index 45884820524..00000000000 --- a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/name +++ /dev/null @@ -1 +0,0 @@ -Integer Bitmask \ No newline at end of file diff --git a/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json new file mode 100644 index 00000000000..c408b4a6338 --- /dev/null +++ b/core/src/test/resources/dev/morphia/test/query/filters/bitsAnySet/integerBitmask/scenario.json @@ -0,0 +1,139 @@ +{ + "schemaVersion": { + "$numberInt": "1" + }, + "name": "query/filters/bitsAnySet/integerBitmask", + "title": "Integer Bitmask", + "context": "FILTER", + "source": { + "repository": "mongodb/docs", + "commit": "1cf4196013fa93644ac656e716874c8f6d9248b6", + "path": "source/reference/operator/query/bitsAnySet.txt", + "blob": "d520b515dec6566e81ed71559966fde21a97539f" + }, + "dataset": null, + "collections": { + "collection": [ + { + "_id": { + "$numberInt": "1" + }, + "a": { + "$numberInt": "54" + }, + "binaryValueofA": "00110110" + }, + { + "_id": { + "$numberInt": "2" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "3" + }, + "a": { + "$numberInt": "20" + }, + "binaryValueofA": "00010100" + }, + { + "_id": { + "$numberInt": "4" + }, + "a": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + }, + "binaryValueofA": "01100110" + } + ] + }, + "indexes": [], + "action": { + "kind": "find", + "collection": "collection", + "filter": { + "a": { + "$bitsAnySet": { + "$numberInt": "35" + } + } + } + }, + "expected": { + "printed": [ + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "1" + } + } + }, + { + "name": "a", + "value": { + "whole": { + "$numberInt": "54" + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "00110110" + } + } + ] + }, + { + "document": [ + { + "name": "_id", + "value": { + "whole": { + "$numberInt": "4" + } + } + }, + { + "name": "a", + "value": { + "exact": { + "$binary": { + "base64": "Zg==", + "subType": "00" + } + } + } + }, + { + "name": "binaryValueofA", + "value": { + "text": "01100110" + } + } + ] + } + ] + }, + "comparison": { + "order": "ORDERED", + "rules": [], + "ignore": [], + "tolerance": null + }, + "requirements": { + "minimumServer": null, + "topology": "STANDALONE" + } +} diff --git a/design/operator-audits-design.md b/design/operator-audits-design.md index 5704fe35086..d95ccd84d0a 100644 --- a/design/operator-audits-design.md +++ b/design/operator-audits-design.md @@ -297,6 +297,8 @@ losing what the locks protected: 5. **Convert.** `FormMainKt convert` replaces a fixture's files with a scenario built from its documented source, and records the move in `fixture-migration.json`. A case that converts but fails a strict check is reverted and recorded in `cutover.json` as legacy-only, with the failing + check. When a legacy test body or fixture file had to change first, the ledger records the + change as a reviewed edit with the digest it started from, so the preserved originals still check. Fixtures that no documented source reproduces stay on the legacy loader. The progress file tracks diff --git a/design/operator-audits-progress.md b/design/operator-audits-progress.md index 841b9efc0f5..c5b9f3c3f0c 100644 --- a/design/operator-audits-progress.md +++ b/design/operator-audits-progress.md @@ -18,7 +18,7 @@ how the audits work updates it too; this file records what each PR delivered. Every step of the plan (0–7) has been started. What stands: -- **On the runner:** 351 legacy cases (350 converted, 1 migrated), plus 1 generated case. +- **On the runner:** 363 legacy cases (362 converted, 1 migrated), plus 1 generated case. Core gate: 662 tests under each mapper; audits: 452. - **Generation:** inventory of mongodb/docs `e4b0c153` (197 pages read; 300 examples owned, 32 unowned, 11 unnamed), reviewed DSL bindings checked against core's API, and the @@ -47,10 +47,10 @@ Step 5, generation and cutover: `$deserializeEJSON`, `$toObject`, `$reduce` `valueAs`). - **Find and update generation.** Only aggregation pipelines are generated. - **Reviewed names** for the 11 examples with generic titles. -- **The remaining legacy fixtures:** 205 directories. +- **The remaining legacy fixtures:** 193 directories. - 98 are locked; 96 are unresolved in `form-review.json`. - 23 are legacy-only in `cutover.json`. - - 81 never-locked fixtures have no pinned reference. + - 69 never-locked fixtures have no pinned reference. - **Deferred cutover features:** documented projections (`findOptions`), indexes, alternative commands. @@ -2574,3 +2574,19 @@ no product-documentation changes. Legacy operator AsciiDoc tables are intentiona recorded as reviewed body edits. - Totals: ledger 351 cases; 23 legacy-only; form report 4 overrides; 205 legacy directories. Core operator tests: 678 under each mapper; audits: 452. + +## $bits* seed data (2026-11-23) + +- Branch audits-bits-seed, from the #4547 finding. The 12 `$bitsAllClear`/`$bitsAllSet`/ + `$bitsAnyClear`/`$bitsAnySet` fixtures share seed data whose third document had `a: 20.0`, a + Double. The page seeds it through mongosh, which stores the whole-number literal as an Int32, so + no reference reproduced them (RESIDUAL_DIFFERENCE, TYPE at `/2/a`). The seed now has `a: 20`. +- `legacy-references.json` gains the 12 references, spliced in with the sources the unresolved + entries had pinned (a fresh `references` run would re-derive every pin against today's tree, + where most fixtures have already converted). All 12 convert and pass under both mappers. +- The ledger records each changed `data.json` as a reviewed `fileEdits` entry (the preserved + digest it started from, and why), so the preservation check still holds every retired file to + the corpus snapshot. `FixtureMigration.verify` rejects an edit of a file the move did not remove, + one that changes nothing, or one without a reason. +- Totals: ledger 363 cases; references 251, unresolved 69; 193 legacy directories. Core operator + tests: 678 under each mapper; audits: 453. diff --git a/design/operator-audits-reference.md b/design/operator-audits-reference.md index fafdbb8727b..385d4932e56 100644 --- a/design/operator-audits-reference.md +++ b/design/operator-audits-reference.md @@ -601,7 +601,10 @@ declared form rules travel with the scenario, and results the page prints as mon travel as the constraints they prove, written by `PublishedEncoding`; retypes, corrections and alternative commands are not supported yet) in place: its legacy fixture files are replaced by the scenario, its unchanged test runs through the runner's compatibility adapter, and the ledger records the move (kind `CONVERTED`, with the legacy -body text). Move its declaration to `migrated` as for `migrate`. +body text). Move its declaration to `migrated` as for `migrate`. A converted case whose legacy body +or fixture file had to change first records the change as a reviewed edit: `bodyEdit` or +`fileEdits` (by file name), each with the digest it started from and the reason. The checks hold +the frozen binding catalog and the preserved corpus to those starting digests. `references ...` pins the documented reference of every never-locked fixture into `audits/catalog/legacy-references.json`.