diff --git a/employee-manager/docker-compose.yaml b/employee-manager/docker-compose.yaml index dec6d7da..c9301ec5 100644 --- a/employee-manager/docker-compose.yaml +++ b/employee-manager/docker-compose.yaml @@ -8,7 +8,7 @@ services: - POSTGRES_USER=keploy-user - POSTGRES_PASSWORD=keploy ports: - - '5439:5432' + - '5432:5432' volumes: # - ./postgres-data:/var/lib/postgresql/data # copy the sql script to create tables diff --git a/employee-manager/keploy.yml b/employee-manager/keploy.yml new file mode 100755 index 00000000..1e547aa5 --- /dev/null +++ b/employee-manager/keploy.yml @@ -0,0 +1,61 @@ +path: "" +appId: 0 +appName: employee-manager +command: java -jar target/springbootapp-0.0.1-SNAPSHOT.jar +templatize: + testSets: [] +port: 0 +dnsPort: 26789 +proxyPort: 16789 +debug: false +disableTele: false +disableANSI: false +containerName: "" +networkName: "" +buildDelay: 30 +test: + selectedTests: {} + globalNoise: + global: {} + test-sets: {} + delay: 5 + host: "" + port: 0 + apiTimeout: 5 + skipCoverage: false + coverageReportPath: "" + ignoreOrdering: true + mongoPassword: default@123 + language: "" + removeUnusedMocks: false + fallBackOnMiss: false + jacocoAgentPath: "" + basePath: "" + mocking: true + ignoredTests: {} + disableLineCoverage: false + disableMockUpload: true + useLocalMock: false + updateTemplate: false +record: + filters: [] + recordTimer: 0s +configPath: "" +bypassRules: [] +generateGithubActions: false +keployContainer: keploy-v2 +keployNetwork: keploy-network +cmdType: native +contract: + services: [] + tests: [] + path: "" + download: false + generate: false + driven: consumer + mappings: + servicesMapping: {} + self: "" +inCi: false + +# Visit [https://keploy.io/docs/running-keploy/configuration-file/] to learn about using keploy through configration file. diff --git a/employee-manager/keploy/.gitignore b/employee-manager/keploy/.gitignore new file mode 100644 index 00000000..5137843b --- /dev/null +++ b/employee-manager/keploy/.gitignore @@ -0,0 +1,2 @@ + +/reports/ diff --git a/employee-manager/keploy/test-set-0/mocks.yaml b/employee-manager/keploy/test-set-0/mocks.yaml index c249821c..b2c19d94 100755 --- a/employee-manager/keploy/test-set-0/mocks.yaml +++ b/employee-manager/keploy/test-set-0/mocks.yaml @@ -1,8 +1,9 @@ version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-0 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -13,108 +14,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.221675188Z - restimestampmock: 2023-12-04T09:31:54.225118976Z + reqtimestampmock: 2024-10-17T15:34:48.584761459+05:30 + restimestampmock: 2024-10-17T15:34:48.58566376+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-1 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 60 - - 171 - - 18 - - 14 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.239481632Z - restimestampmock: 2023-12-04T09:31:54.239544545Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.587788974+05:30 + restimestampmock: 2024-10-17T15:34:48.587814806+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-2 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md52352f526dcb88d4b90bd71b94b136b94 + password: SCRAM-SHA-256 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 41, 62, 76, 120, 66, 111, 57, 110, 59, 79, 95, 89, 40, 38, 95, 93, 40, 122, 87, 94, 108, 47, 45, 68, 53, 53, 71, 121, 71, 81, 80, 86, 76, 53, 66, 48, 70, 77, 88, 114, 99, 71, 111, 53, 108, 83, 48, 101, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.599345179+05:30 + restimestampmock: 2024-10-17T15:34:48.599374053+05:30 +connectionId: "0" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-3 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 119, 57, 104, 66, 77, 47, 90, 55, 70, 115, 57, 119, 80, 84, 81, 89, 89, 98, 105, 70, 107, 56, 97, 78, 55, 89, 97, 89, 116, 84, 80, 113, 65, 111, 90, 85, 97, 109, 103, 100, 110, 55, 77, 61]} backend_key_data: - process_id: 3131 - secret_key: 2764319781 + process_id: 82 + secret_key: 4164145810 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.251630592Z - restimestampmock: 2023-12-04T09:31:54.251726127Z + reqtimestampmock: 2024-10-17T15:34:48.666211999+05:30 + restimestampmock: 2024-10-17T15:34:48.666289496+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-4 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -123,39 +154,35 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.274880117Z - restimestampmock: 2023-12-04T09:31:54.274951613Z + reqtimestampmock: 2024-10-17T15:34:48.687767465+05:30 + restimestampmock: 2024-10-17T15:34:48.68785817+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-5 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAADcAU0VUIGFwcGxpY2F0aW9uX25hbWUgPSAnUG9zdGdyZVNRTCBKREJDIERyaXZlcicAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -164,46 +191,40 @@ spec: - name: "" query: SET application_name = 'PostgreSQL JDBC Driver' parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - - header: ["1", "2", S, C, Z] + - header: ["1", "2", C, S, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET parameter_status: - name: application_name value: PostgreSQL JDBC Driver - name: application_name value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.27559474Z - restimestampmock: 2023-12-04T09:31:54.275618321Z + reqtimestampmock: 2024-10-17T15:34:48.688220699+05:30 + restimestampmock: 2024-10-17T15:34:48.688235698+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-6 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAAgAAAAAQgAAAAwAAAAAAAAAAEQAAAAGUABFAAAACQAAAAABUwAAAAQ= bind: - {} describe: @@ -215,30 +236,28 @@ spec: - name: "" query: "" parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", "n", I, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.284678471Z - restimestampmock: 2023-12-04T09:31:54.284701345Z + reqtimestampmock: 2024-10-17T15:34:48.699893691+05:30 + restimestampmock: 2024-10-17T15:34:48.699915857+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-7 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -249,108 +268,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.394397084Z - restimestampmock: 2023-12-04T09:31:54.394433581Z + reqtimestampmock: 2024-10-17T15:34:48.811189188+05:30 + restimestampmock: 2024-10-17T15:34:48.811268602+05:30 +connectionId: "2" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-8 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 125 - - 92 - - 145 - - 176 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.395960571Z - restimestampmock: 2023-12-04T09:31:54.395975903Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.812033699+05:30 + restimestampmock: 2024-10-17T15:34:48.812048615+05:30 +connectionId: "2" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-9 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md59065d8d33e90b54de75b9d281c05c1a3 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 93, 108, 40, 91, 62, 57, 71, 117, 52, 48, 115, 113, 98, 43, 53, 38, 108, 82, 37, 53, 68, 111, 114, 75, 82, 76, 48, 100, 88, 76, 115, 49, 49, 53, 47, 121, 70, 84, 69, 43, 52, 76, 51, 105, 116, 50, 82, 49, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.813307111+05:30 + restimestampmock: 2024-10-17T15:34:48.813319861+05:30 +connectionId: "2" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-10 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 84, 67, 112, 112, 109, 112, 106, 117, 108, 75, 70, 48, 66, 86, 81, 48, 106, 55, 57, 85, 111, 104, 75, 47, 99, 102, 70, 75, 122, 72, 107, 79, 113, 104, 47, 65, 90, 114, 111, 77, 101, 102, 77, 61]} backend_key_data: - process_id: 3132 - secret_key: 3132923432 + process_id: 83 + secret_key: 2404656702 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.397759126Z - restimestampmock: 2023-12-04T09:31:54.397785583Z + reqtimestampmock: 2024-10-17T15:34:48.841843449+05:30 + restimestampmock: 2024-10-17T15:34:48.841902572+05:30 +connectionId: "2" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-11 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -359,35 +408,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.398820436Z - restimestampmock: 2023-12-04T09:31:54.39883331Z + reqtimestampmock: 2024-10-17T15:34:48.842936951+05:30 + restimestampmock: 2024-10-17T15:34:48.842954534+05:30 +connectionId: "2" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-12 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -398,108 +442,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.401173958Z - restimestampmock: 2023-12-04T09:31:54.401716632Z + reqtimestampmock: 2024-10-17T15:34:48.84483509+05:30 + restimestampmock: 2024-10-17T15:34:48.845366446+05:30 +connectionId: "4" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-13 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 102 - - 114 - - 75 - - 18 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.403669345Z - restimestampmock: 2023-12-04T09:31:54.403756632Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.846340036+05:30 + restimestampmock: 2024-10-17T15:34:48.846354744+05:30 +connectionId: "4" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-14 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md5b0fb0e3fc44b9ff1d46019f52d3eabf1 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 79, 116, 83, 45, 112, 55, 121, 43, 97, 54, 86, 111, 98, 98, 62, 55, 60, 121, 124, 122, 106, 39, 50, 70, 66, 112, 97, 84, 84, 76, 74, 120, 101, 52, 81, 50, 111, 77, 85, 106, 113, 75, 78, 90, 55, 68, 105, 111, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.846888141+05:30 + restimestampmock: 2024-10-17T15:34:48.846900765+05:30 +connectionId: "4" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-15 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 81, 105, 90, 76, 70, 56, 103, 105, 90, 121, 118, 65, 48, 43, 108, 66, 121, 88, 76, 72, 87, 84, 66, 98, 122, 57, 111, 78, 90, 119, 89, 72, 85, 106, 74, 85, 103, 100, 67, 99, 121, 54, 77, 61]} backend_key_data: - process_id: 3133 - secret_key: 3360036509 + process_id: 84 + secret_key: 1586004475 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.405585352Z - restimestampmock: 2023-12-04T09:31:54.405612101Z + reqtimestampmock: 2024-10-17T15:34:48.859748882+05:30 + restimestampmock: 2024-10-17T15:34:48.859809546+05:30 +connectionId: "4" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-16 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -508,35 +582,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.406603456Z - restimestampmock: 2023-12-04T09:31:54.406616205Z + reqtimestampmock: 2024-10-17T15:34:48.860475814+05:30 + restimestampmock: 2024-10-17T15:34:48.860486605+05:30 +connectionId: "4" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-17 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -547,108 +616,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.408916022Z - restimestampmock: 2023-12-04T09:31:54.410067368Z + reqtimestampmock: 2024-10-17T15:34:48.864093557+05:30 + restimestampmock: 2024-10-17T15:34:48.864736909+05:30 +connectionId: "6" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-18 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 169 - - 199 - - 196 - - 182 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.411564817Z - restimestampmock: 2023-12-04T09:31:54.411583149Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.865765871+05:30 + restimestampmock: 2024-10-17T15:34:48.865782163+05:30 +connectionId: "6" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-19 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md547fbcfb599041fb8b863969a5bd23069 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 68, 77, 126, 54, 114, 60, 42, 39, 36, 121, 38, 55, 95, 60, 123, 58, 126, 37, 108, 71, 40, 107, 94, 40, 70, 101, 71, 121, 99, 51, 65, 47, 66, 65, 110, 112, 72, 85, 99, 52, 87, 76, 121, 81, 82, 71, 77, 106, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.866923538+05:30 + restimestampmock: 2024-10-17T15:34:48.866932996+05:30 +connectionId: "6" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-20 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 79, 43, 119, 50, 66, 113, 90, 90, 71, 120, 111, 98, 54, 99, 85, 107, 86, 97, 114, 52, 84, 114, 116, 99, 100, 100, 100, 117, 102, 47, 67, 104, 83, 74, 71, 82, 77, 68, 119, 119, 117, 110, 103, 61]} backend_key_data: - process_id: 3134 - secret_key: 1889556688 + process_id: 85 + secret_key: 3809386817 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.414053122Z - restimestampmock: 2023-12-04T09:31:54.414090703Z + reqtimestampmock: 2024-10-17T15:34:48.887531122+05:30 + restimestampmock: 2024-10-17T15:34:48.887572621+05:30 +connectionId: "6" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-21 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -657,35 +756,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.415343959Z - restimestampmock: 2023-12-04T09:31:54.41536Z + reqtimestampmock: 2024-10-17T15:34:48.888923488+05:30 + restimestampmock: 2024-10-17T15:34:48.888944446+05:30 +connectionId: "6" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-22 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -696,108 +790,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.417217844Z - restimestampmock: 2023-12-04T09:31:54.41824528Z + reqtimestampmock: 2024-10-17T15:34:48.891326734+05:30 + restimestampmock: 2024-10-17T15:34:48.895263216+05:30 +connectionId: "8" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-23 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 158 - - 68 - - 146 - - 251 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.419553616Z - restimestampmock: 2023-12-04T09:31:54.419574407Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.896760787+05:30 + restimestampmock: 2024-10-17T15:34:48.897445803+05:30 +connectionId: "8" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-24 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md554d35aa2f5a459fe5f531d6ac9bdb520 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 50, 106, 91, 100, 87, 71, 77, 58, 43, 103, 33, 48, 123, 87, 85, 67, 117, 95, 55, 124, 110, 35, 34, 47, 90, 105, 101, 106, 84, 51, 85, 68, 106, 73, 49, 101, 118, 66, 51, 65, 84, 49, 107, 65, 84, 97, 51, 69, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.897577299+05:30 + restimestampmock: 2024-10-17T15:34:48.897602381+05:30 +connectionId: "8" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-25 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 74, 109, 100, 43, 113, 49, 110, 86, 53, 73, 102, 107, 77, 51, 56, 118, 105, 69, 78, 107, 51, 50, 56, 120, 111, 69, 115, 80, 112, 48, 90, 74, 70, 111, 104, 47, 78, 115, 114, 73, 111, 99, 107, 61]} backend_key_data: - process_id: 3135 - secret_key: 2398208252 + process_id: 86 + secret_key: 4164826969 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.421088813Z - restimestampmock: 2023-12-04T09:31:54.421116353Z + reqtimestampmock: 2024-10-17T15:34:48.909785063+05:30 + restimestampmock: 2024-10-17T15:34:48.911195762+05:30 +connectionId: "8" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-26 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -806,35 +930,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.42178527Z - restimestampmock: 2023-12-04T09:31:54.421801728Z + reqtimestampmock: 2024-10-17T15:34:48.911403338+05:30 + restimestampmock: 2024-10-17T15:34:48.911538291+05:30 +connectionId: "8" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-27 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -845,108 +964,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.424055131Z - restimestampmock: 2023-12-04T09:31:54.425295971Z + reqtimestampmock: 2024-10-17T15:34:48.934751239+05:30 + restimestampmock: 2024-10-17T15:34:48.934878193+05:30 +connectionId: "10" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-28 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 199 - - 176 - - 183 - - 99 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.427164189Z - restimestampmock: 2023-12-04T09:31:54.427191187Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.936532133+05:30 + restimestampmock: 2024-10-17T15:34:48.936552507+05:30 +connectionId: "10" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-29 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md574bf0b35580a06cab7402832742186cc + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 115, 101, 86, 121, 114, 35, 45, 73, 34, 53, 112, 80, 42, 33, 93, 89, 100, 105, 106, 48, 99, 79, 109, 64, 53, 108, 99, 104, 65, 55, 116, 84, 82, 117, 107, 78, 116, 77, 80, 118, 52, 88, 47, 112, 82, 65, 53, 68, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.937106987+05:30 + restimestampmock: 2024-10-17T15:34:48.93711807+05:30 +connectionId: "10" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-30 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 108, 48, 49, 67, 86, 86, 56, 90, 103, 106, 102, 80, 99, 81, 85, 76, 67, 99, 110, 117, 119, 69, 87, 81, 98, 72, 56, 82, 43, 116, 88, 78, 107, 106, 107, 53, 65, 69, 79, 56, 97, 79, 56, 61]} backend_key_data: - process_id: 3136 - secret_key: 4105844140 + process_id: 87 + secret_key: 3357449510 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.428791714Z - restimestampmock: 2023-12-04T09:31:54.42882192Z + reqtimestampmock: 2024-10-17T15:34:48.942450626+05:30 + restimestampmock: 2024-10-17T15:34:48.942484125+05:30 +connectionId: "10" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-31 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -955,35 +1104,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.4298314Z - restimestampmock: 2023-12-04T09:31:54.429851815Z + reqtimestampmock: 2024-10-17T15:34:48.944194021+05:30 + restimestampmock: 2024-10-17T15:34:48.944206146+05:30 +connectionId: "10" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-32 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -994,108 +1138,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.433219316Z - restimestampmock: 2023-12-04T09:31:54.433794447Z + reqtimestampmock: 2024-10-17T15:34:48.946762678+05:30 + restimestampmock: 2024-10-17T15:34:48.947834639+05:30 +connectionId: "12" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-33 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 45 - - 23 - - 17 - - 126 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.435299979Z - restimestampmock: 2023-12-04T09:31:54.435320186Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.952359224+05:30 + restimestampmock: 2024-10-17T15:34:48.952416014+05:30 +connectionId: "12" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-34 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md50092bba26aeb31bfc2a7117ea7bad679 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 91, 107, 37, 70, 52, 91, 80, 72, 39, 62, 75, 43, 33, 84, 75, 111, 49, 102, 68, 55, 73, 49, 34, 111, 109, 100, 104, 78, 109, 74, 48, 98, 75, 72, 53, 115, 97, 90, 73, 113, 47, 49, 78, 118, 73, 85, 102, 74, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.955645355+05:30 + restimestampmock: 2024-10-17T15:34:48.955664188+05:30 +connectionId: "12" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-35 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 55, 108, 107, 82, 116, 111, 117, 77, 107, 43, 57, 112, 79, 108, 118, 116, 54, 79, 110, 90, 73, 105, 74, 101, 81, 43, 112, 122, 67, 119, 69, 67, 87, 84, 115, 69, 69, 116, 53, 57, 88, 70, 69, 61]} backend_key_data: - process_id: 3137 - secret_key: 636269289 + process_id: 88 + secret_key: 3422798856 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.436727558Z - restimestampmock: 2023-12-04T09:31:54.43680572Z + reqtimestampmock: 2024-10-17T15:34:48.960875082+05:30 + restimestampmock: 2024-10-17T15:34:48.960908705+05:30 +connectionId: "12" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-36 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -1104,35 +1278,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.437565006Z - restimestampmock: 2023-12-04T09:31:54.437578255Z + reqtimestampmock: 2024-10-17T15:34:48.980633614+05:30 + restimestampmock: 2024-10-17T15:34:48.980649155+05:30 +connectionId: "12" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-37 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -1143,108 +1312,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.439498012Z - restimestampmock: 2023-12-04T09:31:54.44005152Z + reqtimestampmock: 2024-10-17T15:34:48.987103962+05:30 + restimestampmock: 2024-10-17T15:34:48.987288497+05:30 +connectionId: "14" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-38 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 120 - - 90 - - 104 - - 238 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.441235905Z - restimestampmock: 2023-12-04T09:31:54.441260945Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:48.994578857+05:30 + restimestampmock: 2024-10-17T15:34:48.994601398+05:30 +connectionId: "14" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-39 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md56fd593528405120ba07eb71d87d090e0 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 61, 36, 63, 91, 109, 101, 88, 47, 95, 45, 121, 64, 85, 74, 115, 66, 120, 41, 106, 43, 125, 95, 89, 96, 87, 68, 52, 82, 77, 122, 89, 111, 101, 73, 89, 119, 104, 114, 84, 116, 70, 112, 73, 49, 83, 119, 73, 65, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:48.995280748+05:30 + restimestampmock: 2024-10-17T15:34:48.995292456+05:30 +connectionId: "14" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-40 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 114, 88, 111, 82, 88, 70, 110, 113, 77, 80, 81, 121, 110, 115, 72, 122, 69, 118, 111, 97, 77, 100, 109, 65, 86, 118, 68, 108, 83, 101, 116, 117, 117, 111, 103, 107, 111, 119, 115, 72, 117, 47, 85, 61]} backend_key_data: - process_id: 3138 - secret_key: 766639318 + process_id: 89 + secret_key: 3571651107 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.442665358Z - restimestampmock: 2023-12-04T09:31:54.442706523Z + reqtimestampmock: 2024-10-17T15:34:49.001528312+05:30 + restimestampmock: 2024-10-17T15:34:49.001563895+05:30 +connectionId: "14" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-41 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -1253,35 +1452,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.443556887Z - restimestampmock: 2023-12-04T09:31:54.443571553Z + reqtimestampmock: 2024-10-17T15:34:49.002229912+05:30 + restimestampmock: 2024-10-17T15:34:49.002242328+05:30 +connectionId: "14" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-42 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -1292,108 +1486,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.445576471Z - restimestampmock: 2023-12-04T09:31:54.446144519Z + reqtimestampmock: 2024-10-17T15:34:49.003699775+05:30 + restimestampmock: 2024-10-17T15:34:49.004399292+05:30 +connectionId: "16" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-43 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 235 - - 214 - - 236 - - 181 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.447635135Z - restimestampmock: 2023-12-04T09:31:54.447651843Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:49.005150474+05:30 + restimestampmock: 2024-10-17T15:34:49.00517039+05:30 +connectionId: "16" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-44 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md5957d6c14ceea0a3c6d09e79901f8eb72 + password: SCRAM-SHA-256 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 74, 33, 58, 39, 64, 46, 99, 79, 79, 48, 89, 58, 39, 84, 69, 42, 108, 83, 110, 113, 55, 46, 92, 75, 116, 100, 88, 69, 101, 50, 54, 57, 77, 56, 80, 89, 72, 121, 97, 117, 70, 43, 52, 102, 116, 52, 84, 55, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:49.006223769+05:30 + restimestampmock: 2024-10-17T15:34:49.00624731+05:30 +connectionId: "16" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-45 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 120, 98, 82, 55, 120, 53, 76, 75, 120, 75, 121, 71, 47, 98, 90, 53, 75, 119, 67, 109, 109, 97, 53, 99, 114, 85, 70, 70, 53, 56, 117, 117, 54, 76, 117, 87, 118, 77, 51, 108, 98, 53, 89, 61]} backend_key_data: - process_id: 3139 - secret_key: 927666211 + process_id: 90 + secret_key: 1822359091 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.453462235Z - restimestampmock: 2023-12-04T09:31:54.453507357Z + reqtimestampmock: 2024-10-17T15:34:49.009574983+05:30 + restimestampmock: 2024-10-17T15:34:49.009604357+05:30 +connectionId: "16" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-46 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -1402,35 +1626,30 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.454291725Z - restimestampmock: 2023-12-04T09:31:54.454312682Z + reqtimestampmock: 2024-10-17T15:34:49.010638737+05:30 + restimestampmock: 2024-10-17T15:34:49.010649653+05:30 +connectionId: "16" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-47 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest length: 8 @@ -1441,108 +1660,138 @@ spec: postgresresponses: - payload: Tg== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.457630061Z - restimestampmock: 2023-12-04T09:31:54.458190193Z + reqtimestampmock: 2024-10-17T15:34:49.013224895+05:30 + restimestampmock: 2024-10-17T15:34:49.01397216+05:30 +connectionId: "18" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-48 spec: - metadata: {} + metadata: + type: config postgresrequests: - identifier: StartupRequest - payload: AAAAeAADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUARXRjL1VUQwBleHRyYV9mbG9hdF9kaWdpdHMAMgAA + payload: AAAAfQADAAB1c2VyAGtlcGxveS11c2VyAGRhdGFiYXNlAGtlcGxveS10ZXN0AGNsaWVudF9lbmNvZGluZwBVVEY4AERhdGVTdHlsZQBJU08AVGltZVpvbmUAQXNpYS9Lb2xrYXRhAGV4dHJhX2Zsb2F0X2RpZ2l0cwAyAAA= auth_type: 0 postgresresponses: - header: [R] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 3 - - 179 - - 169 - - 111 + salt: [0, 0, 0, 0] + authentication_sasl: + auth_mechanisms: + - SCRAM-SHA-256 msg_type: 82 - auth_type: 5 - reqtimestampmock: 2023-12-04T09:31:54.459339956Z - restimestampmock: 2023-12-04T09:31:54.459366871Z + auth_type: 10 + reqtimestampmock: 2024-10-17T15:34:49.0149475+05:30 + restimestampmock: 2024-10-17T15:34:49.014961333+05:30 +connectionId: "18" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-49 spec: - metadata: {} + metadata: + type: config postgresrequests: - header: [p] identifier: ClientRequest length: 8 password_message: - password: md5eb877d3918d9e492eccff9eac5591c9a + password: SCRAM-SHA-256 msg_type: 112 auth_type: 0 postgresresponses: - - header: [R, S, S, S, S, S, S, S, S, S, S, S, K, Z] + - header: [R] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + authentication_sasl_continue: {data: [114, 61, 37, 68, 119, 54, 45, 39, 125, 82, 125, 77, 102, 48, 87, 93, 86, 93, 97, 123, 46, 77, 39, 110, 49, 52, 77, 83, 43, 66, 66, 82, 71, 84, 78, 119, 74, 114, 52, 70, 84, 43, 56, 56, 68, 83, 119, 85, 82, 109, 44, 115, 61, 119, 79, 80, 67, 57, 122, 77, 109, 117, 106, 103, 100, 108, 54, 80, 74, 106, 103, 82, 49, 76, 81, 61, 61, 44, 105, 61, 52, 48, 57, 54]} + msg_type: 82 + auth_type: 11 + reqtimestampmock: 2024-10-17T15:34:49.01556652+05:30 + restimestampmock: 2024-10-17T15:34:49.015578436+05:30 +connectionId: "18" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-50 +spec: + metadata: + type: config + postgresrequests: + - header: [p] + identifier: ClientRequest + length: 8 + msg_type: 112 + auth_type: 0 + postgresresponses: + - header: [R, R, S, S, S, S, S, S, S, S, S, S, S, S, S, S, K, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + authentication_sasl_final: {data: [118, 61, 112, 100, 114, 121, 122, 48, 43, 48, 99, 54, 109, 120, 102, 72, 98, 53, 71, 110, 104, 90, 51, 78, 76, 72, 102, 82, 89, 118, 54, 74, 80, 98, 88, 68, 108, 122, 73, 97, 76, 75, 65, 85, 89, 61]} backend_key_data: - process_id: 3140 - secret_key: 3678102350 + process_id: 91 + secret_key: 63120146 parameter_status: - - name: application_name - value: "" - - name: client_encoding - value: UTF8 - - name: DateStyle - value: ISO, MDY + - name: in_hot_standby + value: "off" - name: integer_datetimes value: "on" + - name: TimeZone + value: Asia/Kolkata - name: IntervalStyle value: postgres - name: is_superuser value: "on" - - name: server_encoding - value: UTF8 - - name: server_version - value: 10.5 (Debian 10.5-2.pgdg90+1) - - name: session_authorization - value: keploy-user + - name: application_name + value: "" + - name: default_transaction_read_only + value: "off" + - name: scram_iterations + value: "4096" + - name: DateStyle + value: ISO, MDY - name: standard_conforming_strings value: "on" - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC - - name: TimeZone - value: Etc/UTC + - name: session_authorization + value: keploy-user + - name: client_encoding + value: UTF8 + - name: server_version + value: 16.3 (Debian 16.3-1.pgdg120+1) + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 + - name: server_encoding + value: UTF8 ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.460660416Z - restimestampmock: 2023-12-04T09:31:54.460696789Z + reqtimestampmock: 2024-10-17T15:34:49.019034063+05:30 + restimestampmock: 2024-10-17T15:34:49.01907677+05:30 +connectionId: "18" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-51 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAACIAU0VUIGV4dHJhX2Zsb2F0X2RpZ2l0cyA9IDMAAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAVMAAAAE bind: - {} execute: @@ -1551,39 +1800,35 @@ spec: - name: "" query: SET extra_float_digits = 3 parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 84 + - command_tag_type: SET ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.461539612Z - restimestampmock: 2023-12-04T09:31:54.461561235Z + reqtimestampmock: 2024-10-17T15:34:49.019757329+05:30 + restimestampmock: 2024-10-17T15:34:49.019773203+05:30 +connectionId: "18" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-52 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAACgAU0hPVyBUUkFOU0FDVElPTiBJU09MQVRJT04gTEVWRUwAAABCAAAADAAAAAAAAAAARAAAAAZQAEUAAAAJAAAAAABTAAAABA== bind: - {} describe: @@ -1595,43 +1840,37 @@ spec: - name: "" query: SHOW TRANSACTION ISOLATION LEVEL parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAAuAAF0cmFuc2FjdGlvbl9pc29sYXRpb24AAAAAAAAAAAAAGf///////wAARAAAABgAAQAAAA5yZWFkIGNvbW1pdHRlZEMAAAAJU0hPVwBaAAAABUk= authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 72 - - 79 - - 87 - data_row: [{row_values: [read committed]}, {row_values: [read committed]}, {row_values: [read committed]}] + - command_tag_type: SHOW + data_row: [{row_values: [read committed]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [116, 114, 97, 110, 115, 97, 99, 116, 105, 111, 110, 95, 105, 115, 111, 108, 97, 116, 105, 111, 110], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: transaction_isolation, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.285793444Z - restimestampmock: 2023-12-04T09:31:54.285818859Z + reqtimestampmock: 2024-10-17T15:34:48.700588708+05:30 + restimestampmock: 2024-10-17T15:34:48.700657789+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-53 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAB8Ac2VsZWN0IGN1cnJlbnRfc2NoZW1hKCkAAABCAAAADAAAAAAAAAAARAAAAAZQAEUAAAAJAAAAAABTAAAABA== bind: - {} describe: @@ -1643,47 +1882,37 @@ spec: - name: "" query: select current_schema() parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAAnAAFjdXJyZW50X3NjaGVtYQAAAAAAAAAAAAATAED/////AABEAAAAEAABAAAABnB1YmxpY0MAAAANU0VMRUNUIDEAWgAAAAVJ authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - data_row: [{row_values: [public]}, {row_values: [public]}, {row_values: [public]}] + - command_tag_type: SELECT 1 + data_row: [{row_values: [public]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [99, 117, 114, 114, 101, 110, 116, 95, 115, 99, 104, 101, 109, 97], table_oid: 0, table_attribute_number: 0, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: current_schema, table_oid: 0, table_attribute_number: 0, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.554024286Z - restimestampmock: 2023-12-04T09:31:54.554083199Z + reqtimestampmock: 2024-10-17T15:34:49.127237796+05:30 + restimestampmock: 2024-10-17T15:34:49.127295544+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-54 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAB8Ac2VsZWN0IGN1cnJlbnRfc2NoZW1hKCkAAABCAAAADAAAAAAAAAAARAAAAAZQAEUAAAAJAAAAAABTAAAABA== bind: - {} describe: @@ -1695,47 +1924,37 @@ spec: - name: "" query: select current_schema() parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAAnAAFjdXJyZW50X3NjaGVtYQAAAAAAAAAAAAATAED/////AABEAAAAEAABAAAABnB1YmxpY0MAAAANU0VMRUNUIDEAWgAAAAVJ authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - data_row: [{row_values: [public]}, {row_values: [public]}, {row_values: [public]}] + - command_tag_type: SELECT 1 + data_row: [{row_values: [public]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [99, 117, 114, 114, 101, 110, 116, 95, 115, 99, 104, 101, 109, 97], table_oid: 0, table_attribute_number: 0, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: current_schema, table_oid: 0, table_attribute_number: 0, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.55520588Z - restimestampmock: 2023-12-04T09:31:54.555227379Z + reqtimestampmock: 2024-10-17T15:34:49.128549499+05:30 + restimestampmock: 2024-10-17T15:34:49.128574832+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-55 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAADIAc2VsZWN0ICogZnJvbSBpbmZvcm1hdGlvbl9zY2hlbWEuc2VxdWVuY2VzAAAAQgAAAAwAAAAAAAAAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} describe: @@ -1747,47 +1966,37 @@ spec: - name: "" query: select * from information_schema.sequences parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAGOAAxzZXF1ZW5jZV9jYXRhbG9nAAAAMhkAAQAABBP///////8AAHNlcXVlbmNlX3NjaGVtYQAAADIZAAIAAAQT////////AABzZXF1ZW5jZV9uYW1lAAAAMhkAAwAABBP///////8AAGRhdGFfdHlwZQAAADIZAAQAAAQT////////AABudW1lcmljX3ByZWNpc2lvbgAAADIZAAUAAAAXAAT/////AABudW1lcmljX3ByZWNpc2lvbl9yYWRpeAAAADIZAAYAAAAXAAT/////AABudW1lcmljX3NjYWxlAAAAMhkABwAAABcABP////8AAHN0YXJ0X3ZhbHVlAAAAMhkACAAABBP///////8AAG1pbmltdW1fdmFsdWUAAAAyGQAJAAAEE////////wAAbWF4aW11bV92YWx1ZQAAADIZAAoAAAQT////////AABpbmNyZW1lbnQAAAAyGQALAAAEE////////wAAY3ljbGVfb3B0aW9uAAAAMhkADAAABBP//wAAAAcAAEQAAAB5AAwAAAALa2VwbG95LXRlc3QAAAAGcHVibGljAAAAEGVtcGxveWVlc19pZF9zZXEAAAAGYmlnaW50AAAAAjY0AAAAATIAAAABMAAAAAExAAAAATEAAAATOTIyMzM3MjAzNjg1NDc3NTgwNwAAAAExAAAAAk5PQwAAAA1TRUxFQ1QgMQBaAAAABUk= authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - data_row: [{row_values: [keploy-test, public, employees_id_seq, bigint, "64", "2", "0", "1", "1", "9223372036854775807", "1", "NO"]}, {row_values: [keploy-test, public, employees_id_seq, bigint, "64", "2", "0", "1", "1", "9223372036854775807", "1", "NO"]}, {row_values: [keploy-test, public, employees_id_seq, bigint, "64", "2", "0", "1", "1", "9223372036854775807", "1", "NO"]}] + - command_tag_type: SELECT 1 + data_row: [{row_values: [keploy-test, public, employees_id_seq, bigint, "64", "2", "0", "1", "1", "9223372036854775807", "1", "NO"]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [115, 101, 113, 117, 101, 110, 99, 101, 95, 99, 97, 116, 97, 108, 111, 103], table_oid: 12825, table_attribute_number: 1, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [115, 101, 113, 117, 101, 110, 99, 101, 95, 115, 99, 104, 101, 109, 97], table_oid: 12825, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [115, 101, 113, 117, 101, 110, 99, 101, 95, 110, 97, 109, 101], table_oid: 12825, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [100, 97, 116, 97, 95, 116, 121, 112, 101], table_oid: 12825, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [110, 117, 109, 101, 114, 105, 99, 95, 112, 114, 101, 99, 105, 115, 105, 111, 110], table_oid: 12825, table_attribute_number: 5, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {name: [110, 117, 109, 101, 114, 105, 99, 95, 112, 114, 101, 99, 105, 115, 105, 111, 110, 95, 114, 97, 100, 105, 120], table_oid: 12825, table_attribute_number: 6, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {name: [110, 117, 109, 101, 114, 105, 99, 95, 115, 99, 97, 108, 101], table_oid: 12825, table_attribute_number: 7, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {name: [115, 116, 97, 114, 116, 95, 118, 97, 108, 117, 101], table_oid: 12825, table_attribute_number: 8, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [109, 105, 110, 105, 109, 117, 109, 95, 118, 97, 108, 117, 101], table_oid: 12825, table_attribute_number: 9, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [109, 97, 120, 105, 109, 117, 109, 95, 118, 97, 108, 117, 101], table_oid: 12825, table_attribute_number: 10, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [105, 110, 99, 114, 101, 109, 101, 110, 116], table_oid: 12825, table_attribute_number: 11, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {name: [99, 121, 99, 108, 101, 95, 111, 112, 116, 105, 111, 110], table_oid: 12825, table_attribute_number: 12, data_type_oid: 1043, data_type_size: -1, type_modifier: 7, format: 0}]} + row_description: {fields: [{field_name: sequence_catalog, table_oid: 13391, table_attribute_number: 1, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: sequence_schema, table_oid: 13391, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: sequence_name, table_oid: 13391, table_attribute_number: 3, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: data_type, table_oid: 13391, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: numeric_precision, table_oid: 13391, table_attribute_number: 5, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: numeric_precision_radix, table_oid: 13391, table_attribute_number: 6, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: numeric_scale, table_oid: 13391, table_attribute_number: 7, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: start_value, table_oid: 13391, table_attribute_number: 8, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: minimum_value, table_oid: 13391, table_attribute_number: 9, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: maximum_value, table_oid: 13391, table_attribute_number: 10, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: increment, table_oid: 13391, table_attribute_number: 11, data_type_oid: 1043, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: cycle_option, table_oid: 13391, table_attribute_number: 12, data_type_oid: 1043, data_type_size: -1, type_modifier: 7, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.85762399Z - restimestampmock: 2023-12-04T09:31:54.857720484Z + reqtimestampmock: 2024-10-17T15:34:49.556747345+05:30 + restimestampmock: 2024-10-17T15:34:49.556830217+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-56 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAABowAU0VMRUNUIE5VTEwgQVMgVEFCTEVfQ0FULCBuLm5zcG5hbWUgQVMgVEFCTEVfU0NIRU0sIGMucmVsbmFtZSBBUyBUQUJMRV9OQU1FLCAgQ0FTRSBuLm5zcG5hbWUgfiAnXnBnXycgT1Igbi5uc3BuYW1lID0gJ2luZm9ybWF0aW9uX3NjaGVtYScgIFdIRU4gdHJ1ZSBUSEVOIENBU0UgIFdIRU4gbi5uc3BuYW1lID0gJ3BnX2NhdGFsb2cnIE9SIG4ubnNwbmFtZSA9ICdpbmZvcm1hdGlvbl9zY2hlbWEnIFRIRU4gQ0FTRSBjLnJlbGtpbmQgICBXSEVOICdyJyBUSEVOICdTWVNURU0gVEFCTEUnICAgV0hFTiAndicgVEhFTiAnU1lTVEVNIFZJRVcnICAgV0hFTiAnaScgVEhFTiAnU1lTVEVNIElOREVYJyAgIEVMU0UgTlVMTCAgIEVORCAgV0hFTiBuLm5zcG5hbWUgPSAncGdfdG9hc3QnIFRIRU4gQ0FTRSBjLnJlbGtpbmQgICBXSEVOICdyJyBUSEVOICdTWVNURU0gVE9BU1QgVEFCTEUnICAgV0hFTiAnaScgVEhFTiAnU1lTVEVNIFRPQVNUIElOREVYJyAgIEVMU0UgTlVMTCAgIEVORCAgRUxTRSBDQVNFIGMucmVsa2luZCAgIFdIRU4gJ3InIFRIRU4gJ1RFTVBPUkFSWSBUQUJMRScgICBXSEVOICdwJyBUSEVOICdURU1QT1JBUlkgVEFCTEUnICAgV0hFTiAnaScgVEhFTiAnVEVNUE9SQVJZIElOREVYJyAgIFdIRU4gJ1MnIFRIRU4gJ1RFTVBPUkFSWSBTRVFVRU5DRScgICBXSEVOICd2JyBUSEVOICdURU1QT1JBUlkgVklFVycgICBFTFNFIE5VTEwgICBFTkQgIEVORCAgV0hFTiBmYWxzZSBUSEVOIENBU0UgYy5yZWxraW5kICBXSEVOICdyJyBUSEVOICdUQUJMRScgIFdIRU4gJ3AnIFRIRU4gJ1BBUlRJVElPTkVEIFRBQkxFJyAgV0hFTiAnaScgVEhFTiAnSU5ERVgnICBXSEVOICdQJyB0aGVuICdQQVJUSVRJT05FRCBJTkRFWCcgIFdIRU4gJ1MnIFRIRU4gJ1NFUVVFTkNFJyAgV0hFTiAndicgVEhFTiAnVklFVycgIFdIRU4gJ2MnIFRIRU4gJ1RZUEUnICBXSEVOICdmJyBUSEVOICdGT1JFSUdOIFRBQkxFJyAgV0hFTiAnbScgVEhFTiAnTUFURVJJQUxJWkVEIFZJRVcnICBFTFNFIE5VTEwgIEVORCAgRUxTRSBOVUxMICBFTkQgIEFTIFRBQkxFX1RZUEUsIGQuZGVzY3JpcHRpb24gQVMgUkVNQVJLUywgICcnIGFzIFRZUEVfQ0FULCAnJyBhcyBUWVBFX1NDSEVNLCAnJyBhcyBUWVBFX05BTUUsICcnIEFTIFNFTEZfUkVGRVJFTkNJTkdfQ09MX05BTUUsICcnIEFTIFJFRl9HRU5FUkFUSU9OICBGUk9NIHBnX2NhdGFsb2cucGdfbmFtZXNwYWNlIG4sIHBnX2NhdGFsb2cucGdfY2xhc3MgYyAgTEVGVCBKT0lOIHBnX2NhdGFsb2cucGdfZGVzY3JpcHRpb24gZCBPTiAoYy5vaWQgPSBkLm9iam9pZCBBTkQgZC5vYmpzdWJpZCA9IDAgIGFuZCBkLmNsYXNzb2lkID0gJ3BnX2NsYXNzJzo6cmVnY2xhc3MpICBXSEVSRSBjLnJlbG5hbWVzcGFjZSA9IG4ub2lkICBBTkQgbi5uc3BuYW1lIExJS0UgJ3B1YmxpYycgQU5EIGMucmVsbmFtZSBMSUtFICclJyBBTkQgKGZhbHNlICBPUiAoIGMucmVsa2luZCA9ICdyJyBBTkQgbi5uc3BuYW1lICF+ICdecGdfJyBBTkQgbi5uc3BuYW1lIDw+ICdpbmZvcm1hdGlvbl9zY2hlbWEnICkgIE9SICggYy5yZWxraW5kID0gJ3YnIEFORCBuLm5zcG5hbWUgPD4gJ3BnX2NhdGFsb2cnIEFORCBuLm5zcG5hbWUgPD4gJ2luZm9ybWF0aW9uX3NjaGVtYScgKSApICBPUkRFUiBCWSBUQUJMRV9UWVBFLFRBQkxFX1NDSEVNLFRBQkxFX05BTUUgAAAAQgAAAAwAAAAAAAAAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} describe: @@ -1799,47 +2008,37 @@ spec: - name: "" query: 'SELECT NULL AS TABLE_CAT, n.nspname AS TABLE_SCHEM, c.relname AS TABLE_NAME, CASE n.nspname ~ ''^pg_'' OR n.nspname = ''information_schema'' WHEN true THEN CASE WHEN n.nspname = ''pg_catalog'' OR n.nspname = ''information_schema'' THEN CASE c.relkind WHEN ''r'' THEN ''SYSTEM TABLE'' WHEN ''v'' THEN ''SYSTEM VIEW'' WHEN ''i'' THEN ''SYSTEM INDEX'' ELSE NULL END WHEN n.nspname = ''pg_toast'' THEN CASE c.relkind WHEN ''r'' THEN ''SYSTEM TOAST TABLE'' WHEN ''i'' THEN ''SYSTEM TOAST INDEX'' ELSE NULL END ELSE CASE c.relkind WHEN ''r'' THEN ''TEMPORARY TABLE'' WHEN ''p'' THEN ''TEMPORARY TABLE'' WHEN ''i'' THEN ''TEMPORARY INDEX'' WHEN ''S'' THEN ''TEMPORARY SEQUENCE'' WHEN ''v'' THEN ''TEMPORARY VIEW'' ELSE NULL END END WHEN false THEN CASE c.relkind WHEN ''r'' THEN ''TABLE'' WHEN ''p'' THEN ''PARTITIONED TABLE'' WHEN ''i'' THEN ''INDEX'' WHEN ''P'' then ''PARTITIONED INDEX'' WHEN ''S'' THEN ''SEQUENCE'' WHEN ''v'' THEN ''VIEW'' WHEN ''c'' THEN ''TYPE'' WHEN ''f'' THEN ''FOREIGN TABLE'' WHEN ''m'' THEN ''MATERIALIZED VIEW'' ELSE NULL END ELSE NULL END AS TABLE_TYPE, d.description AS REMARKS, '''' as TYPE_CAT, '''' as TYPE_SCHEM, '''' as TYPE_NAME, '''' AS SELF_REFERENCING_COL_NAME, '''' AS REF_GENERATION FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_description d ON (c.oid = d.objoid AND d.objsubid = 0 and d.classoid = ''pg_class''::regclass) WHERE c.relnamespace = n.oid AND n.nspname LIKE ''public'' AND c.relname LIKE ''%'' AND (false OR ( c.relkind = ''r'' AND n.nspname !~ ''^pg_'' AND n.nspname <> ''information_schema'' ) OR ( c.relkind = ''v'' AND n.nspname <> ''pg_catalog'' AND n.nspname <> ''information_schema'' ) ) ORDER BY TABLE_TYPE,TABLE_SCHEM,TABLE_NAME ' parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAE1AAp0YWJsZV9jYXQAAAAAAAAAAAAAGf///////wAAdGFibGVfc2NoZW0AAAAKNwABAAAAEwBA/////wAAdGFibGVfbmFtZQAAAATrAAEAAAATAED/////AAB0YWJsZV90eXBlAAAAAAAAAAAAABn///////8AAHJlbWFya3MAAAAKMQAEAAAAGf///////wAAdHlwZV9jYXQAAAAAAAAAAAAAGf///////wAAdHlwZV9zY2hlbQAAAAAAAAAAAAAZ////////AAB0eXBlX25hbWUAAAAAAAAAAAAAGf///////wAAc2VsZl9yZWZlcmVuY2luZ19jb2xfbmFtZQAAAAAAAAAAAAAZ////////AAByZWZfZ2VuZXJhdGlvbgAAAAAAAAAAAAAZ////////AABEAAAAQgAK/////wAAAAZwdWJsaWMAAAAJZW1wbG95ZWVzAAAABVRBQkxF/////wAAAAAAAAAAAAAAAAAAAAAAAAAAQwAAAA1TRUxFQ1QgMQBaAAAABUk= authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - data_row: [{row_values: ["", public, employees, TABLE, "", "", "", "", "", ""]}, {row_values: ["", public, employees, TABLE, "", "", "", "", "", ""]}, {row_values: ["", public, employees, TABLE, "", "", "", "", "", ""]}] + - command_tag_type: SELECT 1 + data_row: [{row_values: ["", public, employees, TABLE, "", "", "", "", "", ""]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [116, 97, 98, 108, 101, 95, 99, 97, 116], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [116, 97, 98, 108, 101, 95, 115, 99, 104, 101, 109], table_oid: 2615, table_attribute_number: 1, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {name: [116, 97, 98, 108, 101, 95, 110, 97, 109, 101], table_oid: 1259, table_attribute_number: 1, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {name: [116, 97, 98, 108, 101, 95, 116, 121, 112, 101], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [114, 101, 109, 97, 114, 107, 115], table_oid: 2609, table_attribute_number: 4, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [116, 121, 112, 101, 95, 99, 97, 116], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [116, 121, 112, 101, 95, 115, 99, 104, 101, 109], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [116, 121, 112, 101, 95, 110, 97, 109, 101], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [115, 101, 108, 102, 95, 114, 101, 102, 101, 114, 101, 110, 99, 105, 110, 103, 95, 99, 111, 108, 95, 110, 97, 109, 101], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [114, 101, 102, 95, 103, 101, 110, 101, 114, 97, 116, 105, 111, 110], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: table_cat, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: table_schem, table_oid: 2615, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: table_name, table_oid: 1259, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: table_type, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: remarks, table_oid: 2609, table_attribute_number: 4, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: type_cat, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: type_schem, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: type_name, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: self_referencing_col_name, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: ref_generation, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.865526753Z - restimestampmock: 2023-12-04T09:31:54.865602206Z + reqtimestampmock: 2024-10-17T15:34:49.563865633+05:30 + restimestampmock: 2024-10-17T15:34:49.563933797+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-57 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAABFkAU0VMRUNUICogRlJPTSAoU0VMRUNUIG4ubnNwbmFtZSxjLnJlbG5hbWUsYS5hdHRuYW1lLGEuYXR0dHlwaWQsYS5hdHRub3RudWxsIE9SICh0LnR5cHR5cGUgPSAnZCcgQU5EIHQudHlwbm90bnVsbCkgQVMgYXR0bm90bnVsbCxhLmF0dHR5cG1vZCxhLmF0dGxlbix0LnR5cHR5cG1vZCxyb3dfbnVtYmVyKCkgT1ZFUiAoUEFSVElUSU9OIEJZIGEuYXR0cmVsaWQgT1JERVIgQlkgYS5hdHRudW0pIEFTIGF0dG51bSwgbnVsbGlmKGEuYXR0aWRlbnRpdHksICcnKSBhcyBhdHRpZGVudGl0eSxwZ19jYXRhbG9nLnBnX2dldF9leHByKGRlZi5hZGJpbiwgZGVmLmFkcmVsaWQpIEFTIGFkc3JjLGRzYy5kZXNjcmlwdGlvbix0LnR5cGJhc2V0eXBlLHQudHlwdHlwZSAgRlJPTSBwZ19jYXRhbG9nLnBnX25hbWVzcGFjZSBuICBKT0lOIHBnX2NhdGFsb2cucGdfY2xhc3MgYyBPTiAoYy5yZWxuYW1lc3BhY2UgPSBuLm9pZCkgIEpPSU4gcGdfY2F0YWxvZy5wZ19hdHRyaWJ1dGUgYSBPTiAoYS5hdHRyZWxpZD1jLm9pZCkgIEpPSU4gcGdfY2F0YWxvZy5wZ190eXBlIHQgT04gKGEuYXR0dHlwaWQgPSB0Lm9pZCkgIExFRlQgSk9JTiBwZ19jYXRhbG9nLnBnX2F0dHJkZWYgZGVmIE9OIChhLmF0dHJlbGlkPWRlZi5hZHJlbGlkIEFORCBhLmF0dG51bSA9IGRlZi5hZG51bSkgIExFRlQgSk9JTiBwZ19jYXRhbG9nLnBnX2Rlc2NyaXB0aW9uIGRzYyBPTiAoYy5vaWQ9ZHNjLm9iam9pZCBBTkQgYS5hdHRudW0gPSBkc2Mub2Jqc3ViaWQpICBMRUZUIEpPSU4gcGdfY2F0YWxvZy5wZ19jbGFzcyBkYyBPTiAoZGMub2lkPWRzYy5jbGFzc29pZCBBTkQgZGMucmVsbmFtZT0ncGdfY2xhc3MnKSAgTEVGVCBKT0lOIHBnX2NhdGFsb2cucGdfbmFtZXNwYWNlIGRuIE9OIChkYy5yZWxuYW1lc3BhY2U9ZG4ub2lkIEFORCBkbi5uc3BuYW1lPSdwZ19jYXRhbG9nJykgIFdIRVJFIGMucmVsa2luZCBpbiAoJ3InLCdwJywndicsJ2YnLCdtJykgYW5kIGEuYXR0bnVtID4gMCBBTkQgTk9UIGEuYXR0aXNkcm9wcGVkICBBTkQgbi5uc3BuYW1lIExJS0UgJ3B1YmxpYycpIGMgV0hFUkUgdHJ1ZSAgQU5EIGF0dG5hbWUgTElLRSAnJScgT1JERVIgQlkgbnNwbmFtZSxjLnJlbG5hbWUsYXR0bnVtIAAAAEIAAAAMAAAAAAAAAABEAAAABlAARQAAAAkAAAAAAFMAAAAE bind: - {} describe: @@ -1849,49 +2048,39 @@ spec: - {} parse: - name: "" - query: 'SELECT * FROM (SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull OR (t.typtype = ''d'' AND t.typnotnull) AS attnotnull,a.atttypmod,a.attlen,t.typtypmod,row_number() OVER (PARTITION BY a.attrelid ORDER BY a.attnum) AS attnum, nullif(a.attidentity, '''') as attidentity,null as attgenerated,pg_catalog.pg_get_expr(def.adbin, def.adrelid) AS adsrc,dsc.description,t.typbasetype,t.typtype FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname=''pg_class'') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname=''pg_catalog'') WHERE c.relkind in (''r'',''p'',''v'',''f'',''m'') and a.attnum > 0 AND NOT a.attisdropped AND n.nspname LIKE ''public'') c WHERE true AND attname LIKE ''%'' ORDER BY nspname,c.relname,attnum ' + query: 'SELECT * FROM (SELECT n.nspname,c.relname,a.attname,a.atttypid,a.attnotnull OR (t.typtype = ''d'' AND t.typnotnull) AS attnotnull,a.atttypmod,a.attlen,t.typtypmod,row_number() OVER (PARTITION BY a.attrelid ORDER BY a.attnum) AS attnum, nullif(a.attidentity, '''') as attidentity,pg_catalog.pg_get_expr(def.adbin, def.adrelid) AS adsrc,dsc.description,t.typbasetype,t.typtype FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_class c ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (a.attrelid=c.oid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef def ON (a.attrelid=def.adrelid AND a.attnum = def.adnum) LEFT JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid) LEFT JOIN pg_catalog.pg_class dc ON (dc.oid=dsc.classoid AND dc.relname=''pg_class'') LEFT JOIN pg_catalog.pg_namespace dn ON (dc.relnamespace=dn.oid AND dn.nspname=''pg_catalog'') WHERE c.relkind in (''r'',''p'',''v'',''f'',''m'') and a.attnum > 0 AND NOT a.attisdropped AND n.nspname LIKE ''public'') c WHERE true AND attname LIKE ''%'' ORDER BY nspname,c.relname,attnum ' parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", T, D, D, D, D, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABFQAAAGhAA9uc3BuYW1lAAAACjcAAQAAABMAQP////8AAHJlbG5hbWUAAAAE6wABAAAAEwBA/////wAAYXR0bmFtZQAAAAThAAIAAAATAED/////AABhdHR0eXBpZAAAAAThAAMAAAAaAAT/////AABhdHRub3RudWxsAAAAAAAAAAAAABAAAf////8AAGF0dHR5cG1vZAAAAAThAAkAAAAXAAT/////AABhdHRsZW4AAAAE4QAFAAAAFQAC/////wAAdHlwdHlwbW9kAAAABN8AGQAAABcABP////8AAGF0dG51bQAAAAAAAAAAAAAUAAj/////AABhdHRpZGVudGl0eQAAAAAAAAAAAAASAAH/////AABhdHRnZW5lcmF0ZWQAAAAAAAAAAAAAGf///////wAAYWRzcmMAAAAAAAAAAAAAGf///////wAAZGVzY3JpcHRpb24AAAAKMQAEAAAAGf///////wAAdHlwYmFzZXR5cGUAAAAE3wAYAAAAGgAE/////wAAdHlwdHlwZQAAAATfAAYAAAASAAH/////AABEAAAAgwAPAAAABnB1YmxpYwAAAAllbXBsb3llZXMAAAACaWQAAAACMjAAAAABdAAAAAItMQAAAAE4AAAAAi0xAAAAATH//////////wAAACVuZXh0dmFsKCdlbXBsb3llZXNfaWRfc2VxJzo6cmVnY2xhc3Mp/////wAAAAEwAAAAAWJEAAAAZQAPAAAABnB1YmxpYwAAAAllbXBsb3llZXMAAAAFZW1haWwAAAAEMTA0MwAAAAFmAAAAAzI1OQAAAAItMQAAAAItMQAAAAEy/////////////////////wAAAAEwAAAAAWJEAAAAagAPAAAABnB1YmxpYwAAAAllbXBsb3llZXMAAAAKZmlyc3RfbmFtZQAAAAQxMDQzAAAAAWYAAAADMjU5AAAAAi0xAAAAAi0xAAAAATP/////////////////////AAAAATAAAAABYkQAAABpAA8AAAAGcHVibGljAAAACWVtcGxveWVlcwAAAAlsYXN0X25hbWUAAAAEMTA0MwAAAAFmAAAAAzI1OQAAAAItMQAAAAItMQAAAAE0/////////////////////wAAAAEwAAAAAWJEAAAAZQAPAAAABnB1YmxpYwAAAAllbXBsb3llZXMAAAAJdGltZXN0YW1wAAAAAjIwAAAAAWYAAAACLTEAAAABOAAAAAItMQAAAAE1/////////////////////wAAAAEwAAAAAWJDAAAADVNFTEVDVCA1AFoAAAAFSQ== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 53 - data_row: [{row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b, public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b, public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "", "0", b, public, employees, last_name, "1043", f, "259", "-1", "-1", "4", "", "", "", "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b, public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "", "0", b, public, employees, last_name, "1043", f, "259", "-1", "-1", "4", "", "", "", "", "0", b, public, employees, timestamp, "20", f, "-1", "8", "-1", "5", "", "", "", "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b, public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "", "0", b, public, employees, last_name, "1043", f, "259", "-1", "-1", "4", "", "", "", "", "0", b, public, employees, timestamp, "20", f, "-1", "8", "-1", "5", "", "", "", "", "0", b]}, {row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b, public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "", "0", b, public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "", "0", b, public, employees, last_name, "1043", f, "259", "-1", "-1", "4", "", "", "", "", "0", b, public, employees, timestamp, "20", f, "-1", "8", "-1", "5", "", "", "", "", "0", b]}] + - command_tag_type: SELECT 5 + data_row: [{row_values: [public, employees, id, "20", t, "-1", "8", "-1", "1", "", 'nextval(''employees_id_seq''::regclass)', "", "0", b]}, {row_values: [public, employees, email, "1043", f, "259", "-1", "-1", "2", "", "", "", "0", b]}, {row_values: [public, employees, first_name, "1043", f, "259", "-1", "-1", "3", "", "", "", "0", b]}, {row_values: [public, employees, last_name, "1043", f, "259", "-1", "-1", "4", "", "", "", "0", b]}, {row_values: [public, employees, timestamp, "20", f, "-1", "8", "-1", "5", "", "", "", "0", b]}] ready_for_query: txstatus: 73 - row_description: {fields: [{name: [110, 115, 112, 110, 97, 109, 101], table_oid: 2615, table_attribute_number: 1, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {name: [114, 101, 108, 110, 97, 109, 101], table_oid: 1259, table_attribute_number: 1, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {name: [97, 116, 116, 110, 97, 109, 101], table_oid: 1249, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {name: [97, 116, 116, 116, 121, 112, 105, 100], table_oid: 1249, table_attribute_number: 3, data_type_oid: 26, data_type_size: 4, type_modifier: -1, format: 0}, {name: [97, 116, 116, 110, 111, 116, 110, 117, 108, 108], table_oid: 0, table_attribute_number: 0, data_type_oid: 16, data_type_size: 1, type_modifier: -1, format: 0}, {name: [97, 116, 116, 116, 121, 112, 109, 111, 100], table_oid: 1249, table_attribute_number: 9, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {name: [97, 116, 116, 108, 101, 110], table_oid: 1249, table_attribute_number: 5, data_type_oid: 21, data_type_size: 2, type_modifier: -1, format: 0}, {name: [116, 121, 112, 116, 121, 112, 109, 111, 100], table_oid: 1247, table_attribute_number: 25, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {name: [97, 116, 116, 110, 117, 109], table_oid: 0, table_attribute_number: 0, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [97, 116, 116, 105, 100, 101, 110, 116, 105, 116, 121], table_oid: 0, table_attribute_number: 0, data_type_oid: 18, data_type_size: 1, type_modifier: -1, format: 0}, {name: [97, 116, 116, 103, 101, 110, 101, 114, 97, 116, 101, 100], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [97, 100, 115, 114, 99], table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [100, 101, 115, 99, 114, 105, 112, 116, 105, 111, 110], table_oid: 2609, table_attribute_number: 4, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {name: [116, 121, 112, 98, 97, 115, 101, 116, 121, 112, 101], table_oid: 1247, table_attribute_number: 24, data_type_oid: 26, data_type_size: 4, type_modifier: -1, format: 0}, {name: [116, 121, 112, 116, 121, 112, 101], table_oid: 1247, table_attribute_number: 6, data_type_oid: 18, data_type_size: 1, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: nspname, table_oid: 2615, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: relname, table_oid: 1259, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: attname, table_oid: 1249, table_attribute_number: 2, data_type_oid: 19, data_type_size: 64, type_modifier: -1, format: 0}, {field_name: atttypid, table_oid: 1249, table_attribute_number: 3, data_type_oid: 26, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: attnotnull, table_oid: 0, table_attribute_number: 0, data_type_oid: 16, data_type_size: 1, type_modifier: -1, format: 0}, {field_name: atttypmod, table_oid: 1249, table_attribute_number: 7, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: attlen, table_oid: 1249, table_attribute_number: 4, data_type_oid: 21, data_type_size: 2, type_modifier: -1, format: 0}, {field_name: typtypmod, table_oid: 1247, table_attribute_number: 27, data_type_oid: 23, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: attnum, table_oid: 0, table_attribute_number: 0, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {field_name: attidentity, table_oid: 0, table_attribute_number: 0, data_type_oid: 18, data_type_size: 1, type_modifier: -1, format: 0}, {field_name: adsrc, table_oid: 0, table_attribute_number: 0, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: description, table_oid: 2609, table_attribute_number: 4, data_type_oid: 25, data_type_size: -1, type_modifier: -1, format: 0}, {field_name: typbasetype, table_oid: 1247, table_attribute_number: 26, data_type_oid: 26, data_type_size: 4, type_modifier: -1, format: 0}, {field_name: typtype, table_oid: 1247, table_attribute_number: 7, data_type_oid: 18, data_type_size: 1, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.870030725Z - restimestampmock: 2023-12-04T09:31:54.870138177Z + reqtimestampmock: 2024-10-17T15:34:49.571219496+05:30 + restimestampmock: 2024-10-17T15:34:49.571308118+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-58 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAAgAAAAAQgAAAAwAAAAAAAAAAEQAAAAGUABFAAAACQAAAAABUwAAAAQ= bind: - {} describe: @@ -1903,38 +2092,37 @@ spec: - name: "" query: "" parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", "n", I, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:07.632917086Z - restimestampmock: 2023-12-04T09:32:07.632956375Z + reqtimestampmock: 2024-10-17T15:36:13.888165198+05:30 + restimestampmock: 2024-10-17T15:36:13.888243532+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-59 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAABcAQkVHSU4gUkVBRCBPTkxZAAAAQgAAAAwAAAAAAAAAAEUAAAAJAAAAAABQAAAA9wBzZWxlY3QgZW1wbG95ZWUwXy5pZCBhcyBpZDFfMF8wXywgZW1wbG95ZWUwXy5lbWFpbCBhcyBlbWFpbDJfMF8wXywgZW1wbG95ZWUwXy5maXJzdF9uYW1lIGFzIGZpcnN0X25hM18wXzBfLCBlbXBsb3llZTBfLmxhc3RfbmFtZSBhcyBsYXN0X25hbTRfMF8wXywgZW1wbG95ZWUwXy50aW1lc3RhbXAgYXMgdGltZXN0YW01XzBfMF8gZnJvbSBlbXBsb3llZXMgZW1wbG95ZWUwXyB3aGVyZSBlbXBsb3llZTBfLmlkPSQxAAABAAAAFEIAAAAaAAAAAQABAAEAAAAIAAAAAAAAAAEAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} - - parameter_format_codes: [0, 0, 0, 1] - parameters: [[109, 116, 64, 103, 109, 97, 105, 108, 46, 99, 111, 109], [77, 121, 107, 101], [84, 121, 115, 111, 110], [0, 0, 0, 0, 101, 109, 156, 151]] + - parameter_format_codes: [1] + parameters: [[0, 0, 0, 0, 0, 0, 0, 1]] describe: object_type: 80 name: "" @@ -1943,64 +2131,44 @@ spec: - {} parse: - name: "" - query: BEGIN + query: BEGIN READ ONLY parameter_oids: [] - name: "" - query: insert into employees (email, first_name, last_name, timestamp) values ($1, $2, $3, $4) RETURNING * + query: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, employee0_.first_name as first_na3_0_0_, employee0_.last_name as last_nam4_0_0_, employee0_.timestamp as timestam5_0_0_ from employees employee0_ where employee0_.id=$1 parameter_oids: - - 1043 - - 1043 - - 1043 - 20 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, "1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABEMAAAAKQkVHSU4AMQAAAAQyAAAABFQAAACIAAVpZAAAAEADAAEAAAAUAAj/////AABlbWFpbAAAAEADAAIAAAQT//8AAAEDAABmaXJzdF9uYW1lAAAAQAMAAwAABBP//wAAAQMAAGxhc3RfbmFtZQAAAEADAAQAAAQT//8AAAEDAAB0aW1lc3RhbXAAAABAAwAFAAAAFAAI/////wAARAAAADsABQAAAAIxMwAAAAxtdEBnbWFpbC5jb20AAAAETXlrZQAAAAVUeXNvbgAAAAoxNzAxNjgyMzI3QwAAAA9JTlNFUlQgMCAxAFoAAAAFVA== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 66 - - 69 - - 71 - - 73 - - 78 - - command_tag: - - 73 - - 78 - - 83 - - 69 - - 82 - - 84 - - 32 - - 48 - - 32 - - 49 - data_row: [{row_values: ["13", mt@gmail.com, Myke, Tyson, "1701682327"]}, {row_values: ["13", mt@gmail.com, Myke, Tyson, "1701682327"]}, {row_values: ["13", mt@gmail.com, Myke, Tyson, "1701682327"]}] + - command_tag_type: BEGIN + - command_tag_type: SELECT 1 + data_row: [{row_values: ["1", john.doe@example.com, John, Doe, "0"]}] ready_for_query: txstatus: 84 - row_description: {fields: [{name: [105, 100], table_oid: 16387, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [101, 109, 97, 105, 108], table_oid: 16387, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [102, 105, 114, 115, 116, 95, 110, 97, 109, 101], table_oid: 16387, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [108, 97, 115, 116, 95, 110, 97, 109, 101], table_oid: 16387, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [116, 105, 109, 101, 115, 116, 97, 109, 112], table_oid: 16387, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: id1_0_0_, table_oid: 16390, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {field_name: email2_0_0_, table_oid: 16390, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: first_na3_0_0_, table_oid: 16390, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: last_nam4_0_0_, table_oid: 16390, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: timestam5_0_0_, table_oid: 16390, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:07.660686456Z - restimestampmock: 2023-12-04T09:32:07.660731454Z + reqtimestampmock: 2024-10-17T15:36:13.92033892+05:30 + restimestampmock: 2024-10-17T15:36:13.92045988+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-60 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, S] + - header: [P, B, E] identifier: ClientRequest length: 8 + payload: UAAAABFTXzEAQ09NTUlUAAAAQgAAAA8AU18xAAAAAAAAAEUAAAAJAAAAAAFTAAAABA== bind: - prepared_statement: S_1 execute: @@ -2009,85 +2177,120 @@ spec: - name: S_1 query: COMMIT parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 67 - - 79 - - 77 - - 77 - - 73 - - 84 + - command_tag_type: COMMIT ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:07.67592485Z - restimestampmock: 2023-12-04T09:32:07.675953223Z + reqtimestampmock: 2024-10-17T15:36:13.938570908+05:30 + restimestampmock: 2024-10-17T15:36:13.938612325+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-61 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAA0AQkVHSU4AAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAFAAAAAtAGRlbGV0ZSBmcm9tIGVtcGxveWVlcyB3aGVyZSBpZD0kMQAAAQAAABRCAAAAGgAAAAEAAQABAAAACAAAAAAAAAABAABEAAAABlAARQAAAAkAAAAAAVMAAAAE bind: - {} + - parameter_format_codes: [1] + parameters: [[0, 0, 0, 0, 0, 0, 0, 1]] describe: object_type: 80 name: "" execute: + - {} - max_rows: 1 parse: - name: "" - query: "" + query: BEGIN parameter_oids: [] - msg_type: 83 + - name: "" + query: delete from employees where id=$1 + parameter_oids: + - 20 + msg_type: 69 auth_type: 0 postgresresponses: - - header: ["1", "2", "n", I, Z] + - header: ["1", "2", C, "1", "2", "n", C, Z] + identifier: ServerResponse + length: 8 + authentication_md5_password: + salt: [0, 0, 0, 0] + command_complete: + - command_tag_type: BEGIN + - command_tag_type: DELETE 1 + ready_for_query: + txstatus: 84 + msg_type: 90 + auth_type: 0 + reqtimestampmock: 2024-10-17T15:36:13.970408668+05:30 + restimestampmock: 2024-10-17T15:36:13.970450002+05:30 +connectionId: "0" +--- +version: api.keploy.io/v1beta1 +kind: Postgres +name: mock-62 +spec: + metadata: + type: config + postgresrequests: + - header: [B, E] + identifier: ClientRequest + length: 8 + payload: QgAAAA8AU18xAAAAAAAAAEUAAAAJAAAAAAFTAAAABA== + bind: + - prepared_statement: S_1 + execute: + - max_rows: 1 + msg_type: 69 + auth_type: 0 + postgresresponses: + - header: ["2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] + command_complete: + - command_tag_type: COMMIT ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:09.751926914Z - restimestampmock: 2023-12-04T09:32:09.751956245Z + reqtimestampmock: 2024-10-17T15:36:13.974431462+05:30 + restimestampmock: 2024-10-17T15:36:13.974451587+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-63 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAABcAQkVHSU4gUkVBRCBPTkxZAAAAQgAAAAwAAAAAAAAAAEUAAAAJAAAAAABQAAAA9wBzZWxlY3QgZW1wbG95ZWUwXy5pZCBhcyBpZDFfMF8wXywgZW1wbG95ZWUwXy5lbWFpbCBhcyBlbWFpbDJfMF8wXywgZW1wbG95ZWUwXy5maXJzdF9uYW1lIGFzIGZpcnN0X25hM18wXzBfLCBlbXBsb3llZTBfLmxhc3RfbmFtZSBhcyBsYXN0X25hbTRfMF8wXywgZW1wbG95ZWUwXy50aW1lc3RhbXAgYXMgdGltZXN0YW01XzBfMF8gZnJvbSBlbXBsb3llZXMgZW1wbG95ZWUwXyB3aGVyZSBlbXBsb3llZTBfLmlkPSQxAAABAAAAFEIAAAAaAAAAAQABAAEAAAAIAAAAAAAAAAEAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} - - parameter_format_codes: [0, 0, 0, 1] - parameters: [[109, 116, 64, 103, 109, 97, 105, 108, 46, 99, 111, 109], [77, 121, 107, 101], [84, 121, 115, 111, 110], [0, 0, 0, 0, 101, 109, 156, 153]] + - parameter_format_codes: [1] + parameters: [[0, 0, 0, 0, 0, 0, 0, 1]] describe: object_type: 80 name: "" @@ -2096,146 +2299,80 @@ spec: - {} parse: - name: "" - query: BEGIN + query: BEGIN READ ONLY parameter_oids: [] - name: "" - query: insert into employees (email, first_name, last_name, timestamp) values ($1, $2, $3, $4) RETURNING * + query: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, employee0_.first_name as first_na3_0_0_, employee0_.last_name as last_nam4_0_0_, employee0_.timestamp as timestam5_0_0_ from employees employee0_ where employee0_.id=$1 parameter_oids: - - 1043 - - 1043 - - 1043 - 20 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - - header: ["1", "2", C, "1", "2", T, D, C, Z] + - header: ["1", "2", C, "1", "2", T, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABEMAAAAKQkVHSU4AMQAAAAQyAAAABFQAAACIAAVpZAAAAEADAAEAAAAUAAj/////AABlbWFpbAAAAEADAAIAAAQT//8AAAEDAABmaXJzdF9uYW1lAAAAQAMAAwAABBP//wAAAQMAAGxhc3RfbmFtZQAAAEADAAQAAAQT//8AAAEDAAB0aW1lc3RhbXAAAABAAwAFAAAAFAAI/////wAARAAAADsABQAAAAIxNAAAAAxtdEBnbWFpbC5jb20AAAAETXlrZQAAAAVUeXNvbgAAAAoxNzAxNjgyMzI5QwAAAA9JTlNFUlQgMCAxAFoAAAAFVA== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 66 - - 69 - - 71 - - 73 - - 78 - - command_tag: - - 73 - - 78 - - 83 - - 69 - - 82 - - 84 - - 32 - - 48 - - 32 - - 49 - data_row: [{row_values: ["14", mt@gmail.com, Myke, Tyson, "1701682329"]}, {row_values: ["14", mt@gmail.com, Myke, Tyson, "1701682329"]}, {row_values: ["14", mt@gmail.com, Myke, Tyson, "1701682329"]}] + - command_tag_type: BEGIN + - command_tag_type: SELECT 0 ready_for_query: txstatus: 84 - row_description: {fields: [{name: [105, 100], table_oid: 16387, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [101, 109, 97, 105, 108], table_oid: 16387, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [102, 105, 114, 115, 116, 95, 110, 97, 109, 101], table_oid: 16387, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [108, 97, 115, 116, 95, 110, 97, 109, 101], table_oid: 16387, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [116, 105, 109, 101, 115, 116, 97, 109, 112], table_oid: 16387, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: id1_0_0_, table_oid: 16390, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {field_name: email2_0_0_, table_oid: 16390, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: first_na3_0_0_, table_oid: 16390, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: last_nam4_0_0_, table_oid: 16390, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: timestam5_0_0_, table_oid: 16390, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:09.752875438Z - restimestampmock: 2023-12-04T09:32:09.752912894Z + reqtimestampmock: 2024-10-17T15:36:14.163861191+05:30 + restimestampmock: 2024-10-17T15:36:14.163949317+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-64 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [B, E, S] + - header: [B, E] identifier: ClientRequest length: 8 + payload: QgAAAA8AU18xAAAAAAAAAEUAAAAJAAAAAAFTAAAABA== bind: - prepared_statement: S_1 execute: - max_rows: 1 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 67 - - 79 - - 77 - - 77 - - 73 - - 84 + - command_tag_type: COMMIT ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:09.754247895Z - restimestampmock: 2023-12-04T09:32:09.754268103Z + reqtimestampmock: 2024-10-17T15:36:14.165341207+05:30 + restimestampmock: 2024-10-17T15:36:14.165469125+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-65 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAABcAQkVHSU4gUkVBRCBPTkxZAAAAQgAAAAwAAAAAAAAAAEUAAAAJAAAAAABQAAAA9wBzZWxlY3QgZW1wbG95ZWUwXy5pZCBhcyBpZDFfMF8wXywgZW1wbG95ZWUwXy5lbWFpbCBhcyBlbWFpbDJfMF8wXywgZW1wbG95ZWUwXy5maXJzdF9uYW1lIGFzIGZpcnN0X25hM18wXzBfLCBlbXBsb3llZTBfLmxhc3RfbmFtZSBhcyBsYXN0X25hbTRfMF8wXywgZW1wbG95ZWUwXy50aW1lc3RhbXAgYXMgdGltZXN0YW01XzBfMF8gZnJvbSBlbXBsb3llZXMgZW1wbG95ZWUwXyB3aGVyZSBlbXBsb3llZTBfLmlkPSQxAAABAAAAFEIAAAAaAAAAAQABAAEAAAAIAAAAAAAAAAIAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} - describe: - object_type: 80 - name: "" - execute: - - max_rows: 1 - parse: - - name: "" - query: "" - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", "n", I, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:13.06778246Z - restimestampmock: 2023-12-04T09:32:13.070481543Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, P, B, D, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - - {} + - parameter_format_codes: [1] + parameters: [[0, 0, 0, 0, 0, 0, 0, 2]] describe: object_type: 80 name: "" @@ -2247,139 +2384,116 @@ spec: query: BEGIN READ ONLY parameter_oids: [] - name: "" - query: select employee0_.id as id1_0_, employee0_.email as email2_0_, employee0_.first_name as first_na3_0_, employee0_.last_name as last_nam4_0_, employee0_.timestamp as timestam5_0_ from employees employee0_ - parameter_oids: [] - msg_type: 83 + query: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, employee0_.first_name as first_na3_0_0_, employee0_.last_name as last_nam4_0_0_, employee0_.timestamp as timestam5_0_0_ from employees employee0_ where employee0_.id=$1 + parameter_oids: + - 20 + msg_type: 69 auth_type: 0 postgresresponses: - - header: ["1", "2", C, "1", "2", T, D, D, D, D, D, D, D, D, D, D, D, D, D, D, C, Z] + - header: ["1", "2", C, "1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABEMAAAAKQkVHSU4AMQAAAAQyAAAABFQAAACYAAVpZDFfMF8AAABAAwABAAAAFAAI/////wAAZW1haWwyXzBfAAAAQAMAAgAABBP//wAAAQMAAGZpcnN0X25hM18wXwAAAEADAAMAAAQT//8AAAEDAABsYXN0X25hbTRfMF8AAABAAwAEAAAEE///AAABAwAAdGltZXN0YW01XzBfAAAAQAMABQAAABQACP////8AAEQAAAA6AAUAAAABMQAAAAxtdEBnbWFpbC5jb20AAAAETXlrZQAAAAVUeXNvbgAAAAoxNzAwNjQyMzI0RAAAADoABQAAAAEyAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDA2NTA4NDBEAAAAOgAFAAAAATMAAAAMbXRAZ21haWwuY29tAAAABE15a2UAAAAFVHlzb24AAAAKMTcwMDY1MDg0NUQAAAA6AAUAAAABNAAAAAxtdEBnbWFpbC5jb20AAAAETXlrZQAAAAVUeXNvbgAAAAoxNzAwNjUwODQ2RAAAADoABQAAAAE1AAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDA2NTA4NzBEAAAAOgAFAAAAATYAAAAMbXRAZ21haWwuY29tAAAABE15a2UAAAAFVHlzb24AAAAKMTcwMDY1MDg3MUQAAAA6AAUAAAABNwAAAAxtdEBnbWFpbC5jb20AAAAETXlrZQAAAAVUeXNvbgAAAAoxNzAwNjY4MjkyRAAAADoABQAAAAE4AAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDExNTUzNzZEAAAAOAAFAAAAATkAAAAMbXRAZ21haWwuY29tAAAAAkdLAAAABVR5c29uAAAACjE3MDExNTU0NDFEAAAAOwAFAAAAAjEwAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIwNjVEAAAAOwAFAAAAAjExAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIwNjZEAAAAOwAFAAAAAjEyAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIwNjhEAAAAOwAFAAAAAjEzAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIzMjdEAAAAOwAFAAAAAjE0AAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIzMjlDAAAADlNFTEVDVCAxNABaAAAABVQ= authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 66 - - 69 - - 71 - - 73 - - 78 - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - - 52 - data_row: [{row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066", "12", mt@gmail.com, Myke, Tyson, "1701682068"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066", "12", mt@gmail.com, Myke, Tyson, "1701682068", "13", mt@gmail.com, Myke, Tyson, "1701682327"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066", "12", mt@gmail.com, Myke, Tyson, "1701682068", "13", mt@gmail.com, Myke, Tyson, "1701682327", "14", mt@gmail.com, Myke, Tyson, "1701682329"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066", "12", mt@gmail.com, Myke, Tyson, "1701682068", "13", mt@gmail.com, Myke, Tyson, "1701682327", "14", mt@gmail.com, Myke, Tyson, "1701682329"]}, {row_values: ["1", mt@gmail.com, Myke, Tyson, "1700642324", "2", mt@gmail.com, Myke, Tyson, "1700650840", "3", mt@gmail.com, Myke, Tyson, "1700650845", "4", mt@gmail.com, Myke, Tyson, "1700650846", "5", mt@gmail.com, Myke, Tyson, "1700650870", "6", mt@gmail.com, Myke, Tyson, "1700650871", "7", mt@gmail.com, Myke, Tyson, "1700668292", "8", mt@gmail.com, Myke, Tyson, "1701155376", "9", mt@gmail.com, GK, Tyson, "1701155441", "10", mt@gmail.com, Myke, Tyson, "1701682065", "11", mt@gmail.com, Myke, Tyson, "1701682066", "12", mt@gmail.com, Myke, Tyson, "1701682068", "13", mt@gmail.com, Myke, Tyson, "1701682327", "14", mt@gmail.com, Myke, Tyson, "1701682329"]}] + - command_tag_type: BEGIN + - command_tag_type: SELECT 1 + data_row: [{row_values: ["2", john.doe@example.com, John, Doe, "0"]}] ready_for_query: txstatus: 84 - row_description: {fields: [{name: [105, 100, 49, 95, 48, 95], table_oid: 16387, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [101, 109, 97, 105, 108, 50, 95, 48, 95], table_oid: 16387, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [102, 105, 114, 115, 116, 95, 110, 97, 51, 95, 48, 95], table_oid: 16387, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [108, 97, 115, 116, 95, 110, 97, 109, 52, 95, 48, 95], table_oid: 16387, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [116, 105, 109, 101, 115, 116, 97, 109, 53, 95, 48, 95], table_oid: 16387, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: id1_0_0_, table_oid: 16390, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {field_name: email2_0_0_, table_oid: 16390, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: first_na3_0_0_, table_oid: 16390, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: last_nam4_0_0_, table_oid: 16390, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: timestam5_0_0_, table_oid: 16390, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:13.160495825Z - restimestampmock: 2023-12-04T09:32:13.160643566Z + reqtimestampmock: 2024-10-17T15:36:14.276666285+05:30 + restimestampmock: 2024-10-17T15:36:14.276775244+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-66 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [B, E, S] + - header: [B, E] identifier: ClientRequest length: 8 + payload: QgAAAA8AU18xAAAAAAAAAEUAAAAJAAAAAAFTAAAABA== bind: - prepared_statement: S_1 execute: - max_rows: 1 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 67 - - 79 - - 77 - - 77 - - 73 - - 84 + - command_tag_type: COMMIT ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:13.175985995Z - restimestampmock: 2023-12-04T09:32:13.176003577Z + reqtimestampmock: 2024-10-17T15:36:14.277505002+05:30 + restimestampmock: 2024-10-17T15:36:14.277536753+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-67 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, D, E, S] + - header: [P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAAgAAAAAQgAAAAwAAAAAAAAAAEQAAAAGUABFAAAACQAAAAABUwAAAAQ= bind: - - prepared_statement: S_2 + - {} describe: object_type: 80 name: "" execute: - max_rows: 1 parse: - - name: S_2 + - name: "" query: "" parameter_oids: [] - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", "n", I, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:17.239860669Z - restimestampmock: 2023-12-04T09:32:17.23988446Z + reqtimestampmock: 2024-10-17T15:36:15.023097216+05:30 + restimestampmock: 2024-10-17T15:36:15.023154175+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-68 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAABcAQkVHSU4gUkVBRCBPTkxZAAAAQgAAAAwAAAAAAAAAAEUAAAAJAAAAAABQAAAA9wBzZWxlY3QgZW1wbG95ZWUwXy5pZCBhcyBpZDFfMF8wXywgZW1wbG95ZWUwXy5lbWFpbCBhcyBlbWFpbDJfMF8wXywgZW1wbG95ZWUwXy5maXJzdF9uYW1lIGFzIGZpcnN0X25hM18wXzBfLCBlbXBsb3llZTBfLmxhc3RfbmFtZSBhcyBsYXN0X25hbTRfMF8wXywgZW1wbG95ZWUwXy50aW1lc3RhbXAgYXMgdGltZXN0YW01XzBfMF8gZnJvbSBlbXBsb3llZXMgZW1wbG95ZWUwXyB3aGVyZSBlbXBsb3llZTBfLmlkPSQxAAABAAAAFEIAAAAaAAAAAQABAAEAAAAIAAAAAAAAAAMAAEQAAAAGUABFAAAACQAAAAAAUwAAAAQ= bind: - {} - parameter_format_codes: [1] - parameters: [[0, 0, 0, 0, 0, 0, 0, 11]] + parameters: [[0, 0, 0, 0, 0, 0, 0, 3]] describe: object_type: 80 name: "" @@ -2394,647 +2508,108 @@ spec: query: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, employee0_.first_name as first_na3_0_0_, employee0_.last_name as last_nam4_0_0_, employee0_.timestamp as timestam5_0_0_ from employees employee0_ where employee0_.id=$1 parameter_oids: - 20 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["1", "2", C, "1", "2", T, D, C, Z] identifier: ServerResponse length: 8 - payload: MQAAAAQyAAAABEMAAAAKQkVHSU4AMQAAAAQyAAAABFQAAACiAAVpZDFfMF8wXwAAAEADAAEAAAAUAAj/////AABlbWFpbDJfMF8wXwAAAEADAAIAAAQT//8AAAEDAABmaXJzdF9uYTNfMF8wXwAAAEADAAMAAAQT//8AAAEDAABsYXN0X25hbTRfMF8wXwAAAEADAAQAAAQT//8AAAEDAAB0aW1lc3RhbTVfMF8wXwAAAEADAAUAAAAUAAj/////AABEAAAAOwAFAAAAAjExAAAADG10QGdtYWlsLmNvbQAAAARNeWtlAAAABVR5c29uAAAACjE3MDE2ODIwNjZDAAAADVNFTEVDVCAxAFoAAAAFVA== authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 66 - - 69 - - 71 - - 73 - - 78 - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 49 - data_row: [{row_values: ["11", mt@gmail.com, Myke, Tyson, "1701682066"]}, {row_values: ["11", mt@gmail.com, Myke, Tyson, "1701682066"]}, {row_values: ["11", mt@gmail.com, Myke, Tyson, "1701682066"]}] + - command_tag_type: BEGIN + - command_tag_type: SELECT 1 + data_row: [{row_values: ["3", john.doe@example.com, John, Doe, "0"]}] ready_for_query: txstatus: 84 - row_description: {fields: [{name: [105, 100, 49, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [101, 109, 97, 105, 108, 50, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [102, 105, 114, 115, 116, 95, 110, 97, 51, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [108, 97, 115, 116, 95, 110, 97, 109, 52, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [116, 105, 109, 101, 115, 116, 97, 109, 53, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} + row_description: {fields: [{field_name: id1_0_0_, table_oid: 16390, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {field_name: email2_0_0_, table_oid: 16390, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: first_na3_0_0_, table_oid: 16390, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: last_nam4_0_0_, table_oid: 16390, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {field_name: timestam5_0_0_, table_oid: 16390, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:17.248096578Z - restimestampmock: 2023-12-04T09:32:17.248139201Z + reqtimestampmock: 2024-10-17T15:36:15.024649317+05:30 + restimestampmock: 2024-10-17T15:36:15.024691776+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-69 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [B, E, S] + - header: [B, E] identifier: ClientRequest length: 8 + payload: QgAAAA8AU18xAAAAAAAAAEUAAAAJAAAAAAFTAAAABA== bind: - prepared_statement: S_1 execute: - max_rows: 1 - msg_type: 83 + msg_type: 69 auth_type: 0 postgresresponses: - header: ["2", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 67 - - 79 - - 77 - - 77 - - 73 - - 84 - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:17.251523825Z - restimestampmock: 2023-12-04T09:32:17.251544865Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [B, E, S] - identifier: ClientRequest - length: 8 - bind: - - prepared_statement: S_2 - execute: - - max_rows: 1 - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["2", I, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + - command_tag_type: COMMIT ready_for_query: txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:20.578808658Z - restimestampmock: 2023-12-04T09:32:20.578829198Z + reqtimestampmock: 2024-10-17T15:36:15.02583008+05:30 + restimestampmock: 2024-10-17T15:36:15.025841081+05:30 +connectionId: "0" --- version: api.keploy.io/v1beta1 kind: Postgres -name: mocks +name: mock-70 spec: - metadata: {} + metadata: + type: config postgresrequests: - - header: [P, B, E, P, B, D, E, S] + - header: [P, B, E, P, B, D, E] identifier: ClientRequest length: 8 + payload: UAAAAA0AQkVHSU4AAABCAAAADAAAAAAAAAAARQAAAAkAAAAAAFAAAABwAHVwZGF0ZSBlbXBsb3llZXMgc2V0IGVtYWlsPSQxLCBmaXJzdF9uYW1lPSQyLCBsYXN0X25hbWU9JDMsIHRpbWVzdGFtcD0kNCB3aGVyZSBpZD0kNQAABQAABBMAAAQTAAAEEwAAABQAAAAUQgAAAFUAAAAFAAAAAAAAAAEAAQAFAAAAFGphbmUuZG9lQGV4YW1wbGUuY29tAAAABEphbmUAAAADRG9lAAAACAAAAABnEOGXAAAACAAAAAAAAAADAABEAAAABlAARQAAAAkAAAAAAVMAAAAE bind: - {} - - parameter_format_codes: [1] - parameters: [[0, 0, 0, 0, 0, 0, 0, 111]] + - parameter_format_codes: [0, 0, 0, 1, 1] + parameters: [[106, 97, 110, 101, 46, 100, 111, 101, 64, 101, 120, 97, 109, 112, 108, 101, 46, 99, 111, 109], [74, 97, 110, 101], [68, 111, 101], [0, 0, 0, 0, 103, 16, 225, 151], [0, 0, 0, 0, 0, 0, 0, 3]] describe: object_type: 80 name: "" execute: - {} - - {} + - max_rows: 1 parse: - name: "" - query: BEGIN READ ONLY + query: BEGIN parameter_oids: [] - name: "" - query: select employee0_.id as id1_0_0_, employee0_.email as email2_0_0_, employee0_.first_name as first_na3_0_0_, employee0_.last_name as last_nam4_0_0_, employee0_.timestamp as timestam5_0_0_ from employees employee0_ where employee0_.id=$1 + query: update employees set email=$1, first_name=$2, last_name=$3, timestamp=$4 where id=$5 parameter_oids: + - 1043 + - 1043 + - 1043 - 20 - msg_type: 83 + - 20 + msg_type: 69 auth_type: 0 postgresresponses: - - header: ["1", "2", C, "1", "2", T, C, Z] + - header: ["1", "2", C, "1", "2", "n", C, Z] identifier: ServerResponse length: 8 authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 + salt: [0, 0, 0, 0] command_complete: - - command_tag: - - 66 - - 69 - - 71 - - 73 - - 78 - - command_tag: - - 83 - - 69 - - 76 - - 69 - - 67 - - 84 - - 32 - - 48 + - command_tag_type: BEGIN + - command_tag_type: UPDATE 1 ready_for_query: txstatus: 84 - row_description: {fields: [{name: [105, 100, 49, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 1, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}, {name: [101, 109, 97, 105, 108, 50, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 2, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [102, 105, 114, 115, 116, 95, 110, 97, 51, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 3, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [108, 97, 115, 116, 95, 110, 97, 109, 52, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 4, data_type_oid: 1043, data_type_size: -1, type_modifier: 259, format: 0}, {name: [116, 105, 109, 101, 115, 116, 97, 109, 53, 95, 48, 95, 48, 95], table_oid: 16387, table_attribute_number: 5, data_type_oid: 20, data_type_size: 8, type_modifier: -1, format: 0}]} - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:20.580654502Z - restimestampmock: 2023-12-04T09:32:20.580827283Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.415867094Z - restimestampmock: 2023-12-04T09:31:54.415882634Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.431071323Z - restimestampmock: 2023-12-04T09:31:54.431248021Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.462016374Z - restimestampmock: 2023-12-04T09:31:54.462034873Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [B, E, S] - identifier: ClientRequest - length: 8 - bind: - - prepared_statement: S_1 - execute: - - max_rows: 1 - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["2", C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 67 - - 79 - - 77 - - 77 - - 73 - - 84 - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:32:20.581713729Z - restimestampmock: 2023-12-04T09:32:20.581733269Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.444016067Z - restimestampmock: 2023-12-04T09:31:54.444034316Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.454691409Z - restimestampmock: 2023-12-04T09:31:54.454716157Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.399400858Z - restimestampmock: 2023-12-04T09:31:54.399413441Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.423233181Z - restimestampmock: 2023-12-04T09:31:54.423258471Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 - msg_type: 90 - auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.407028138Z - restimestampmock: 2023-12-04T09:31:54.407038054Z ---- -version: api.keploy.io/v1beta1 -kind: Postgres -name: mocks -spec: - metadata: {} - postgresrequests: - - header: [P, B, E, S] - identifier: ClientRequest - length: 8 - bind: - - {} - execute: - - max_rows: 1 - parse: - - name: "" - query: SET application_name = 'PostgreSQL JDBC Driver' - parameter_oids: [] - msg_type: 83 - auth_type: 0 - postgresresponses: - - header: ["1", "2", S, C, Z] - identifier: ServerResponse - length: 8 - authentication_md5_password: - salt: - - 0 - - 0 - - 0 - - 0 - command_complete: - - command_tag: - - 83 - - 69 - - 84 - parameter_status: - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - - name: application_name - value: PostgreSQL JDBC Driver - ready_for_query: - txstatus: 73 msg_type: 90 auth_type: 0 - reqtimestampmock: 2023-12-04T09:31:54.43801002Z - restimestampmock: 2023-12-04T09:31:54.438028936Z + reqtimestampmock: 2024-10-17T15:36:15.034577765+05:30 + restimestampmock: 2024-10-17T15:36:15.034605599+05:30 +connectionId: "0" diff --git a/employee-manager/keploy/test-set-0/tests/test-1.yaml b/employee-manager/keploy/test-set-0/tests/test-1.yaml index c491594d..5bd41395 100755 --- a/employee-manager/keploy/test-set-0/tests/test-1.yaml +++ b/employee-manager/keploy/test-set-0/tests/test-1.yaml @@ -4,52 +4,40 @@ name: test-1 spec: metadata: {} req: - method: POST + method: GET proto_major: 1 proto_minor: 1 - url: http://localhost:8080/api/employees + url: http://localhost:8080/api/employees/2 header: Accept: '*/*' - Content-Length: "100" - Content-Type: application/json + Accept-Encoding: gzip,deflate + Connection: Keep-Alive Host: localhost:8080 - User-Agent: curl/7.81.0 - body: |- - { - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - } - body_type: "" - timestamp: 2023-12-04T09:32:07.519798019Z + User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12) + body: "" + timestamp: 2024-10-17T15:36:14.274044713+05:30 resp: status_code: 200 header: + Connection: keep-alive Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:07 GMT - body: '{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327}' - body_type: "" - status_message: "" + Date: Thu, 17 Oct 2024 10:06:14 GMT + Keep-Alive: timeout=60 + body: '{"id":2,"firstName":"John","lastName":"Doe","email":"john.doe@example.com","timestamp":0}' + status_message: OK proto_major: 0 proto_minor: 0 - timestamp: 2023-12-04T09:32:10.504964682Z + timestamp: 2024-10-17T15:36:16.999271024+05:30 objects: [] assertions: noise: - body.timestamp: [] header.Date: [] - created: 1701682330 -curl: |- - curl --request POST \ - --url http://localhost:8080/api/employees \ + created: 1729159576 +curl: | + curl --request GET \ + --url http://localhost:8080/api/employees/2 \ --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/7.81.0' \ + --header 'Connection: Keep-Alive' \ + --header 'User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12)' \ + --header 'Accept-Encoding: gzip,deflate' \ --header 'Accept: */*' \ - --header 'Content-Type: application/json' \ - --data '{ - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - }' diff --git a/employee-manager/keploy/test-set-0/tests/test-2.yaml b/employee-manager/keploy/test-set-0/tests/test-2.yaml index 31381e09..09a947cf 100755 --- a/employee-manager/keploy/test-set-0/tests/test-2.yaml +++ b/employee-manager/keploy/test-set-0/tests/test-2.yaml @@ -4,52 +4,40 @@ name: test-2 spec: metadata: {} req: - method: POST + method: DELETE proto_major: 1 proto_minor: 1 - url: http://localhost:8080/api/employees + url: http://localhost:8080/api/employees/1 header: Accept: '*/*' - Content-Length: "100" - Content-Type: application/json + Accept-Encoding: gzip,deflate + Connection: Keep-Alive Host: localhost:8080 - User-Agent: curl/7.81.0 - body: |- - { - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - } - body_type: "" - timestamp: 2023-12-04T09:32:09.749962868Z + User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12) + body: "" + timestamp: 2024-10-17T15:36:13.78733161+05:30 resp: status_code: 200 header: + Connection: keep-alive Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:09 GMT - body: '{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}' - body_type: "" - status_message: "" + Date: Thu, 17 Oct 2024 10:06:14 GMT + Keep-Alive: timeout=60 + body: '{"deleted":true}' + status_message: OK proto_major: 0 proto_minor: 0 - timestamp: 2023-12-04T09:32:12.761148746Z + timestamp: 2024-10-17T15:36:16.999855239+05:30 objects: [] assertions: noise: - body.timestamp: [] header.Date: [] - created: 1701682332 -curl: |- - curl --request POST \ - --url http://localhost:8080/api/employees \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/7.81.0' \ + created: 1729159576 +curl: | + curl --request DELETE \ + --url http://localhost:8080/api/employees/1 \ + --header 'Accept-Encoding: gzip,deflate' \ --header 'Accept: */*' \ - --header 'Content-Type: application/json' \ - --data '{ - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - }' + --header 'Host: localhost:8080' \ + --header 'Connection: Keep-Alive' \ + --header 'User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12)' \ diff --git a/employee-manager/keploy/test-set-0/tests/test-3.yaml b/employee-manager/keploy/test-set-0/tests/test-3.yaml index 00c023e7..281b1cfc 100755 --- a/employee-manager/keploy/test-set-0/tests/test-3.yaml +++ b/employee-manager/keploy/test-set-0/tests/test-3.yaml @@ -7,34 +7,38 @@ spec: method: GET proto_major: 1 proto_minor: 1 - url: http://localhost:8080/api/employees/ + url: http://localhost:8080/api/employees/1 header: Accept: '*/*' + Accept-Encoding: gzip,deflate + Connection: Keep-Alive Host: localhost:8080 - User-Agent: curl/7.81.0 + User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12) body: "" - body_type: "" - timestamp: 2023-12-04T09:32:13.062492036Z + timestamp: 2024-10-17T15:36:14.159181013+05:30 resp: - status_code: 200 + status_code: 404 header: + Connection: keep-alive Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:13 GMT - body: '[{"id":1,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700642324},{"id":2,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650840},{"id":3,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650845},{"id":4,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650846},{"id":5,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650870},{"id":6,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650871},{"id":7,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700668292},{"id":8,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155376},{"id":9,"firstName":"GK","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155441},{"id":10,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682065},{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066},{"id":12,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682068},{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327},{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}]' - body_type: "" - status_message: "" + Date: Thu, 17 Oct 2024 10:06:14 GMT + Keep-Alive: timeout=60 + body: '{"timestamp":"2024-10-17T10:06:14.170+00:00","message":"Employee not found for this id :: 1","details":"uri=/api/employees/1"}' + status_message: Not Found proto_major: 0 proto_minor: 0 - timestamp: 2023-12-04T09:32:16.06356756Z + timestamp: 2024-10-17T15:36:16.999927198+05:30 objects: [] assertions: noise: body.timestamp: [] header.Date: [] - created: 1701682336 + created: 1729159576 curl: | curl --request GET \ - --url http://localhost:8080/api/employees/ \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/7.81.0' \ + --url http://localhost:8080/api/employees/1 \ + --header 'Connection: Keep-Alive' \ + --header 'User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12)' \ + --header 'Accept-Encoding: gzip,deflate' \ --header 'Accept: */*' \ + --header 'Host: localhost:8080' \ diff --git a/employee-manager/keploy/test-set-0/tests/test-4.yaml b/employee-manager/keploy/test-set-0/tests/test-4.yaml index be70b5c6..080240df 100755 --- a/employee-manager/keploy/test-set-0/tests/test-4.yaml +++ b/employee-manager/keploy/test-set-0/tests/test-4.yaml @@ -4,37 +4,44 @@ name: test-4 spec: metadata: {} req: - method: GET + method: PUT proto_major: 1 proto_minor: 1 - url: http://localhost:8080/api/employees/11 + url: http://localhost:8080/api/employees/3 header: Accept: '*/*' + Accept-Encoding: gzip,deflate + Connection: Keep-Alive + Content-Length: "68" + Content-Type: application/json Host: localhost:8080 - User-Agent: curl/7.81.0 - body: "" - body_type: "" - timestamp: 2023-12-04T09:32:17.236905852Z + User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12) + body: '{"firstName":"Jane","lastName":"Doe","email":"jane.doe@example.com"}' + timestamp: 2024-10-17T15:36:14.979974102+05:30 resp: status_code: 200 header: + Connection: keep-alive Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:17 GMT - body: '{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066}' - body_type: "" - status_message: "" + Date: Thu, 17 Oct 2024 10:06:15 GMT + Keep-Alive: timeout=60 + body: '{"id":3,"firstName":"Jane","lastName":"Doe","email":"jane.doe@example.com","timestamp":1729159575}' + status_message: OK proto_major: 0 proto_minor: 0 - timestamp: 2023-12-04T09:32:20.25768276Z + timestamp: 2024-10-17T15:36:18.822656255+05:30 objects: [] assertions: noise: - body.timestamp: [] header.Date: [] - created: 1701682340 -curl: | - curl --request GET \ - --url http://localhost:8080/api/employees/11 \ - --header 'User-Agent: curl/7.81.0' \ + created: 1729159578 +curl: |- + curl --request PUT \ + --url http://localhost:8080/api/employees/3 \ + --header 'Connection: Keep-Alive' \ + --header 'User-Agent: Apache-HttpClient/4.5.13 (Java/17.0.12)' \ + --header 'Accept-Encoding: gzip,deflate' \ --header 'Accept: */*' \ + --header 'Content-Type: application/json' \ --header 'Host: localhost:8080' \ + --data "{\"firstName\":\"Jane\",\"lastName\":\"Doe\",\"email\":\"jane.doe@example.com\"}" diff --git a/employee-manager/keploy/test-set-0/tests/test-5.yaml b/employee-manager/keploy/test-set-0/tests/test-5.yaml deleted file mode 100755 index f967bb4b..00000000 --- a/employee-manager/keploy/test-set-0/tests/test-5.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: api.keploy.io/v1beta1 -kind: Http -name: test-5 -spec: - metadata: {} - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees/111 - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: "" - body_type: "" - timestamp: 2023-12-04T09:32:20.577053016Z - resp: - status_code: 404 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:20 GMT - body: '{"timestamp":"2023-12-04T09:32:20.584+00:00","message":"Employee not found for this id :: 111","details":"uri=/api/employees/111"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 2023-12-04T09:32:23.591186772Z - objects: [] - assertions: - noise: - body.timestamp: [] - header.Date: [] - created: 1701682343 -curl: | - curl --request GET \ - --url http://localhost:8080/api/employees/111 \ - --header 'Host: localhost:8080' \ - --header 'User-Agent: curl/7.81.0' \ - --header 'Accept: */*' \ diff --git a/employee-manager/keploy/testReports/report-1.yaml b/employee-manager/keploy/testReports/report-1.yaml deleted file mode 100755 index b5ce08bd..00000000 --- a/employee-manager/keploy/testReports/report-1.yaml +++ /dev/null @@ -1,344 +0,0 @@ -version: api.keploy.io/v1beta1 -name: report-1 -status: PASSED -success: 5 -failure: 0 -total: 5 -tests: - - kind: Http - name: report-1 - status: PASSED - started: 1701682393 - completed: 1701682393 - test_case_path: /home/gouravkumar.linux/gk_workspace/java_workspace/java-samples-merge/samples-java/employee-manager/keploy/test-set-0 - mock_path: "" - test_case_id: test-1 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees - header: - Accept: '*/*' - Content-Length: "100" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: |- - { - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:07 GMT - body: '{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - body.timestamp: [] - header.Date: [] - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Type - value: - - application/json - actual: - key: Content-Type - value: - - application/json - - normal: true - expected: - key: Date - value: - - Mon, 04 Dec 2023 09:32:07 GMT - actual: - key: Date - value: - - Mon, 04 Dec 2023 09:33:13 GMT - body_result: - - normal: true - type: JSON - expected: '{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327}' - actual: '{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682393}' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1701682393 - completed: 1701682393 - test_case_path: /home/gouravkumar.linux/gk_workspace/java_workspace/java-samples-merge/samples-java/employee-manager/keploy/test-set-0 - mock_path: "" - test_case_id: test-2 - req: - method: POST - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees - header: - Accept: '*/*' - Content-Length: "100" - Content-Type: application/json - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: |- - { - "firstName": "Myke", - "lastName": "Tyson", - "email": "mt@gmail.com", - "timestamp":1 - } - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:09 GMT - body: '{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - body.timestamp: [] - header.Date: [] - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Content-Type - value: - - application/json - actual: - key: Content-Type - value: - - application/json - - normal: true - expected: - key: Date - value: - - Mon, 04 Dec 2023 09:32:09 GMT - actual: - key: Date - value: - - Mon, 04 Dec 2023 09:33:13 GMT - body_result: - - normal: true - type: JSON - expected: '{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}' - actual: '{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682393}' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1701682393 - completed: 1701682393 - test_case_path: /home/gouravkumar.linux/gk_workspace/java_workspace/java-samples-merge/samples-java/employee-manager/keploy/test-set-0 - mock_path: "" - test_case_id: test-3 - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees/ - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: "" - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:13 GMT - body: '[{"id":1,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700642324},{"id":2,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650840},{"id":3,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650845},{"id":4,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650846},{"id":5,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650870},{"id":6,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650871},{"id":7,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700668292},{"id":8,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155376},{"id":9,"firstName":"GK","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155441},{"id":10,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682065},{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066},{"id":12,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682068},{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327},{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}]' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - body.timestamp: [] - header.Date: [] - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Date - value: - - Mon, 04 Dec 2023 09:32:13 GMT - actual: - key: Date - value: - - Mon, 04 Dec 2023 09:33:13 GMT - - normal: true - expected: - key: Content-Type - value: - - application/json - actual: - key: Content-Type - value: - - application/json - body_result: - - normal: true - type: JSON - expected: '[{"id":1,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700642324},{"id":2,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650840},{"id":3,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650845},{"id":4,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650846},{"id":5,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650870},{"id":6,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650871},{"id":7,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700668292},{"id":8,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155376},{"id":9,"firstName":"GK","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155441},{"id":10,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682065},{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066},{"id":12,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682068},{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327},{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}]' - actual: '[{"id":1,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700642324},{"id":2,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650840},{"id":3,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650845},{"id":4,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650846},{"id":5,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650870},{"id":6,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700650871},{"id":7,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1700668292},{"id":8,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155376},{"id":9,"firstName":"GK","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701155441},{"id":10,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682065},{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066},{"id":12,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682068},{"id":13,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682327},{"id":14,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682329}]' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1701682393 - completed: 1701682393 - test_case_path: /home/gouravkumar.linux/gk_workspace/java_workspace/java-samples-merge/samples-java/employee-manager/keploy/test-set-0 - mock_path: "" - test_case_id: test-4 - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees/11 - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: "" - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 200 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:17 GMT - body: '{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - body.timestamp: [] - header.Date: [] - result: - status_code: - normal: true - expected: 200 - actual: 200 - headers_result: - - normal: true - expected: - key: Date - value: - - Mon, 04 Dec 2023 09:32:17 GMT - actual: - key: Date - value: - - Mon, 04 Dec 2023 09:33:13 GMT - - normal: true - expected: - key: Content-Type - value: - - application/json - actual: - key: Content-Type - value: - - application/json - body_result: - - normal: true - type: JSON - expected: '{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066}' - actual: '{"id":11,"firstName":"Myke","lastName":"Tyson","email":"mt@gmail.com","timestamp":1701682066}' - dep_result: [] - - kind: Http - name: report-1 - status: PASSED - started: 1701682393 - completed: 1701682393 - test_case_path: /home/gouravkumar.linux/gk_workspace/java_workspace/java-samples-merge/samples-java/employee-manager/keploy/test-set-0 - mock_path: "" - test_case_id: test-5 - req: - method: GET - proto_major: 1 - proto_minor: 1 - url: http://localhost:8080/api/employees/111 - header: - Accept: '*/*' - Host: localhost:8080 - User-Agent: curl/7.81.0 - body: "" - body_type: "" - timestamp: 0001-01-01T00:00:00Z - resp: - status_code: 404 - header: - Content-Type: application/json - Date: Mon, 04 Dec 2023 09:32:20 GMT - body: '{"timestamp":"2023-12-04T09:32:20.584+00:00","message":"Employee not found for this id :: 111","details":"uri=/api/employees/111"}' - body_type: "" - status_message: "" - proto_major: 0 - proto_minor: 0 - timestamp: 0001-01-01T00:00:00Z - noise: - body.timestamp: [] - header.Date: [] - result: - status_code: - normal: true - expected: 404 - actual: 404 - headers_result: - - normal: true - expected: - key: Date - value: - - Mon, 04 Dec 2023 09:32:20 GMT - actual: - key: Date - value: - - Mon, 04 Dec 2023 09:33:13 GMT - - normal: true - expected: - key: Content-Type - value: - - application/json - actual: - key: Content-Type - value: - - application/json - body_result: - - normal: true - type: JSON - expected: '{"timestamp":"2023-12-04T09:32:20.584+00:00","message":"Employee not found for this id :: 111","details":"uri=/api/employees/111"}' - actual: '{"timestamp":"2023-12-04T09:33:13.534+00:00","message":"Employee not found for this id :: 111","details":"uri=/api/employees/111"}' - dep_result: [] -test_set: test-set-0 diff --git a/employee-manager/pom.xml b/employee-manager/pom.xml index f2459021..4f9d18fb 100644 --- a/employee-manager/pom.xml +++ b/employee-manager/pom.xml @@ -18,64 +18,56 @@ - org.springframework - spring-context - 5.3.22 - - - - org.springframework - spring-webmvc - 5.3.22 + org.springframework.boot + spring-boot-starter-web - org.springframework.boot spring-boot-starter-data-jpa - ${project.parent.version} - - - io.keploy - keploy-sdk - 1.4.7 org.springframework.boot - spring-boot-starter-web - ${project.parent.version} + spring-boot-starter-validation org.postgresql postgresql - 42.5.0 - runtime + 42.2.24 + + + org.projectlombok + lombok + true + + io.keploy + keploy-sdk + 1.4.7 + + + org.springframework.boot spring-boot-starter-test - ${project.parent.version} test - org.springframework.boot - spring-boot-starter-validation - ${project.parent.version} + io.rest-assured + rest-assured + test - - - org.springframework - spring-test - 5.3.22 + org.testcontainers + testcontainers + 1.18.3 test - org.projectlombok - lombok - 1.18.24 - provided + org.testcontainers + junit-jupiter + 1.18.3 + test - @@ -83,10 +75,19 @@ org.springframework.boot spring-boot-maven-plugin - ${project.parent.version} + + + + org.projectlombok + lombok + + + + + + org.apache.maven.plugins + maven-surefire-plugin - - org.jacoco jacoco-maven-plugin @@ -108,4 +109,4 @@ - + \ No newline at end of file diff --git a/employee-manager/src/main/resources/application.properties b/employee-manager/src/main/resources/application.properties index 8dfd91cb..3a3de9e9 100644 --- a/employee-manager/src/main/resources/application.properties +++ b/employee-manager/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.datasource.url=jdbc:postgresql://localhost:5439/keploy-test +spring.datasource.url=jdbc:postgresql://localhost:5432/keploy-test spring.datasource.username=keploy-user spring.datasource.password=keploy #spring.jpa.show-sql=true diff --git a/employee-manager/src/test/java/SamplesJavaApplication_Test.java b/employee-manager/src/test/java/SamplesJavaApplication_Test.java deleted file mode 100644 index f380f96b..00000000 --- a/employee-manager/src/test/java/SamplesJavaApplication_Test.java +++ /dev/null @@ -1,5 +0,0 @@ - - -public class SamplesJavaApplication_Test { - -} diff --git a/employee-manager/src/test/java/com/example/demo/controller/EmployeeControllerTest.java b/employee-manager/src/test/java/com/example/demo/controller/EmployeeControllerTest.java new file mode 100644 index 00000000..1fd27dd9 --- /dev/null +++ b/employee-manager/src/test/java/com/example/demo/controller/EmployeeControllerTest.java @@ -0,0 +1,81 @@ +package com.example.demo.controller; + +import io.restassured.RestAssured; +import io.restassured.http.ContentType; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.web.server.LocalServerPort; +import com.example.demo.model.Employee; +import com.example.demo.repository.EmployeeRepository; +import static io.restassured.RestAssured.*; +import static org.hamcrest.Matchers.*; + +@SuppressWarnings("deprecation") +@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) +public class EmployeeControllerTest { + + @LocalServerPort + private int port; + + @Autowired + private EmployeeRepository employeeRepository; + + private Employee testEmployee; + + @BeforeEach + public void setUp() { + RestAssured.baseURI = "http://localhost"; + RestAssured.port = port; + + // Clean up repository to ensure fresh data for each test + employeeRepository.deleteAll(); + + // Create and save test employee + testEmployee = new Employee(); + testEmployee.setFirstName("John"); + testEmployee.setLastName("Doe"); + testEmployee.setEmail("john.doe@example.com"); + employeeRepository.save(testEmployee); // save to generate ID + } + + @Test + public void testGetEmployeeById() { + get("/api/employees/" + testEmployee.getId()) + .then() + .statusCode(200) + .body("id", equalTo((int) testEmployee.getId())) // Ensure correct ID + .body("firstName", equalTo("John")) + .body("lastName", equalTo("Doe")) + .body("email", equalTo("john.doe@example.com")); + } + + @Test + public void testUpdateEmployee() { + String updatedEmployeeJson = "{\"firstName\":\"Jane\",\"lastName\":\"Doe\",\"email\":\"jane.doe@example.com\"}"; + + given() + .contentType(ContentType.JSON) + .body(updatedEmployeeJson) + .when() + .put("/api/employees/" + testEmployee.getId()) + .then() + .statusCode(200) + .body("firstName", equalTo("Jane")) + .body("lastName", equalTo("Doe")) + .body("email", equalTo("jane.doe@example.com")); + } + + @Test + public void testDeleteEmployee() { + delete("/api/employees/" + testEmployee.getId()) + .then() + .statusCode(200); + + // Verify that employee no longer exists + get("/api/employees/" + testEmployee.getId()) + .then() + .statusCode(404); + } +} diff --git a/employee-manager/src/test/resources/application.properties b/employee-manager/src/test/resources/application.properties new file mode 100644 index 00000000..3a3de9e9 --- /dev/null +++ b/employee-manager/src/test/resources/application.properties @@ -0,0 +1,18 @@ +spring.datasource.url=jdbc:postgresql://localhost:5432/keploy-test +spring.datasource.username=keploy-user +spring.datasource.password=keploy +#spring.jpa.show-sql=true +#spring.datasource.driverClassName=io.keploy.ksql.KDriver +spring.jpa.properties.hibernate.format_sql=true +## Hibernate Properties +# The SQL dialect makes Hibernate generate better SQL for the chosen database +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect +#Hibernate ddl auto (create, create-drop, validate, update) +spring.jpa.hibernate.ddl-auto=update + +# in order to populate some initial data for testing mark it as true. +#spring.jpa.defer-datasource-initialization=true +#spring.sql.init.mode=always + +server.port=8080 +logging.level.root=INFO \ No newline at end of file