From 9352b87f07de7053d064a9605bac03741cb2c1ce Mon Sep 17 00:00:00 2001 From: Animesh Date: Thu, 14 Dec 2023 12:42:34 +0530 Subject: [PATCH] fix: docker-compose file and readme Signed-off-by: Animesh --- gin-mongo/keploy/test-set-0/mocks.yaml | 135 ---------- gin-mongo/keploy/test-set-0/tests/test-1.yaml | 37 --- gin-mongo/keploy/test-set-0/tests/test-2.yaml | 50 ---- gin-mongo/keploy/test-set-0/tests/test-3.yaml | 50 ---- gin-mongo/keploy/test-set-1/mocks.yaml | 142 ---------- gin-mongo/keploy/test-set-1/tests/test-1.yaml | 43 --- gin-mongo/keploy/testReports/report-1.yaml | 245 ------------------ gin-mongo/keploy/testReports/report-2.yaml | 7 - gin-mongo/keploy/testReports/report-3.yaml | 245 ------------------ gin-mongo/keploy/testReports/report-4.yaml | 97 ------- graphql-sql/docker-compose.yml | 1 + mux-sql/README.md | 2 +- mux-sql/docker-compose.yml | 2 +- mux-sql/keploy/test-set-0/tests/test-1.yaml | 40 --- mux-sql/keploy/test-set-1/tests/test-1.yaml | 40 --- 15 files changed, 3 insertions(+), 1133 deletions(-) delete mode 100755 gin-mongo/keploy/test-set-0/mocks.yaml delete mode 100755 gin-mongo/keploy/test-set-0/tests/test-1.yaml delete mode 100755 gin-mongo/keploy/test-set-0/tests/test-2.yaml delete mode 100755 gin-mongo/keploy/test-set-0/tests/test-3.yaml delete mode 100755 gin-mongo/keploy/test-set-1/mocks.yaml delete mode 100755 gin-mongo/keploy/test-set-1/tests/test-1.yaml delete mode 100755 gin-mongo/keploy/testReports/report-1.yaml delete mode 100755 gin-mongo/keploy/testReports/report-2.yaml delete mode 100755 gin-mongo/keploy/testReports/report-3.yaml delete mode 100755 gin-mongo/keploy/testReports/report-4.yaml delete mode 100755 mux-sql/keploy/test-set-0/tests/test-1.yaml delete mode 100755 mux-sql/keploy/test-set-1/tests/test-1.yaml diff --git a/gin-mongo/keploy/test-set-0/mocks.yaml b/gin-mongo/keploy/test-set-0/mocks.yaml deleted file mode 100755 index bc718fa6..00000000 --- a/gin-mongo/keploy/test-set-0/mocks.yaml +++ /dev/null @@ -1,135 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpQuery flags: [SecondaryOK], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"isMaster": {"$numberInt":"1"},"helloOk": true,"compression": [],"client": {"driver": {"name": "mongo-go-driver","version": "v1.8.1"},"os": {"type": "linux","architecture": "arm64"},"platform": "go1.20.8"}}, returnFieldsSelector: }' - type: config - requests: - - header: - length: 230 - requestId: 1 - 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":{"driver":{"name":"mongo-go-driver","version":"v1.8.1"},"os":{"type":"linux","architecture":"arm64"},"platform":"go1.20.8"}}' - return_fields_selector: "" - read_delay: 11417 - responses: - - header: - length: 329 - requestId: 3 - responseTo: 1 - Opcode: 1 - message: - response_flags: 8 - cursor_id: 0 - starting_from: 0 - number_returned: 1 - documents: - - '{"helloOk":true,"ismaster":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500034998"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"1"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}}' - read_delay: 1512792 - created: 1696500035 ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"update":"url-shortener","ordered":true,"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"FxKEjEbCSYqImwxjboBvEg==","subType":"04"}}},"$db":"keploy"} }, { SectionSingle identifier: updates , msgs: [ {"q":{"_id":"Lhr4BWAi"},"u":{"$set":{"_id":"Lhr4BWAi","created":{"$date":{"$numberLong":"1696500033094"}},"updated":{"$date":{"$numberLong":"1696500033094"}},"url":"https://google.com"}},"upsert":true} ] }], checksum: 0 }' - requests: - - header: - length: 301 - requestId: 5 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"update":"url-shortener","ordered":true,"writeConcern":{"w":"majority"},"lsid":{"id":{"$binary":{"base64":"FxKEjEbCSYqImwxjboBvEg==","subType":"04"}}},"$db":"keploy"} }' - - '{ SectionSingle identifier: updates , msgs: [ {"q":{"_id":"Lhr4BWAi"},"u":{"$set":{"_id":"Lhr4BWAi","created":{"$date":{"$numberLong":"1696500033094"}},"updated":{"$date":{"$numberLong":"1696500033094"}},"url":"https://google.com"}},"upsert":true} ] }' - checksum: 0 - read_delay: 151375 - responses: - - header: - length: 112 - requestId: 6 - responseTo: 5 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"n":{"$numberInt":"1"},"upserted":[{"index":{"$numberInt":"0"},"_id":"Lhr4BWAi"}],"nModified":{"$numberInt":"0"},"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 24970583 - created: 1696500035 ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }], checksum: 0 }' - type: config - requests: - - header: - length: 62 - requestId: 6 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }' - checksum: 0 - read_delay: 9989556629 - responses: - - header: - length: 323 - requestId: 7 - responseTo: 6 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500044994"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"2"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 710500 - created: 1696500044 ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }], checksum: 0 }' - type: config - requests: - - header: - length: 148 - requestId: 3 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 65536 - sections: - - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }' - checksum: 0 - read_delay: 20000 - responses: - - header: - length: 323 - requestId: 8 - responseTo: 3 - Opcode: 2013 - message: - flagBits: 2 - sections: - - '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"651e8929aee8d38d01a09188"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1696500045004"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"1"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"17"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 10004565546 - created: 1696500045 diff --git a/gin-mongo/keploy/test-set-0/tests/test-1.yaml b/gin-mongo/keploy/test-set-0/tests/test-1.yaml deleted file mode 100755 index 9a0fcb37..00000000 --- a/gin-mongo/keploy/test-set-0/tests/test-1.yaml +++ /dev/null @@ -1,37 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-1 -spec: - metadata: {} - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://google.com" - } - body_type: "" - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Thu, 05 Oct 2023 10:00:35 GMT - body: '{"ts":1696500035031769854,"url":"http://localhost:8080/Lhr4BWAi"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - objects: [] - assertions: - noise: - - header.Date - created: 1696500039 diff --git a/gin-mongo/keploy/test-set-0/tests/test-2.yaml b/gin-mongo/keploy/test-set-0/tests/test-2.yaml deleted file mode 100755 index d6340062..00000000 --- a/gin-mongo/keploy/test-set-0/tests/test-2.yaml +++ /dev/null @@ -1,50 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-2 -spec: - metadata: {} - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://github.com" - } - body_type: "" - timestamp: 2023-11-10T12:41:47.238780141Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:47 GMT - body: '{"ts":1699620107242270974,"url":"http://localhost:8080/4KepjkTT"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-11-10T12:41:49.616308184Z - objects: [] - assertions: - noise: - - header.Date - - body.ts - created: 1699620109 -curl: |- - curl --request POST \ - --url http://localhost:8080/url \ - --header 'Accept: */*' \ - --header 'Content-Type: application/json' \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/8.1.2' \ - --data '{ - "url": "https://github.com" - }' diff --git a/gin-mongo/keploy/test-set-0/tests/test-3.yaml b/gin-mongo/keploy/test-set-0/tests/test-3.yaml deleted file mode 100755 index 34b0cf86..00000000 --- a/gin-mongo/keploy/test-set-0/tests/test-3.yaml +++ /dev/null @@ -1,50 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-3 -spec: - metadata: {} - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://google.com" - } - body_type: "" - timestamp: 2023-11-10T12:41:58.497288021Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:58 GMT - body: '{"ts":1699620118500265688,"url":"http://localhost:8080/Lhr4BWAi"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-11-10T12:42:01.000672772Z - objects: [] - assertions: - noise: - - header.Date - - body.ts - created: 1699620121 -curl: |- - curl --request POST \ - --url http://localhost:8080/url \ - --header 'Accept: */*' \ - --header 'Content-Type: application/json' \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/8.1.2' \ - --data '{ - "url": "https://google.com" - }' diff --git a/gin-mongo/keploy/test-set-1/mocks.yaml b/gin-mongo/keploy/test-set-1/mocks.yaml deleted file mode 100755 index 5a63e2dc..00000000 --- a/gin-mongo/keploy/test-set-1/mocks.yaml +++ /dev/null @@ -1,142 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpQuery flags: [SecondaryOK], fullCollectionName: admin.$cmd, numberToSkip: 0, numberToReturn: -1, query: {"isMaster": {"$numberInt":"1"},"helloOk": true,"compression": [],"client": {"driver": {"name": "mongo-go-driver","version": "v1.8.1"},"os": {"type": "linux","architecture": "arm64"},"platform": "go1.20.11"}}, returnFieldsSelector: }' - type: config - requests: - - header: - length: 231 - requestId: 2 - 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":{"driver":{"name":"mongo-go-driver","version":"v1.8.1"},"os":{"type":"linux","architecture":"arm64"},"platform":"go1.20.11"}}' - return_fields_selector: "" - read_delay: 10041 - responses: - - header: - length: 329 - requestId: 31 - responseTo: 2 - Opcode: 1 - message: - response_flags: 8 - cursor_id: 0 - starting_from: 0 - number_returned: 1 - documents: - - '{"helloOk":true,"ismaster":true,"topologyVersion":{"processId":{"$oid":"654e24ca19bb0b759f2cb9f6"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1699620178670"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"5"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"21"},"readOnly":false,"ok":{"$numberDouble":"1.0"}}' - read_delay: 1448042 - created: 1699620178 - reqTimestampMock: 2023-11-10T12:42:58.669352841Z - resTimestampMock: 2023-11-10T12:42:58.670985216Z ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }], checksum: 0 }' - type: config - requests: - - header: - length: 62 - requestId: 4 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"$db":"admin"} }' - checksum: 0 - read_delay: 9996579504 - responses: - - header: - length: 323 - requestId: 32 - responseTo: 4 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"654e24ca19bb0b759f2cb9f6"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1699620188669"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"4"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"21"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 571959 - created: 1699620188 - reqTimestampMock: 2023-11-10T12:43:08.668717096Z - resTimestampMock: 2023-11-10T12:43:08.669821013Z ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 65536, sections: [{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"654e24ca19bb0b759f2cb9f6"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }], checksum: 0 }' - type: config - requests: - - header: - length: 148 - requestId: 3 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 65536 - sections: - - '{ SectionSingle msg: {"hello":{"$numberInt":"1"},"helloOk":true,"topologyVersion":{"processId":{"$oid":"654e24ca19bb0b759f2cb9f6"},"counter":{"$numberLong":"0"}},"maxAwaitTimeMS":{"$numberLong":"10000"},"$db":"admin"} }' - checksum: 0 - read_delay: 588209 - responses: - - header: - length: 323 - requestId: 33 - responseTo: 3 - Opcode: 2013 - message: - flagBits: 2 - sections: - - '{ SectionSingle msg: {"helloOk":true,"isWritablePrimary":true,"topologyVersion":{"processId":{"$oid":"654e24ca19bb0b759f2cb9f6"},"counter":{"$numberLong":"0"}},"maxBsonObjectSize":{"$numberInt":"16777216"},"maxMessageSizeBytes":{"$numberInt":"48000000"},"maxWriteBatchSize":{"$numberInt":"100000"},"localTime":{"$date":{"$numberLong":"1699620188673"}},"logicalSessionTimeoutMinutes":{"$numberInt":"30"},"connectionId":{"$numberInt":"5"},"minWireVersion":{"$numberInt":"0"},"maxWireVersion":{"$numberInt":"21"},"readOnly":false,"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 10002379213 - created: 1699620188 - reqTimestampMock: 2023-11-10T12:42:58.671566758Z - resTimestampMock: 2023-11-10T12:43:08.674894971Z ---- -version: api.keploy.io/v1beta2 -kind: Mongo -name: mocks -spec: - metadata: - operation: '{ OpMsg flags: 0, sections: [{ SectionSingle msg: {"find":"url-shortener","filter":{"_id":"Lhr4BWAi"},"limit":{"$numberLong":"1"},"singleBatch":true,"lsid":{"id":{"$binary":{"base64":"QnqvtMXVTz2aa7PcWftPlQ==","subType":"04"}}},"$db":"keploy"} }], checksum: 0 }' - requests: - - header: - length: 162 - requestId: 8 - responseTo: 0 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"find":"url-shortener","filter":{"_id":"Lhr4BWAi"},"limit":{"$numberLong":"1"},"singleBatch":true,"lsid":{"id":{"$binary":{"base64":"QnqvtMXVTz2aa7PcWftPlQ==","subType":"04"}}},"$db":"keploy"} }' - checksum: 0 - read_delay: 102917 - responses: - - header: - length: 197 - requestId: 39 - responseTo: 8 - Opcode: 2013 - message: - flagBits: 0 - sections: - - '{ SectionSingle msg: {"cursor":{"firstBatch":[{"_id":"Lhr4BWAi","created":{"$date":{"$numberLong":"1699620118497"}},"updated":{"$date":{"$numberLong":"1699620118497"}},"url":"https://google.com"}],"id":{"$numberLong":"0"},"ns":"keploy.url-shortener"},"ok":{"$numberDouble":"1.0"}} }' - checksum: 0 - read_delay: 776625 - created: 1699620216 - reqTimestampMock: 2023-11-10T12:43:36.112255401Z - resTimestampMock: 2023-11-10T12:43:36.113198151Z diff --git a/gin-mongo/keploy/test-set-1/tests/test-1.yaml b/gin-mongo/keploy/test-set-1/tests/test-1.yaml deleted file mode 100755 index ad7752c1..00000000 --- a/gin-mongo/keploy/test-set-1/tests/test-1.yaml +++ /dev/null @@ -1,43 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-1 -spec: - metadata: {} - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/Lhr4BWAi - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: "" - body_type: "" - timestamp: 2023-11-10T12:43:36.106936776Z - resp: - status_code: 303 - header: - Content-Length: "45" - Content-Type: text/html; charset=utf-8 - Date: Fri, 10 Nov 2023 12:43:36 GMT - Location: https://google.com - body: |+ - See Other. - - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-11-10T12:43:38.510205527Z - objects: [] - assertions: - noise: - - header.Date - created: 1699620218 -curl: | - curl --request GET \ - --url http://localhost:8080/Lhr4BWAi \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/8.1.2' \ - --header 'Accept: */*' \ diff --git a/gin-mongo/keploy/testReports/report-1.yaml b/gin-mongo/keploy/testReports/report-1.yaml deleted file mode 100755 index e4e98a6a..00000000 --- a/gin-mongo/keploy/testReports/report-1.yaml +++ /dev/null @@ -1,245 +0,0 @@ -version: api.keploy.io/v1beta1 -name: report-1 -status: PASSED -success: 3 -failure: 0 -total: 3 -tests: - - kind: Http - name: report-1 - status: PASSED - started: 1699620686 - completed: 1699620686 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-1 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "31" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://bing.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:28 GMT - body: '{"ts":1699620088426721340,"url":"http://localhost:8080/UiMETJE5"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:28 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:51:26 GMT - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620088426721340,"url":"http://localhost:8080/UiMETJE5"}' - actual: '{"ts":1699620686568250959,"url":"http://localhost:8080/UiMETJE5"}' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1699620686 - completed: 1699620686 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-2 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://github.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:47 GMT - body: '{"ts":1699620107242270974,"url":"http://localhost:8080/4KepjkTT"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:47 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:51:26 GMT - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620107242270974,"url":"http://localhost:8080/4KepjkTT"}' - actual: '{"ts":1699620686574352667,"url":"http://localhost:8080/4KepjkTT"}' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1699620686 - completed: 1699620686 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-3 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://google.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:58 GMT - body: '{"ts":1699620118500265688,"url":"http://localhost:8080/Lhr4BWAi"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:58 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:51:26 GMT - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620118500265688,"url":"http://localhost:8080/Lhr4BWAi"}' - actual: '{"ts":1699620686578533667,"url":"http://localhost:8080/Lhr4BWAi"}' - dep_result: [] -test_set: test-set-0 diff --git a/gin-mongo/keploy/testReports/report-2.yaml b/gin-mongo/keploy/testReports/report-2.yaml deleted file mode 100755 index 3a031078..00000000 --- a/gin-mongo/keploy/testReports/report-2.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: api.keploy.io/v1beta1 -name: report-2 -status: USER_ABORT -success: 0 -failure: 0 -total: 0 -test_set: test-set-1 diff --git a/gin-mongo/keploy/testReports/report-3.yaml b/gin-mongo/keploy/testReports/report-3.yaml deleted file mode 100755 index 86f62f8c..00000000 --- a/gin-mongo/keploy/testReports/report-3.yaml +++ /dev/null @@ -1,245 +0,0 @@ -version: api.keploy.io/v1beta1 -name: report-3 -status: PASSED -success: 3 -failure: 0 -total: 3 -tests: - - kind: Http - name: report-3 - status: PASSED - started: 1699620967 - completed: 1699620967 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-1 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "31" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://bing.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:28 GMT - body: '{"ts":1699620088426721340,"url":"http://localhost:8080/UiMETJE5"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:28 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:56:07 GMT - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620088426721340,"url":"http://localhost:8080/UiMETJE5"}' - actual: '{"ts":1699620967036910634,"url":"http://localhost:8080/UiMETJE5"}' - dep_result: [] - - kind: Http - name: report-3 - status: PASSED - started: 1699620967 - completed: 1699620967 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-2 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://github.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:47 GMT - body: '{"ts":1699620107242270974,"url":"http://localhost:8080/4KepjkTT"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:47 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:56:07 GMT - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620107242270974,"url":"http://localhost:8080/4KepjkTT"}' - actual: '{"ts":1699620967045387592,"url":"http://localhost:8080/4KepjkTT"}' - dep_result: [] - - kind: Http - name: report-3 - status: PASSED - started: 1699620967 - completed: 1699620967 - test_case_path: /files/keploy/test-set-0 - mock_path: "" - test_case_id: test-3 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/url - header: - Accept: '*/*' - Content-Length: "33" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: |- - { - "url": "https://google.com" - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Length: "65" - Content-Type: application/json; charset=utf-8 - Date: Fri, 10 Nov 2023 12:41:58 GMT - body: '{"ts":1699620118500265688,"url":"http://localhost:8080/Lhr4BWAi"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - - body.ts - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "65" - actual: - key: Content-Length - value: - - "65" - - normal: true - expected: - key: Content-Type - value: - - application/json; charset=utf-8 - actual: - key: Content-Type - value: - - application/json; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:41:58 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:56:07 GMT - body_result: - - normal: true - type: JSON - expected: '{"ts":1699620118500265688,"url":"http://localhost:8080/Lhr4BWAi"}' - actual: '{"ts":1699620967051641509,"url":"http://localhost:8080/Lhr4BWAi"}' - dep_result: [] -test_set: test-set-0 diff --git a/gin-mongo/keploy/testReports/report-4.yaml b/gin-mongo/keploy/testReports/report-4.yaml deleted file mode 100755 index 33af036d..00000000 --- a/gin-mongo/keploy/testReports/report-4.yaml +++ /dev/null @@ -1,97 +0,0 @@ -version: api.keploy.io/v1beta1 -name: report-4 -status: PASSED -success: 1 -failure: 0 -total: 1 -tests: - - kind: Http - name: report-4 - status: PASSED - started: 1699620978 - completed: 1699620978 - test_case_path: /files/keploy/test-set-1 - mock_path: "" - test_case_id: test-1 - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://172.19.0.6:8080/Lhr4BWAi - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/8.1.2 - body: "" - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 303 - header: - Content-Length: "45" - Content-Type: text/html; charset=utf-8 - Date: Fri, 10 Nov 2023 12:43:36 GMT - Location: https://google.com - body: |+ - See Other. - - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - - header.Date - result: - status_code: - normal: true - expected: 303 - actual: 303 - headers_result: - - normal: true - expected: - key: Content-Length - value: - - "45" - actual: - key: Content-Length - value: - - "45" - - normal: true - expected: - key: Content-Type - value: - - text/html; charset=utf-8 - actual: - key: Content-Type - value: - - text/html; charset=utf-8 - - normal: true - expected: - key: Date - value: - - Fri, 10 Nov 2023 12:43:36 GMT - actual: - key: Date - value: - - Fri, 10 Nov 2023 12:56:18 GMT - - normal: true - expected: - key: Location - value: - - https://google.com - actual: - key: Location - value: - - https://google.com - body_result: - - normal: true - type: PLAIN - expected: |+ - See Other. - - actual: |+ - See Other. - - dep_result: [] -test_set: test-set-1 diff --git a/graphql-sql/docker-compose.yml b/graphql-sql/docker-compose.yml index 08b8c084..ebc2a7f2 100644 --- a/graphql-sql/docker-compose.yml +++ b/graphql-sql/docker-compose.yml @@ -3,6 +3,7 @@ services: postgres: image: postgres:10.5 restart: always + container_name: graphql-sql-postgres-1 environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres diff --git a/mux-sql/README.md b/mux-sql/README.md index 6b0bc66a..ca82b041 100644 --- a/mux-sql/README.md +++ b/mux-sql/README.md @@ -154,7 +154,7 @@ curl --request POST \ --header 'content-type: application/json' \ --data '{ "name":"Bubbles", - "price": 123 + "price": 124 }' ``` this will return the response. diff --git a/mux-sql/docker-compose.yml b/mux-sql/docker-compose.yml index 93747531..80ed8af6 100644 --- a/mux-sql/docker-compose.yml +++ b/mux-sql/docker-compose.yml @@ -13,7 +13,7 @@ services: postgres: image: postgres:10.5 - restart: always + container_name: mux-sql-postgres-1 environment: - POSTGRES_DB=postgres - POSTGRES_USER=postgres diff --git a/mux-sql/keploy/test-set-0/tests/test-1.yaml b/mux-sql/keploy/test-set-0/tests/test-1.yaml deleted file mode 100755 index 1c9d4487..00000000 --- a/mux-sql/keploy/test-set-0/tests/test-1.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-1 -spec: - metadata: {} - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8010/product - header: - Accept: '*/*' - Accept-Encoding: gzip, deflate, br - Cache-Control: no-cache - Content-Length: "45" - Content-Type: application/json - Host: localhost:8010 - Postman-Token: c1731d51-a87c-44cc-82a1-de6173f2c17f - User-Agent: PostmanRuntime/7.32.1 - body: "{\r\n \"name\":\"A Pencil\", \r\n \"price\": 1\r\n}" - body_type: "" - timestamp: 2023-11-10T11:39:51.511849536Z - resp: - status_code: 500 - header: - Content-Length: "15" - Content-Type: application/json - Date: Fri, 10 Nov 2023 11:39:51 GMT - body: '{"error":"EOF"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-11-10T11:39:54.160618704Z - objects: [] - assertions: - noise: - - header.Date - created: 1699616394 -curl: "curl --request POST \\\n --url http://localhost:8010/product \\\n --header 'Accept-Encoding: gzip, deflate, br' \\\n --header 'Content-Type: application/json' \\\n --header 'User-Agent: PostmanRuntime/7.32.1' \\\n --header 'Accept: */*' \\\n --header 'Cache-Control: no-cache' \\\n --header 'Postman-Token: c1731d51-a87c-44cc-82a1-de6173f2c17f' \\\n --header 'Host: localhost:8010' \\\n --data '{\r\n \"name\":\"A Pencil\", \r\n \"price\": 1\r\n}'" diff --git a/mux-sql/keploy/test-set-1/tests/test-1.yaml b/mux-sql/keploy/test-set-1/tests/test-1.yaml deleted file mode 100755 index 1052e877..00000000 --- a/mux-sql/keploy/test-set-1/tests/test-1.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: api.keploy.io/v1beta2 -kind: Http -name: test-1 -spec: - metadata: {} - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8010/product - header: - Accept: '*/*' - Accept-Encoding: gzip, deflate, br - Cache-Control: no-cache - Content-Length: "45" - Content-Type: application/json - Host: localhost:8010 - Postman-Token: 4e98b76b-66a1-4f84-b661-7f5fba0e7767 - User-Agent: PostmanRuntime/7.32.1 - body: "{\r\n \"name\":\"A Pencil\", \r\n \"price\": 1\r\n}" - body_type: "" - timestamp: 2023-11-10T11:40:30.311008345Z - resp: - status_code: 500 - header: - Content-Length: "15" - Content-Type: application/json - Date: Fri, 10 Nov 2023 11:40:30 GMT - body: '{"error":"EOF"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-11-10T11:40:32.88003268Z - objects: [] - assertions: - noise: - - header.Date - created: 1699616432 -curl: "curl --request POST \\\n --url http://localhost:8010/product \\\n --header 'Cache-Control: no-cache' \\\n --header 'Postman-Token: 4e98b76b-66a1-4f84-b661-7f5fba0e7767' \\\n --header 'Host: localhost:8010' \\\n --header 'Accept-Encoding: gzip, deflate, br' \\\n --header 'Content-Type: application/json' \\\n --header 'User-Agent: PostmanRuntime/7.32.1' \\\n --header 'Accept: */*' \\\n --data '{\r\n \"name\":\"A Pencil\", \r\n \"price\": 1\r\n}'"