test: records e2e tests for the apis using keploy cli
Signed-off-by: re-Tick <jain.ritik.1001@gmail.com>
This commit is contained in:
parent
954ed45009
commit
8a937987b1
12 changed files with 4578 additions and 0 deletions
1967
keploy/test-set-0/mocks.yaml
Executable file
1967
keploy/test-set-0/mocks.yaml
Executable file
File diff suppressed because one or more lines are too long
44
keploy/test-set-0/tests/test-1.yaml
Executable file
44
keploy/test-set-0/tests/test-1.yaml
Executable file
|
@ -0,0 +1,44 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-1
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: GET
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/subscribers?page=1&per_page=100
|
||||
url_params:
|
||||
page: "1"
|
||||
per_page: "100"
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: ""
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:53:25 GMT
|
||||
body: |
|
||||
{"data":{"results":[{"id":10,"created_at":"2023-09-21T03:20:36.402094Z","updated_at":"2023-09-21T03:20:36.402094Z","uuid":"eab1f8c7-3386-4998-ba67-fea935b01497","email":"subsriber3@domain.com","name":"The Subscriber","attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-21T03:20:36.402094+00:00","subscription_updated_at":"2023-09-21T03:20:36.402094+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]},{"id":9,"created_at":"2023-09-21T03:01:58.1818Z","updated_at":"2023-09-21T03:01:58.1818Z","uuid":"95fa8a54-77ad-47a9-b9d4-5a549b6c1748","email":"subsriber2@domain.com","name":"The Subscriber","attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-21T03:01:58.1818+00:00","subscription_updated_at":"2023-09-21T03:01:58.1818+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]},{"id":6,"created_at":"2023-09-20T12:18:25.580474Z","updated_at":"2023-09-20T12:18:25.580474Z","uuid":"a065531c-d0ff-445a-aefc-36aa55b548d6","email":"subsriber1@domain.com","name":"The Subscriber","attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-20T12:18:25.580474+00:00","subscription_updated_at":"2023-09-20T12:18:25.580474+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]},{"id":3,"created_at":"2023-09-20T11:56:10.988441Z","updated_at":"2023-09-20T11:56:10.988441Z","uuid":"40d1c4bf-81fa-4a79-97f4-84c91165e37c","email":"subsriber@domain.com","name":"The Subscriber","attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-20T11:56:10.988441+00:00","subscription_updated_at":"2023-09-20T11:56:10.988441+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]},{"id":2,"created_at":"2023-09-20T10:36:36.37341Z","updated_at":"2023-09-20T10:36:36.37341Z","uuid":"a81250b3-d1ee-46ad-9325-8645cb772f68","email":"anon@example.com","name":"Anon Doe","attribs":{"city":"Bengaluru","good":true,"type":"unknown"},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-20T10:36:36.37341+00:00","subscription_updated_at":"2023-09-20T10:36:36.37341+00:00","subscription_meta":{},"id":2,"uuid":"86e36156-ff03-4cc9-8b27-fd391f7e77cc","name":"Opt-in list","type":"public","optin":"double","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.370595+00:00","updated_at":"2023-09-20T10:36:36.370595+00:00"}]},{"id":1,"created_at":"2023-09-20T10:36:36.37103Z","updated_at":"2023-09-20T10:36:36.37103Z","uuid":"61270bf1-d711-4473-9d74-6f8761f052b9","email":"john@example.com","name":"John Doe","attribs":{"city":"Bengaluru","good":true,"type":"known"},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-20T10:36:36.37103+00:00","subscription_updated_at":"2023-09-20T10:36:36.37103+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]}],"query":"","total":6,"per_page":100,"page":1}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- body.data.results.lists.subscription_created_at
|
||||
- body.data.results.lists.updated_at
|
||||
- body.data.results.lists.created_at
|
||||
- body.data.results.attribs.type
|
||||
- header.Date
|
||||
- body.data.results.updated_at
|
||||
- body.data.results.attribs.good
|
||||
- body.data.results.created_at
|
||||
- body.data.results.lists.subscription_updated_at
|
||||
created: 1695639206
|
43
keploy/test-set-0/tests/test-2.yaml
Executable file
43
keploy/test-set-0/tests/test-2.yaml
Executable file
|
@ -0,0 +1,43 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-2
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: GET
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/lists?page=1&per_page=100
|
||||
url_params:
|
||||
page: "1"
|
||||
per_page: "100"
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: ""
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Length: "772"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:53:45 GMT
|
||||
body: |
|
||||
{"data":{"results":[{"id":2,"created_at":"2023-09-20T10:36:36.370595Z","updated_at":"2023-09-20T10:36:36.370595Z","uuid":"86e36156-ff03-4cc9-8b27-fd391f7e77cc","name":"Opt-in list","type":"public","optin":"double","tags":["test"],"description":"","subscriber_count":1,"subscriber_statuses":{"unconfirmed":1},"subscription_created_at":null,"subscription_updated_at":null},{"id":1,"created_at":"2023-09-20T10:36:36.369954Z","updated_at":"2023-09-20T10:36:36.369954Z","uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","subscriber_count":5,"subscriber_statuses":{"unconfirmed":5},"subscription_created_at":null,"subscription_updated_at":null}],"query":"","total":2,"per_page":100,"page":1}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- body.data.results.created_at
|
||||
- body.data.results.tags
|
||||
- body.data.results.type
|
||||
- body.data.results.updated_at
|
||||
- body.data.results.name
|
||||
- header.Date
|
||||
- body.data.results.optin
|
||||
created: 1695639226
|
44
keploy/test-set-0/tests/test-3.yaml
Executable file
44
keploy/test-set-0/tests/test-3.yaml
Executable file
|
@ -0,0 +1,44 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-3
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: POST
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/subscribers
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Content-Length: "170"
|
||||
Content-Type: application/json
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: '{"email":"subsriber4@domain.com","name":"The Subscriber","status":"enabled","lists":[1],"attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}}}'
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Length: "739"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:54:14 GMT
|
||||
body: |
|
||||
{"data":{"id":18,"created_at":"2023-09-25T10:54:14.039652Z","updated_at":"2023-09-25T10:54:14.039652Z","uuid":"071136da-2de0-4c19-bec3-f4563ca50975","email":"subsriber4@domain.com","name":"The Subscriber","attribs":{"city":"Bengaluru","projects":3,"stack":{"languages":["go","python"]}},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-25T10:54:14.039652+00:00","subscription_updated_at":"2023-09-25T10:54:14.039652+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- body.data.updated_at
|
||||
- body.data.lists.subscription_updated_at
|
||||
- body.data.lists.updated_at
|
||||
- body.data.attribs.stack.languages
|
||||
- body.data.lists.subscription_created_at
|
||||
- body.data.lists.created_at
|
||||
- body.data.id
|
||||
- body.data.created_at
|
||||
- header.Date
|
||||
created: 1695639254
|
52
keploy/test-set-0/tests/test-4.yaml
Executable file
52
keploy/test-set-0/tests/test-4.yaml
Executable file
|
@ -0,0 +1,52 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-4
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: GET
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/settings
|
||||
header:
|
||||
Accept: application/json, text/plain, */*
|
||||
Accept-Encoding: deflate, gzip, br, zstd
|
||||
Accept-Language: en-GB,en
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Connection: keep-alive
|
||||
Cookie: connect.sid=s%3AdxWsE0jhYYsXQwFQKZJhtK_5Jli7MPB1.Wjbj0YQ3J7yJE1Zx21NQAWPtrz1f8i73j9FAnlvbrSg
|
||||
Host: localhost:9000
|
||||
Referer: http://localhost:9000/admin/settings
|
||||
Sec-Ch-Ua: '"Chromium";v="116", "Not)A;Brand";v="24", "Brave";v="116"'
|
||||
Sec-Ch-Ua-Mobile: ?0
|
||||
Sec-Ch-Ua-Platform: '"macOS"'
|
||||
Sec-Fetch-Dest: empty
|
||||
Sec-Fetch-Mode: cors
|
||||
Sec-Fetch-Site: same-origin
|
||||
Sec-Gpc: "1"
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
|
||||
body: ""
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:54:22 GMT
|
||||
body: |
|
||||
{"data":{"app.site_name":"Mailing list","app.root_url":"http://localhost:9000","app.logo_url":"","app.favicon_url":"","app.from_email":"listmonk \u003cnoreply@listmonk.yoursite.com\u003e","app.notify_emails":["admin1@mysite.com","admin2@mysite.com"],"app.enable_public_subscription_page":true,"app.enable_public_archive":true,"app.enable_public_archive_rss_content":true,"app.send_optin_confirmation":true,"app.check_updates":true,"app.lang":"en","app.batch_size":1000,"app.concurrency":10,"app.max_send_errors":1000,"app.message_rate":10,"app.message_sliding_window":false,"app.message_sliding_window_duration":"1h","app.message_sliding_window_rate":10000,"privacy.individual_tracking":false,"privacy.unsubscribe_header":true,"privacy.allow_blocklist":true,"privacy.allow_preferences":true,"privacy.allow_export":true,"privacy.allow_wipe":true,"privacy.exportable":["profile","subscriptions","campaign_views","link_clicks"],"privacy.record_optin_ip":false,"privacy.domain_blocklist":[],"security.enable_captcha":false,"security.captcha_key":"","security.captcha_secret":"","upload.provider":"filesystem","upload.extensions":["jpg","jpeg","png","gif","svg","*"],"upload.filesystem.upload_path":"uploads","upload.filesystem.upload_uri":"/uploads","upload.s3.url":"https://ap-south-1.s3.amazonaws.com","upload.s3.public_url":"","upload.s3.aws_access_key_id":"","upload.s3.aws_default_region":"ap-south-1","upload.s3.bucket":"","upload.s3.bucket_domain":"","upload.s3.bucket_path":"/","upload.s3.bucket_type":"public","upload.s3.expiry":"167h","smtp":[{"uuid":"","enabled":true,"host":"smtp.yoursite.com","hello_hostname":"","port":25,"auth_protocol":"cram","username":"username","password":"••••••••","email_headers":[],"max_conns":10,"max_msg_retries":2,"idle_timeout":"15s","wait_timeout":"5s","tls_type":"STARTTLS","tls_skip_verify":false},{"uuid":"","enabled":false,"host":"smtp.gmail.com","hello_hostname":"","port":465,"auth_protocol":"login","username":"username@gmail.com","password":"••••••••","email_headers":[],"max_conns":10,"max_msg_retries":2,"idle_timeout":"15s","wait_timeout":"5s","tls_type":"TLS","tls_skip_verify":false}],"messengers":[],"bounce.enabled":false,"bounce.webhooks_enabled":false,"bounce.actions":{"complaint":{"count":2,"action":"delete"},"hard":{"count":2,"action":"blocklist"},"soft":{"count":2,"action":"none"}},"bounce.ses_enabled":false,"bounce.sendgrid_enabled":false,"bounce.sendgrid_key":"","bounce.postmark":{"enabled":false,"username":"","password":""},"bounce.mailboxes":[{"uuid":"","enabled":false,"type":"pop","host":"pop.yoursite.com","port":995,"auth_protocol":"userpass","return_path":"bounce@listmonk.yoursite.com","username":"username","password":"••••••••","tls_enabled":true,"tls_skip_verify":false,"scan_interval":"15m"}],"appearance.admin.custom_css":"","appearance.admin.custom_js":"","appearance.public.custom_css":"","appearance.public.custom_js":""}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- body.data.smtp.auth_protocol
|
||||
- body.data.smtp.tls_type
|
||||
- body.data.smtp.enabled
|
||||
- body.data.smtp.tls_skip_verify
|
||||
- body.data.smtp.username
|
||||
- body.data.bounce.mailboxes.port
|
||||
- body.data.smtp.port
|
||||
- header.Date
|
||||
created: 1695639263
|
36
keploy/test-set-0/tests/test-5.yaml
Executable file
36
keploy/test-set-0/tests/test-5.yaml
Executable file
File diff suppressed because one or more lines are too long
2211
keploy/test-set-1/mocks.yaml
Executable file
2211
keploy/test-set-1/mocks.yaml
Executable file
File diff suppressed because it is too large
Load diff
34
keploy/test-set-1/tests/test-1.yaml
Executable file
34
keploy/test-set-1/tests/test-1.yaml
Executable file
|
@ -0,0 +1,34 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-1
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: POST
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/lists
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: ""
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 400
|
||||
header:
|
||||
Content-Length: "27"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:57:47 GMT
|
||||
body: |
|
||||
{"message":"Invalid name"}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- header.Date
|
||||
created: 1695639468
|
40
keploy/test-set-1/tests/test-2.yaml
Executable file
40
keploy/test-set-1/tests/test-2.yaml
Executable file
|
@ -0,0 +1,40 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-2
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: GET
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/subscribers/1
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: ""
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Length: "699"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:59:18 GMT
|
||||
body: |
|
||||
{"data":{"id":1,"created_at":"2023-09-20T10:36:36.37103Z","updated_at":"2023-09-20T10:36:36.37103Z","uuid":"61270bf1-d711-4473-9d74-6f8761f052b9","email":"john@example.com","name":"John Doe","attribs":{"city":"Bengaluru","good":true,"type":"known"},"status":"enabled","lists":[{"subscription_status":"unconfirmed","subscription_created_at":"2023-09-20T10:36:36.37103+00:00","subscription_updated_at":"2023-09-20T10:36:36.37103+00:00","subscription_meta":{},"id":1,"uuid":"35ae6a52-a7df-44b3-a28c-a0bf86245fd9","name":"Default list","type":"private","optin":"single","tags":["test"],"description":"","created_at":"2023-09-20T10:36:36.369954+00:00","updated_at":"2023-09-20T10:36:36.369954+00:00"}]}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- body.data.lists.subscription_updated_at
|
||||
- body.data.created_at
|
||||
- body.data.updated_at
|
||||
- body.data.lists.subscription_created_at
|
||||
- header.Date
|
||||
- body.data.lists.created_at
|
||||
- body.data.lists.updated_at
|
||||
created: 1695639558
|
35
keploy/test-set-1/tests/test-3.yaml
Executable file
35
keploy/test-set-1/tests/test-3.yaml
Executable file
|
@ -0,0 +1,35 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-3
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: POST
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/public/subscription
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Content-Length: "151"
|
||||
Content-Type: application/json
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: '{"email":"subsriber@domain.com","name":"The Subscriber","list_uuids": ["eb420c55-4cfb-4972-92ba-c93c34ba475d", "0c554cfb-eb42-4972-92ba-c93c34ba475d"]}'
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 200
|
||||
header:
|
||||
Content-Length: "29"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 10:59:55 GMT
|
||||
body: |
|
||||
{"data":{"has_optin":false}}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- header.Date
|
||||
created: 1695639595
|
36
keploy/test-set-1/tests/test-4.yaml
Executable file
36
keploy/test-set-1/tests/test-4.yaml
Executable file
|
@ -0,0 +1,36 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-4
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: PUT
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/subscribers/lists
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Content-Length: "88"
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: '{"ids": [1, 2, 3], "action": "add", "target_list_ids": [4, 5, 6], "status": "confirmed"}'
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 400
|
||||
header:
|
||||
Content-Length: "28"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 11:00:54 GMT
|
||||
body: |
|
||||
{"message":"No IDs given."}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- header.Date
|
||||
created: 1695639654
|
36
keploy/test-set-1/tests/test-5.yaml
Executable file
36
keploy/test-set-1/tests/test-5.yaml
Executable file
|
@ -0,0 +1,36 @@
|
|||
version: api.keploy.io/v1beta2
|
||||
kind: Http
|
||||
name: test-5
|
||||
spec:
|
||||
metadata: {}
|
||||
req:
|
||||
method: PUT
|
||||
proto_major: 1
|
||||
proto_minor: 1
|
||||
url: http://localhost:9000/api/subscribers/lists
|
||||
header:
|
||||
Accept: '*/*'
|
||||
Authorization: Basic bGlzdG1vbms6bGlzdG1vbms=
|
||||
Content-Length: "88"
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Host: localhost:9000
|
||||
User-Agent: curl/7.81.0
|
||||
body: '{"ids": [1, 2, 3], "action": "add", "target_list_ids": [1, 2, 3], "status": "confirmed"}'
|
||||
body_type: ""
|
||||
resp:
|
||||
status_code: 400
|
||||
header:
|
||||
Content-Length: "28"
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Date: Mon, 25 Sep 2023 11:01:22 GMT
|
||||
body: |
|
||||
{"message":"No IDs given."}
|
||||
body_type: ""
|
||||
status_message: ""
|
||||
proto_major: 0
|
||||
proto_minor: 0
|
||||
objects: []
|
||||
assertions:
|
||||
noise:
|
||||
- header.Date
|
||||
created: 1695639682
|
Loading…
Add table
Reference in a new issue