diff --git a/.github/workflows/check_core_build.yml b/.github/workflows/check_core_build.yml index e7022a0..4c72ce1 100644 --- a/.github/workflows/check_core_build.yml +++ b/.github/workflows/check_core_build.yml @@ -28,7 +28,14 @@ jobs: npm i -g yarn@latest yarn add + - name: fix package type error (temp solution) + run: | + cd scripts/ + chmod u+rwx nmfix.sh + ./nmfix + - name: build server run: | + cd ../core yarn compile diff --git a/auth/cmd/main/keploy-logs.txt b/auth/cmd/main/keploy-logs.txt new file mode 100755 index 0000000..cd0df1a --- /dev/null +++ b/auth/cmd/main/keploy-logs.txt @@ -0,0 +1,7 @@ +🐰 Keploy: 2024-03-06T02:40:54+05:30 INFO Keploy config not found, continuing without configuration +🐰 Keploy: 2024-03-06T02:40:54+05:30 INFO {"keploy test and mock path": "/home/soubhik/codes/gc-server/auth/cmd/main/keploy"} +🐰 Keploy: 2024-03-06T02:41:01+05:30 INFO keploy initialized and probes added to the kernel. +🐰 Keploy: 2024-03-06T02:41:03+05:30 INFO Proxy started at port:16789 +🐰 Keploy: 2024-03-06T02:41:03+05:30 INFO starting TCP DNS server at addr :26789 +🐰 Keploy: 2024-03-06T02:41:54+05:30 ERROR failed to write the reply message to mongo client {"error": "write tcp 172.22.4.63:16789->172.22.4.63:38116: write: broken pipe"} +🐰 Keploy: 2024-03-06T02:41:54+05:30 ERROR failed to write the reply message to mongo client {"error": "write tcp 172.22.4.63:16789->172.22.4.63:38128: write: broken pipe"} diff --git a/auth/cmd/main/keploy/test-set-0/mocks.yaml b/auth/cmd/main/keploy/test-set-0/mocks.yaml new file mode 100755 index 0000000..ddfdeb8 --- /dev/null +++ b/auth/cmd/main/keploy/test-set-0/mocks.yaml @@ -0,0 +1,669 @@ +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-0 +spec: + metadata: + operation: '{ OpQuery flags: [SecondaryOK], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"isMaster": {"$numberInt":"1"},"helloOk": true,"compression": [],"client": {"application": {"name": "Sports"},"driver": {"name": "mongo-go-driver","version": "v1.14.0"},"os": {"type": "linux","architecture": "amd64"},"platform": "go1.22.0"}}, returnFieldsSelector: }' + type: config + requests: + - header: + length: 266 + requestId: 3 + responseTo: 0 + Opcode: 2004 + message: + flags: 4 + collection_name: admin.$cmd + number_to_skip: 0 + number_to_return: -1 + query: '{"isMaster":{"$numberInt":"1"},"helloOk":true,"compression":[],"client":{"application":{"name":"Sports"},"driver":{"name":"mongo-go-driver","version":"v1.14.0"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.22.0"}}' + return_fields_selector: "" + responses: + - header: + length: 1118 + requestId: 72921890 + responseTo: 3 + Opcode: 1 + message: + response_flags: 8 + cursor_id: 0 + starting_from: 0 + number_returned: 1 + documents: + - '{"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df91ded73af495bf370dc3"},"counter":{"$numberLong":"4"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"ismaster":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","workloadType":"OPERATIONAL","diskState":"READY","availabilityZone":"use1-az2"},"me":"ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673094,"i":1}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673094000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673094,"i":1}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673094000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673094087"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732778"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673094,"i":1}},"signature":{"hash":{"$binary":{"base64":"IUfoPPYIYQkZq13OC+cnLerZ9r4=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673094,"i":1}}}' + read_delay: 333108104 + created: 1709673094 + reqTimestampMock: 2024-03-06T02:41:33.941607134+05:30 + resTimestampMock: 2024-03-06T02:41:34.275367964+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-1 +spec: + metadata: + operation: '{ OpQuery flags: [SecondaryOK], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"isMaster": {"$numberInt":"1"},"helloOk": true,"saslSupportedMechs": "admin.soubhik","speculativeAuthenticate": {"saslStart": {"$numberInt":"1"},"mechanism": "SCRAM-SHA-256","payload": {"$binary":{"base64":"biwsbj1zb3ViaGlrLHI9VUt1L29xRFlGTmxKZHR6OHp3ZWs0Q28za2FVTzBvNSs=","subType":"00"}},"db": "admin","options": {"skipEmptyExchange": true}},"compression": [],"client": {"application": {"name": "Sports"},"driver": {"name": "mongo-go-driver","version": "v1.14.0"},"os": {"type": "linux","architecture": "amd64"},"platform": "go1.22.0"}}, returnFieldsSelector: }' + type: config + requests: + - header: + length: 487 + requestId: 19 + responseTo: 0 + Opcode: 2004 + message: + flags: 4 + collection_name: admin.$cmd + number_to_skip: 0 + number_to_return: -1 + query: '{"isMaster":{"$numberInt":"1"},"helloOk":true,"saslSupportedMechs":"admin.soubhik","speculativeAuthenticate":{"saslStart":{"$numberInt":"1"},"mechanism":"SCRAM-SHA-256","payload":{"$binary":{"base64":"biwsbj1zb3ViaGlrLHI9VUt1L29xRFlGTmxKZHR6OHp3ZWs0Q28za2FVTzBvNSs=","subType":"00"}},"db":"admin","options":{"skipEmptyExchange":true}},"compression":[],"client":{"application":{"name":"Sports"},"driver":{"name":"mongo-go-driver","version":"v1.14.0"},"os":{"type":"linux","architecture":"amd64"},"platform":"go1.22.0"}}' + return_fields_selector: "" + responses: + - header: + length: 1186 + requestId: 250940415 + responseTo: 19 + Opcode: 1 + message: + response_flags: 8 + cursor_id: 0 + starting_from: 0 + number_returned: 1 + documents: + - '{"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df92371a8d85b0323368f9"},"counter":{"$numberLong":"6"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"ismaster":true,"secondary":false,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"region":"US_EAST_1","diskState":"READY","workloadType":"OPERATIONAL","availabilityZone":"use1-az4","provider":"AWS","nodeType":"ELECTABLE"},"me":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","electionId":{"$oid":"7fffffff000000000000010d"},"lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673096,"i":18}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673096000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673096,"i":18}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673096000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673096331"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"747332"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673096,"i":18}},"saslSupportedMechs":["SCRAM-SHA-1"]}' + read_delay: 351528895 + created: 1709673096 + reqTimestampMock: 2024-03-06T02:41:36.175604904+05:30 + resTimestampMock: 2024-03-06T02:41:36.527544184+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-2 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"saslStart":{"$numberInt":"1"},"mechanism":"SCRAM-SHA-1","payload":{"$binary":{"base64":"biwsbj1zb3ViaGlrLHI9YkRCdjM3SmlCUnBjWGdjSkdvUmp1c1lxTzNJWFkwWnY=","subType":"00"}},"options":{"skipEmptyExchange":true},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 329 + requestId: 25 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"saslStart":{"$numberInt":"1"},"mechanism":"SCRAM-SHA-1","payload":{"$binary":{"base64":"biwsbj1zb3ViaGlrLHI9YkRCdjM3SmlCUnBjWGdjSkdvUmp1c1lxTzNJWFkwWnY=","subType":"00"}},"options":{"skipEmptyExchange":true},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 191410 + responses: + - header: + length: 168 + requestId: 17 + responseTo: 25 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"conversationId":{"$numberInt":"1"},"done":false,"payload":{"$binary":{"base64":"cj1iREJ2MzdKaUJScGNYZ2NKR29SanVzWXFPM0lYWTBadjZ6UmZPcnBKSUtJRG5IV0hNWXQ4VWc9PSxzPVVYN0kyay84NkdPM3JoYmVVNXRnT0E9PSxpPTEwMDAw","subType":"00"}},"ok":{"$numberInt":"1"}} }' + checksum: 0 + read_delay: 332063093 + created: 1709673096 + reqTimestampMock: 2024-03-06T02:41:36.527736146+05:30 + resTimestampMock: 2024-03-06T02:41:36.860144546+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-3 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"saslContinue":{"$numberInt":"1"},"conversationId":{"$numberInt":"1"},"payload":{"$binary":{"base64":"Yz1iaXdzLHI9YkRCdjM3SmlCUnBjWGdjSkdvUmp1c1lxTzNJWFkwWnY2elJmT3JwSklLSURuSFdITVl0OFVnPT0scD1DUzhBeFVQNXhyblNhVW9LUFUwNndscGNZbnM9","subType":"00"}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 340 + requestId: 26 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"saslContinue":{"$numberInt":"1"},"conversationId":{"$numberInt":"1"},"payload":{"$binary":{"base64":"Yz1iaXdzLHI9YkRCdjM3SmlCUnBjWGdjSkdvUmp1c1lxTzNJWFkwWnY2elJmT3JwSklLSURuSFdITVl0OFVnPT0scD1DUzhBeFVQNXhyblNhVW9LUFUwNndscGNZbnM9","subType":"00"}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 8311571 + responses: + - header: + length: 105 + requestId: 17 + responseTo: 26 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"conversationId":{"$numberInt":"1"},"done":true,"payload":{"$binary":{"base64":"dj0rOE0xakFZbkxiYmRrREZnZmhRK3RNVjJ2Znc9","subType":"00"}},"ok":{"$numberInt":"1"}} }' + checksum: 0 + read_delay: 335506354 + created: 1709673097 + reqTimestampMock: 2024-03-06T02:41:36.868413164+05:30 + resTimestampMock: 2024-03-06T02:41:37.204747276+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-4 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"createIndexes":"players","indexes":[{"key":{"email":{"$numberInt":"1"}},"name":"email_1","unique":true}],"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"YmO7mcGVTaS05f8hO91qWw==","subType":"04"}}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"playerdb"} }], checksum: 0 }' + requests: + - header: + length: 314 + requestId: 1 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"createIndexes":"players","indexes":[{"key":{"email":{"$numberInt":"1"}},"name":"email_1","unique":true}],"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"YmO7mcGVTaS05f8hO91qWw==","subType":"04"}}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673096,"i":18}},"signature":{"hash":{"$binary":{"base64":"Rhyj86YRgDF7GSIiJXJW1ij1i1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"playerdb"} }' + checksum: 0 + read_delay: 850682 + responses: + - header: + length: 242 + requestId: 250941018 + responseTo: 1 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"numIndexesBefore":{"$numberInt":"2"},"numIndexesAfter":{"$numberInt":"2"},"note":"all indexes already exist","ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673097,"i":21}},"signature":{"hash":{"$binary":{"base64":"w8g+rFgUZj1tz4kmOd3Yb0GQ5j4=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673097,"i":21}}} }' + checksum: 0 + read_delay: 416126176 + created: 1709673097 + reqTimestampMock: 2024-03-06T02:41:37.205455789+05:30 + resTimestampMock: 2024-03-06T02:41:37.622397565+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-5 +spec: + metadata: + operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df91ded73af495bf370dc3"},"counter":{"$numberLong":"4"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 197 + requestId: 8 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 65536 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df91ded73af495bf370dc3"},"counter":{"$numberLong":"4"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 372631 + responses: + - header: + length: 1112 + requestId: 72923327 + responseTo: 8 + Opcode: 2013 + message: + flagBits: 2 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df91ded73af495bf370dc3"},"counter":{"$numberLong":"4"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"availabilityZone":"use1-az2","diskState":"READY","workloadType":"OPERATIONAL","nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1"},"me":"ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673104,"i":20}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673104000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673104,"i":20}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673104000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673104428"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732779"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673104,"i":20}},"signature":{"hash":{"$binary":{"base64":"x2LXboFlL+nmIs7c9L/EgUWjI0g=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673104,"i":20}}} }' + checksum: 0 + read_delay: 10346026156 + created: 1709673104 + reqTimestampMock: 2024-03-06T02:41:34.275785649+05:30 + resTimestampMock: 2024-03-06T02:41:44.622487649+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-6 +spec: + metadata: + operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df92371a8d85b0323368f9"},"counter":{"$numberLong":"6"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 197 + requestId: 17 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 65536 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df92371a8d85b0323368f9"},"counter":{"$numberLong":"6"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 64854 + responses: + - header: + length: 1136 + requestId: 250944732 + responseTo: 17 + Opcode: 2013 + message: + flagBits: 2 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df92371a8d85b0323368f9"},"counter":{"$numberLong":"6"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":true,"secondary":false,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","region":"US_EAST_1","provider":"AWS","diskState":"READY","workloadType":"OPERATIONAL","availabilityZone":"use1-az4"},"me":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","electionId":{"$oid":"7fffffff000000000000010d"},"lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673105,"i":32}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673105000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673105,"i":32}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673105000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673105556"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"747168"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673105,"i":32}},"signature":{"hash":{"$binary":{"base64":"DnJQB6/5DOJnEltOSFs7LKIlhBE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673105,"i":32}}} }' + checksum: 0 + read_delay: 10351738263 + created: 1709673105 + reqTimestampMock: 2024-03-06T02:41:35.399352824+05:30 + resTimestampMock: 2024-03-06T02:41:45.751649714+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-7 +spec: + metadata: + operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 197 + requestId: 22 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 65536 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 599060 + responses: + - header: + length: 1112 + requestId: 72394687 + responseTo: 22 + Opcode: 2013 + message: + flagBits: 2 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","workloadType":"OPERATIONAL","availabilityZone":"use1-az6"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673105,"i":34}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673105000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673105,"i":34}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673105000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673105602"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732113"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673105,"i":34}},"signature":{"hash":{"$binary":{"base64":"DnJQB6/5DOJnEltOSFs7LKIlhBE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673105,"i":34}}} }' + checksum: 0 + read_delay: 10361470394 + created: 1709673105 + reqTimestampMock: 2024-03-06T02:41:35.445426834+05:30 + resTimestampMock: 2024-03-06T02:41:45.808043915+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-8 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673104,"i":21}},"signature":{"hash":{"$binary":{"base64":"x2LXboFlL+nmIs7c9L/EgUWjI0g=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 27 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673104,"i":21}},"signature":{"hash":{"$binary":{"base64":"x2LXboFlL+nmIs7c9L/EgUWjI0g=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 10000218997 + responses: + - header: + length: 1112 + requestId: 72394692 + responseTo: 27 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","availabilityZone":"use1-az6","workloadType":"OPERATIONAL","diskState":"READY"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673105,"i":35}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673105000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673105,"i":35}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673105000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673105630"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732132"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673105,"i":35}},"signature":{"hash":{"$binary":{"base64":"DnJQB6/5DOJnEltOSFs7LKIlhBE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673105,"i":35}}} }' + checksum: 0 + read_delay: 344130141 + created: 1709673105 + reqTimestampMock: 2024-03-06T02:41:45.4803834+05:30 + resTimestampMock: 2024-03-06T02:41:45.825755406+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-9 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673105,"i":35}},"signature":{"hash":{"$binary":{"base64":"DnJQB6/5DOJnEltOSFs7LKIlhBE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 28 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673105,"i":35}},"signature":{"hash":{"$binary":{"base64":"DnJQB6/5DOJnEltOSFs7LKIlhBE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 10001103230 + responses: + - header: + length: 1112 + requestId: 72394818 + responseTo: 28 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","workloadType":"OPERATIONAL","availabilityZone":"use1-az6"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673106,"i":26}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673106000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673106,"i":26}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673106000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673106682"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732134"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673106,"i":26}},"signature":{"hash":{"$binary":{"base64":"Pbm1HxWNoZcZOvC7MlOIIecOLj0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673106,"i":26}}} }' + checksum: 0 + read_delay: 353071263 + created: 1709673106 + reqTimestampMock: 2024-03-06T02:41:46.530986049+05:30 + resTimestampMock: 2024-03-06T02:41:46.884901045+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-10 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673114,"i":8}},"signature":{"hash":{"$binary":{"base64":"VCZrsmN9Z3UBEFVRCrqy5rVZ984=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 30 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673114,"i":8}},"signature":{"hash":{"$binary":{"base64":"VCZrsmN9Z3UBEFVRCrqy5rVZ984=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9655199706 + responses: + - header: + length: 1112 + requestId: 72395926 + responseTo: 30 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","nodeType":"ELECTABLE","availabilityZone":"use1-az6","workloadType":"OPERATIONAL","region":"US_EAST_1","provider":"AWS"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673115,"i":18}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673115000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673115,"i":18}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673115000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673115630"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732146"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673115,"i":18}},"signature":{"hash":{"$binary":{"base64":"w82DH1E5y1ULm0Aqs8wn3KBj/FE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673115,"i":18}}} }' + checksum: 0 + read_delay: 344136469 + created: 1709673115 + reqTimestampMock: 2024-03-06T02:41:55.480744569+05:30 + resTimestampMock: 2024-03-06T02:41:55.825858824+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-11 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673115,"i":18}},"signature":{"hash":{"$binary":{"base64":"w82DH1E5y1ULm0Aqs8wn3KBj/FE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 31 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673115,"i":18}},"signature":{"hash":{"$binary":{"base64":"w82DH1E5y1ULm0Aqs8wn3KBj/FE=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9646444223 + responses: + - header: + length: 1112 + requestId: 72396057 + responseTo: 31 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","provider":"AWS","diskState":"READY","workloadType":"OPERATIONAL","availabilityZone":"use1-az6","region":"US_EAST_1"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673116,"i":13}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673116000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673116,"i":12}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673116000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673116678"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732149"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673116,"i":13}},"signature":{"hash":{"$binary":{"base64":"FoMeezgpGGWIqj2raw8euh19G/M=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673116,"i":13}}} }' + checksum: 0 + read_delay: 342055329 + created: 1709673116 + reqTimestampMock: 2024-03-06T02:41:56.531243035+05:30 + resTimestampMock: 2024-03-06T02:41:56.875598193+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-12 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673124,"i":18}},"signature":{"hash":{"$binary":{"base64":"5tepf86O992M07F3dxQxJZe7TV0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 33 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673124,"i":18}},"signature":{"hash":{"$binary":{"base64":"5tepf86O992M07F3dxQxJZe7TV0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9655365022 + responses: + - header: + length: 1112 + requestId: 72397264 + responseTo: 33 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","availabilityZone":"use1-az6","workloadType":"OPERATIONAL","diskState":"READY"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673125,"i":23}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673125000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673125,"i":23}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673125000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673125630"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732166"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673125,"i":23}},"signature":{"hash":{"$binary":{"base64":"/NO8JjH8Ln12yhz3BwrA70fji1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673125,"i":23}}} }' + checksum: 0 + read_delay: 346460857 + created: 1709673125 + reqTimestampMock: 2024-03-06T02:42:05.480886751+05:30 + resTimestampMock: 2024-03-06T02:42:05.837923968+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-13 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673125,"i":23}},"signature":{"hash":{"$binary":{"base64":"/NO8JjH8Ln12yhz3BwrA70fji1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 34 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673125,"i":23}},"signature":{"hash":{"$binary":{"base64":"/NO8JjH8Ln12yhz3BwrA70fji1Y=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9657214396 + responses: + - header: + length: 1112 + requestId: 72397399 + responseTo: 34 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","nodeType":"ELECTABLE","provider":"AWS","region":"US_EAST_1","workloadType":"OPERATIONAL","availabilityZone":"use1-az6"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673126,"i":20}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673126000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673126,"i":20}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673126000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673126682"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732169"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673126,"i":20}},"signature":{"hash":{"$binary":{"base64":"jicVzPnX6d7otn26NbOBgSJJmrQ=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673126,"i":20}}} }' + checksum: 0 + read_delay: 341638614 + created: 1709673126 + reqTimestampMock: 2024-03-06T02:42:06.531467332+05:30 + resTimestampMock: 2024-03-06T02:42:06.897248465+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-14 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673134,"i":18}},"signature":{"hash":{"$binary":{"base64":"RzwH61Sf/gbPCV1EHQO+E5K4LV0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 36 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673134,"i":18}},"signature":{"hash":{"$binary":{"base64":"RzwH61Sf/gbPCV1EHQO+E5K4LV0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9652529499 + responses: + - header: + length: 1112 + requestId: 72398941 + responseTo: 36 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","provider":"AWS","nodeType":"ELECTABLE","region":"US_EAST_1","workloadType":"OPERATIONAL","availabilityZone":"use1-az6"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673135,"i":29}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673135000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673135,"i":29}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673135000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673135630"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732183"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673135,"i":29}},"signature":{"hash":{"$binary":{"base64":"zCjuvRNjWSoIEXTecpNfTfQJoz8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673135,"i":29}}} }' + checksum: 0 + read_delay: 344470310 + created: 1709673135 + reqTimestampMock: 2024-03-06T02:42:15.480791875+05:30 + resTimestampMock: 2024-03-06T02:42:15.864357041+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-15 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673135,"i":29}},"signature":{"hash":{"$binary":{"base64":"zCjuvRNjWSoIEXTecpNfTfQJoz8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 37 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673135,"i":29}},"signature":{"hash":{"$binary":{"base64":"zCjuvRNjWSoIEXTecpNfTfQJoz8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9656869338 + responses: + - header: + length: 1112 + requestId: 72399076 + responseTo: 37 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"region":"US_EAST_1","workloadType":"OPERATIONAL","nodeType":"ELECTABLE","provider":"AWS","diskState":"READY","availabilityZone":"use1-az6"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673136,"i":20}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673136000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673136,"i":20}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673136000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673136679"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732186"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673136,"i":20}},"signature":{"hash":{"$binary":{"base64":"5h6TRVhjOsIBw7KpBCL8k7Wr4LQ=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673136,"i":20}}} }' + checksum: 0 + read_delay: 346159447 + created: 1709673137 + reqTimestampMock: 2024-03-06T02:42:16.531115975+05:30 + resTimestampMock: 2024-03-06T02:42:17.381770024+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-16 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673144,"i":48}},"signature":{"hash":{"$binary":{"base64":"2u4frdyzdmIznt4ttT3swBPybDo=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 39 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673144,"i":48}},"signature":{"hash":{"$binary":{"base64":"2u4frdyzdmIznt4ttT3swBPybDo=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9655312522 + responses: + - header: + length: 1112 + requestId: 72400281 + responseTo: 39 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"region":"US_EAST_1","workloadType":"OPERATIONAL","availabilityZone":"use1-az6","diskState":"READY","provider":"AWS","nodeType":"ELECTABLE"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673145,"i":39}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673145000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673145,"i":39}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673145000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673145633"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732197"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673145,"i":40}},"signature":{"hash":{"$binary":{"base64":"ErQeZAiKH60toUix9M6PI3PPPH8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673145,"i":39}}} }' + checksum: 0 + read_delay: 343726426 + created: 1709673146 + reqTimestampMock: 2024-03-06T02:42:25.480966491+05:30 + resTimestampMock: 2024-03-06T02:42:26.252237212+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-17 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673145,"i":40}},"signature":{"hash":{"$binary":{"base64":"ErQeZAiKH60toUix9M6PI3PPPH8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 40 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673145,"i":40}},"signature":{"hash":{"$binary":{"base64":"ErQeZAiKH60toUix9M6PI3PPPH8=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9653188382 + responses: + - header: + length: 1112 + requestId: 72400420 + responseTo: 40 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"diskState":"READY","provider":"AWS","availabilityZone":"use1-az6","workloadType":"OPERATIONAL","region":"US_EAST_1","nodeType":"ELECTABLE"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673146,"i":24}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673146000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673146,"i":24}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673146000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673146675"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732202"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673146,"i":24}},"signature":{"hash":{"$binary":{"base64":"fUpFibk7TuPSkZkqA6Z0JiJ1CUY=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673146,"i":24}}} }' + checksum: 0 + read_delay: 338095449 + created: 1709673148 + reqTimestampMock: 2024-03-06T02:42:26.530888783+05:30 + resTimestampMock: 2024-03-06T02:42:28.337020187+05:30 +--- +version: api.keploy.io/v1beta1 +kind: Mongo +name: mock-18 +spec: + metadata: + operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673154,"i":13}},"signature":{"hash":{"$binary":{"base64":"0cbOPfahdDLJgO0vHkHMLCeMWw0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }], checksum: 0 }' + type: config + requests: + - header: + length: 213 + requestId: 42 + responseTo: 0 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673154,"i":13}},"signature":{"hash":{"$binary":{"base64":"0cbOPfahdDLJgO0vHkHMLCeMWw0=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"$db":"admin","$readPreference":{"mode":"primaryPreferred"}} }' + checksum: 0 + read_delay: 9656277744 + responses: + - header: + length: 1112 + requestId: 72401586 + responseTo: 42 + Opcode: 2013 + message: + flagBits: 0 + sections: + - '{ SectionSingle msg: {"helloOk":true,"topologyVersion":{"processId":{"$oid":"65df9295cb495ee5e3e27d15"},"counter":{"$numberLong":"3"}},"hosts":["ac-bisorbr-shard-00-00.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017"],"setName":"atlas-4zoyl4-shard-0","setVersion":{"$numberInt":"12"},"isWritablePrimary":false,"secondary":true,"primary":"ac-bisorbr-shard-00-01.vj9j4tb.mongodb.net:27017","tags":{"nodeType":"ELECTABLE","provider":"AWS","diskState":"READY","workloadType":"OPERATIONAL","availabilityZone":"use1-az6","region":"US_EAST_1"},"me":"ac-bisorbr-shard-00-02.vj9j4tb.mongodb.net:27017","lastWrite":{"opTime":{"ts":{"$timestamp":{"t":1709673155,"i":30}},"t":{"$numberLong":"269"}},"lastWriteDate":{"$date":{"$numberLong":"1709673155000"}},"majorityOpTime":{"ts":{"$timestamp":{"t":1709673155,"i":27}},"t":{"$numberLong":"269"}},"majorityWriteDate":{"$date":{"$numberLong":"1709673155000"}}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1709673155630"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"732216"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1709673155,"i":30}},"signature":{"hash":{"$binary":{"base64":"QOwn6j1b+cbGKooInhBx9h+A8Xg=","subType":"00"}},"keyId":{"$numberLong":"7292121412179853314"}}},"operationTime":{"$timestamp":{"t":1709673155,"i":30}}} }' + checksum: 0 + read_delay: 342116278 + created: 1709673158 + reqTimestampMock: 2024-03-06T02:42:35.481615421+05:30 + resTimestampMock: 2024-03-06T02:42:38.980225573+05:30 diff --git a/core/package.json b/core/package.json index cfa4d93..aaf5923 100644 --- a/core/package.json +++ b/core/package.json @@ -50,7 +50,7 @@ "@feathersjs/transport-commons": "^5.0.21", "compression": "^1.7.4", "cors": "^2.8.5", - "feathers-hooks-common": "6.1.5", + "feathers-hooks-common": "6.1.5", "feathers-mongoose": "^8.5.1", "helmet": "^5.1.0", "mongodb-core": "^3.2.7", diff --git a/core/src/models/squad-player.model.ts b/core/src/models/squad-player.model.ts index 288baa0..076067b 100644 --- a/core/src/models/squad-player.model.ts +++ b/core/src/models/squad-player.model.ts @@ -15,7 +15,7 @@ export default function (app: Application): Model { ref: 'player', required: true, }, - Squad: { + squad: { type: mongoose.Schema.Types.ObjectId, ref: 'squad', required: true, diff --git a/scripts/nmfix.sh b/scripts/nmfix.sh new file mode 100755 index 0000000..f40d5d0 --- /dev/null +++ b/scripts/nmfix.sh @@ -0,0 +1,24 @@ + +#!/bin/bash + +file="../core/node_modules/@feathersjs/hooks/script/hooks.d.ts" +old_word="DecoratorContext" +new_word="any" +line_number=9 +position=99 + +sed -i "${line_number}s/\<${old_word}\>/${new_word}/g" "${file}" + +# SED(1) User Commands SED(1) + +# NAME +# sed - stream editor for filtering and transforming text + +# SYNOPSIS +# sed [OPTION]... {script-only-if-no-other-script} [input-file]... + +# DESCRIPTION +# Sed is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or +# input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed), sed works +# by making only one pass over the input(s), and is consequently more efficient. But it is sed's ability to filter text +# in a pipeline which particularly distinguishes it from other types of editors. \ No newline at end of file