From 7b567edd409603499cd2b390638ad7368c5a4ab6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 7 Feb 2024 09:04:47 -0500 Subject: [PATCH] update casettes --- .../test_integration/test_api_keys.yaml | 22 +++---- .../test_integration/test_branches.yaml | 24 +++---- .../test_integration/test_database.yaml | 46 +++++++------- .../test_integration/test_endpoints.yaml | 46 +++++++------- tests/cassettes/test_integration/test_me.yaml | 6 +- .../test_integration/test_operations.yaml | 52 ++++++++-------- .../test_integration/test_project.yaml | 62 +++++++++---------- .../test_integration/test_roles.yaml | 56 ++++++++--------- 8 files changed, 157 insertions(+), 157 deletions(-) diff --git a/tests/cassettes/test_integration/test_api_keys.yaml b/tests/cassettes/test_integration/test_api_keys.yaml index e3a4e4b..124f693 100644 --- a/tests/cassettes/test_integration/test_api_keys.yaml +++ b/tests/cassettes/test_integration/test_api_keys.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"key_name": "pytest-7165"}' + body: '{"key_name": "pytest-3951"}' headers: Accept: - application/json @@ -18,7 +18,7 @@ interactions: uri: https://console.neon.tech/api/v2/api_keys response: body: - string: '{"id":774735,"key":"cr1h99xaf219r2b1x48f0ezxcz1fm3ypx5zgqzrktvszf324bysgj0k3co0xrpji","name":"pytest-7165","created_at":"2024-01-25T15:57:46Z"}' + string: '{"id":821303,"key":"z46yynhjt27n5eaif3l7hnn8fh1romg3dal6j6lh1c5wp1kg9wluz9ivu0qfkg87","name":"pytest-3951","created_at":"2024-02-07T14:04:01Z"}' headers: Connection: - keep-alive @@ -27,13 +27,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:46 GMT + - Wed, 07 Feb 2024 14:04:01 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 8dcbf028f5370c2852df1c5d8ddf75af + - 980e46c9d9405afa07b0a9d77e9042c7 status: code: 200 message: OK @@ -54,7 +54,7 @@ interactions: uri: https://console.neon.tech/api/v2/api_keys response: body: - string: '[{"id":774735,"name":"pytest-7165","created_at":"2024-01-25T15:57:46Z","last_used_at":null,"last_used_from_addr":""},{"id":768620,"name":"neon_client","created_at":"2024-01-23T21:56:07Z","last_used_at":"2024-01-25T15:57:46Z","last_used_from_addr":"204.111.161.156"}]' + string: '[{"id":821303,"name":"pytest-3951","created_at":"2024-02-07T14:04:01Z","last_used_at":null,"last_used_from_addr":""},{"id":768620,"name":"neon_client","created_at":"2024-01-23T21:56:07Z","last_used_at":"2024-02-07T14:04:01Z","last_used_from_addr":"204.111.161.156"}]' headers: Connection: - keep-alive @@ -63,13 +63,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:46 GMT + - Wed, 07 Feb 2024 14:04:01 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - a85a39be9e094e4e20523b5b5e00f2c4 + - b4439d52416bca497dd5ce25fe598756 status: code: 200 message: OK @@ -89,10 +89,10 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/api_keys/774735 + uri: https://console.neon.tech/api/v2/api_keys/821303 response: body: - string: '{"id":774735,"name":"pytest-7165","revoked":true,"last_used_at":null,"last_used_from_addr":""}' + string: '{"id":821303,"name":"pytest-3951","revoked":true,"last_used_at":null,"last_used_from_addr":""}' headers: Connection: - keep-alive @@ -101,13 +101,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:46 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 61b66794bc2ac60a5f8b19b054e5e9fa + - 5ba0f1a7236a57ed7f9d30e3631b2fef status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_branches.yaml b/tests/cassettes/test_integration/test_branches.yaml index 2522348..c68c132 100644 --- a/tests/cassettes/test_integration/test_branches.yaml +++ b/tests/cassettes/test_integration/test_branches.yaml @@ -25,18 +25,18 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 42a3b9beeb8a82efba0a5d9a4e5a9b2a + - 8d8fb7c8b61612022d2759f4b6568a8b status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-975"}}' + body: '{"project": {"name": "pytest-1650"}}' headers: Accept: - application/json @@ -45,7 +45,7 @@ interactions: Connection: - keep-alive Content-Length: - - '35' + - '36' Content-Type: - application/json User-Agent: @@ -54,14 +54,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"silent-hall-60879203","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-975","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:lOzq2QVs7rLu@ep-misty-truth-a5favp6j.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"lOzq2QVs7rLu","role":"kennethreitz","host":"ep-misty-truth-a5favp6j.us-east-2.aws.neon.tech","pooler_host":"ep-misty-truth-a5favp6j-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-square-dawn-a5kwozbg","name":"kennethreitz","password":"lOzq2QVs7rLu","protected":false,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}],"databases":[{"id":32656137,"branch_id":"br-square-dawn-a5kwozbg","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}],"operations":[{"id":"6ca36bc4-9abb-4f8b-92d5-599a42860f56","project_id":"silent-hall-60879203","branch_id":"br-square-dawn-a5kwozbg","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","total_duration_ms":0},{"id":"6a6bcfb8-59c9-499b-bef0-8d1e2e1d90ca","project_id":"silent-hall-60879203","branch_id":"br-square-dawn-a5kwozbg","endpoint_id":"ep-misty-truth-a5favp6j","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","total_duration_ms":0}],"branch":{"id":"br-square-dawn-a5kwozbg","project_id":"silent-hall-60879203","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"},"endpoints":[{"host":"ep-misty-truth-a5favp6j.us-east-2.aws.neon.tech","id":"ep-misty-truth-a5favp6j","project_id":"silent-hall-60879203","branch_id":"br-square-dawn-a5kwozbg","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"dawn-thunder-32985739","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1650","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:D3w4xRWTXdNZ@ep-tiny-brook-a50d320m.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"D3w4xRWTXdNZ","role":"kennethreitz","host":"ep-tiny-brook-a50d320m.us-east-2.aws.neon.tech","pooler_host":"ep-tiny-brook-a50d320m-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-sparkling-wildflower-a561dd4b","name":"kennethreitz","password":"D3w4xRWTXdNZ","protected":false,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z"}],"databases":[{"id":32885820,"branch_id":"br-sparkling-wildflower-a561dd4b","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z"}],"operations":[{"id":"5c0b6796-1fe4-4a68-aa93-b5007cde5cd3","project_id":"dawn-thunder-32985739","branch_id":"br-sparkling-wildflower-a561dd4b","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","total_duration_ms":0},{"id":"30cadcee-cb97-45af-a8e3-3cf2c15c18a6","project_id":"dawn-thunder-32985739","branch_id":"br-sparkling-wildflower-a561dd4b","endpoint_id":"ep-tiny-brook-a50d320m","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","total_duration_ms":0}],"branch":{"id":"br-sparkling-wildflower-a561dd4b","project_id":"dawn-thunder-32985739","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z"},"endpoints":[{"host":"ep-tiny-brook-a50d320m.us-east-2.aws.neon.tech","id":"ep-tiny-brook-a50d320m","project_id":"dawn-thunder-32985739","branch_id":"br-sparkling-wildflower-a561dd4b","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -69,7 +69,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 822f090413b84a64145045ce2bc92001 + - 2d592751381d3803fb9a9ab49c26086b status: code: 201 message: Created @@ -87,25 +87,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/silent-hall-60879203/branches + uri: https://console.neon.tech/api/v2/projects/dawn-thunder-32985739/branches response: body: - string: '{"branches":[{"id":"br-square-dawn-a5kwozbg","project_id":"silent-hall-60879203","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}]}' + string: '{"branches":[{"id":"br-sparkling-wildflower-a561dd4b","project_id":"dawn-thunder-32985739","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z"}]}' headers: Connection: - keep-alive Content-Length: - - '372' + - '382' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 0d0998d802b4d2a36bbfc67f52897734 + - 5a7c7654574b3ca6160bb3686368fd61 status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_database.yaml b/tests/cassettes/test_integration/test_database.yaml index b63fe4f..5f2b0c0 100644 --- a/tests/cassettes/test_integration/test_database.yaml +++ b/tests/cassettes/test_integration/test_database.yaml @@ -16,22 +16,22 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"silent-hall-60879203","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-975","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","synthetic_storage_size":0,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"silent-hall-60879203"}}' + string: '{"projects":[{"id":"dawn-thunder-32985739","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1650","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","synthetic_storage_size":0,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"dawn-thunder-32985739"}}' headers: Connection: - keep-alive Content-Length: - - '800' + - '803' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 1a8e935964dd8c8a93708b6ff597f5bc + - 2ce72590ed785ae4a9e6a1c3eba9fdd3 status: code: 200 message: OK @@ -51,30 +51,30 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/silent-hall-60879203 + uri: https://console.neon.tech/api/v2/projects/dawn-thunder-32985739 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"silent-hall-60879203","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-975","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"dawn-thunder-32985739","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1650","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:03Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive Content-Length: - - '966' + - '968' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 923efbba77c71c27186969b1441da987 + - c9f3a5be36e67049001a98cb15ae7ab2 status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-3114"}}' + body: '{"project": {"name": "pytest-8043"}}' headers: Accept: - application/json @@ -92,14 +92,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"silent-cell-86624606","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3114","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:TaN2mFYSHn0p@ep-dark-block-a5kjtynt.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"TaN2mFYSHn0p","role":"kennethreitz","host":"ep-dark-block-a5kjtynt.us-east-2.aws.neon.tech","pooler_host":"ep-dark-block-a5kjtynt-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-aged-fog-a5tggcga","name":"kennethreitz","password":"TaN2mFYSHn0p","protected":false,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}],"databases":[{"id":32656138,"branch_id":"br-aged-fog-a5tggcga","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}],"operations":[{"id":"cec9a068-af54-4cc3-a40e-a5d842cd77ba","project_id":"silent-cell-86624606","branch_id":"br-aged-fog-a5tggcga","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","total_duration_ms":0},{"id":"8cfdb6f1-e6ef-4638-a9f3-acde30450d59","project_id":"silent-cell-86624606","branch_id":"br-aged-fog-a5tggcga","endpoint_id":"ep-dark-block-a5kjtynt","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","total_duration_ms":0}],"branch":{"id":"br-aged-fog-a5tggcga","project_id":"silent-cell-86624606","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"},"endpoints":[{"host":"ep-dark-block-a5kjtynt.us-east-2.aws.neon.tech","id":"ep-dark-block-a5kjtynt","project_id":"silent-cell-86624606","branch_id":"br-aged-fog-a5tggcga","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"shrill-haze-90386576","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8043","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:SrYp0Qc1IfVw@ep-curly-butterfly-a5q4jnv9.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"SrYp0Qc1IfVw","role":"kennethreitz","host":"ep-curly-butterfly-a5q4jnv9.us-east-2.aws.neon.tech","pooler_host":"ep-curly-butterfly-a5q4jnv9-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-wispy-heart-a5rzuzp9","name":"kennethreitz","password":"SrYp0Qc1IfVw","protected":false,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}],"databases":[{"id":32885821,"branch_id":"br-wispy-heart-a5rzuzp9","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}],"operations":[{"id":"7890b7f6-764d-4fec-a185-24e2897cec1b","project_id":"shrill-haze-90386576","branch_id":"br-wispy-heart-a5rzuzp9","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0},{"id":"c6452bca-9cc1-480e-b34d-4da91faf71d5","project_id":"shrill-haze-90386576","branch_id":"br-wispy-heart-a5rzuzp9","endpoint_id":"ep-curly-butterfly-a5q4jnv9","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0}],"branch":{"id":"br-wispy-heart-a5rzuzp9","project_id":"shrill-haze-90386576","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"},"endpoints":[{"host":"ep-curly-butterfly-a5q4jnv9.us-east-2.aws.neon.tech","id":"ep-curly-butterfly-a5q4jnv9","project_id":"shrill-haze-90386576","branch_id":"br-wispy-heart-a5rzuzp9","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -107,7 +107,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 4086da34bfc400b12f8982ff71a1e5b5 + - d78079b40a6f6933e3031fca0184c616 status: code: 201 message: Created @@ -125,25 +125,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/silent-cell-86624606/branches + uri: https://console.neon.tech/api/v2/projects/shrill-haze-90386576/branches response: body: - string: '{"branches":[{"id":"br-aged-fog-a5tggcga","project_id":"silent-cell-86624606","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}]}' + string: '{"branches":[{"id":"br-wispy-heart-a5rzuzp9","project_id":"shrill-haze-90386576","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}]}' headers: Connection: - keep-alive Content-Length: - - '369' + - '372' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 251f32017b0c6bdd4348c3d0344f03f2 + - 7628c0ba22399ad107f75bf798e316e4 status: code: 200 message: OK @@ -161,25 +161,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/silent-cell-86624606/branches/br-aged-fog-a5tggcga/databases + uri: https://console.neon.tech/api/v2/projects/shrill-haze-90386576/branches/br-wispy-heart-a5rzuzp9/databases response: body: - string: '{"databases":[{"id":32656138,"branch_id":"br-aged-fog-a5tggcga","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z"}]}' + string: '{"databases":[{"id":32885821,"branch_id":"br-wispy-heart-a5rzuzp9","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}]}' headers: Connection: - keep-alive Content-Length: - - '182' + - '185' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - ab37b6db12de0de9ca7ef99145a55594 + - 0fec6048549da8a9c804173b469dccdd status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_endpoints.yaml b/tests/cassettes/test_integration/test_endpoints.yaml index b64b4ec..9ef702c 100644 --- a/tests/cassettes/test_integration/test_endpoints.yaml +++ b/tests/cassettes/test_integration/test_endpoints.yaml @@ -16,22 +16,22 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"royal-rice-95423393","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1764","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","synthetic_storage_size":0,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"royal-rice-95423393"}}' + string: '{"projects":[{"id":"frosty-silence-91759038","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3866","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","synthetic_storage_size":0,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"frosty-silence-91759038"}}' headers: Connection: - keep-alive Content-Length: - - '799' + - '807' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 3505a358d2917b63921148869bde8cd7 + - 8250e07c6425d276dea7da2705e2bed6 status: code: 200 message: OK @@ -51,30 +51,30 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/royal-rice-95423393 + uri: https://console.neon.tech/api/v2/projects/frosty-silence-91759038 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"royal-rice-95423393","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1764","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"frosty-silence-91759038","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3866","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive Content-Length: - - '966' + - '970' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 2ca0dd5b1c66944dcfcd667c0a8d5d88 + - 47710aa5fb66b0da3a6ab48520344913 status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-5133"}}' + body: '{"project": {"name": "pytest-5693"}}' headers: Accept: - application/json @@ -92,14 +92,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"dark-sun-46453911","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5133","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:6bA5GlQtyrMw@ep-shrill-boat-a5ez4tdt.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"6bA5GlQtyrMw","role":"kennethreitz","host":"ep-shrill-boat-a5ez4tdt.us-east-2.aws.neon.tech","pooler_host":"ep-shrill-boat-a5ez4tdt-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-withered-paper-a5o7qhfg","name":"kennethreitz","password":"6bA5GlQtyrMw","protected":false,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}],"databases":[{"id":32656141,"branch_id":"br-withered-paper-a5o7qhfg","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}],"operations":[{"id":"cbf9f4bc-7fd5-4b17-b4d3-e3974d4db233","project_id":"dark-sun-46453911","branch_id":"br-withered-paper-a5o7qhfg","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","total_duration_ms":0},{"id":"be6059a1-1d84-4414-96c3-1279cc851808","project_id":"dark-sun-46453911","branch_id":"br-withered-paper-a5o7qhfg","endpoint_id":"ep-shrill-boat-a5ez4tdt","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","total_duration_ms":0}],"branch":{"id":"br-withered-paper-a5o7qhfg","project_id":"dark-sun-46453911","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"},"endpoints":[{"host":"ep-shrill-boat-a5ez4tdt.us-east-2.aws.neon.tech","id":"ep-shrill-boat-a5ez4tdt","project_id":"dark-sun-46453911","branch_id":"br-withered-paper-a5o7qhfg","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"wild-mouse-66436193","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5693","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:3j4cxyfVJOLP@ep-silent-base-a5jwdx30.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"3j4cxyfVJOLP","role":"kennethreitz","host":"ep-silent-base-a5jwdx30.us-east-2.aws.neon.tech","pooler_host":"ep-silent-base-a5jwdx30-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-delicate-sunset-a5nlwu09","name":"kennethreitz","password":"3j4cxyfVJOLP","protected":false,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z"}],"databases":[{"id":32885824,"branch_id":"br-delicate-sunset-a5nlwu09","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z"}],"operations":[{"id":"8067d217-b94d-464b-9532-1f6825948786","project_id":"wild-mouse-66436193","branch_id":"br-delicate-sunset-a5nlwu09","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","total_duration_ms":0},{"id":"6b89b9d3-5420-46e8-a0d0-443d4ca101bc","project_id":"wild-mouse-66436193","branch_id":"br-delicate-sunset-a5nlwu09","endpoint_id":"ep-silent-base-a5jwdx30","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","total_duration_ms":0}],"branch":{"id":"br-delicate-sunset-a5nlwu09","project_id":"wild-mouse-66436193","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z"},"endpoints":[{"host":"ep-silent-base-a5jwdx30.us-east-2.aws.neon.tech","id":"ep-silent-base-a5jwdx30","project_id":"wild-mouse-66436193","branch_id":"br-delicate-sunset-a5nlwu09","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -107,7 +107,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 7f965b9bba5a6b97135299ca71449a1d + - eec6a9c4b265f6753e30c02db29af599 status: code: 201 message: Created @@ -125,25 +125,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/dark-sun-46453911/endpoints + uri: https://console.neon.tech/api/v2/projects/wild-mouse-66436193/endpoints response: body: - string: '{"endpoints":[{"host":"ep-shrill-boat-a5ez4tdt.us-east-2.aws.neon.tech","id":"ep-shrill-boat-a5ez4tdt","project_id":"dark-sun-46453911","branch_id":"br-withered-paper-a5o7qhfg","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"last_active":"2000-01-01T00:00:00Z","creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"endpoints":[{"host":"ep-silent-base-a5jwdx30.us-east-2.aws.neon.tech","id":"ep-silent-base-a5jwdx30","project_id":"wild-mouse-66436193","branch_id":"br-delicate-sunset-a5nlwu09","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"last_active":"2000-01-01T00:00:00Z","creation_source":"console","created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Length: - - '679' + - '682' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - a36f4a81deb7f72a0eead3fea34d1bc2 + - edda2a93551b3c3d2c9f333c462911f8 status: code: 200 message: OK @@ -161,25 +161,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/dark-sun-46453911/endpoints/ep-shrill-boat-a5ez4tdt + uri: https://console.neon.tech/api/v2/projects/wild-mouse-66436193/endpoints/ep-silent-base-a5jwdx30 response: body: - string: '{"endpoint":{"host":"ep-shrill-boat-a5ez4tdt.us-east-2.aws.neon.tech","id":"ep-shrill-boat-a5ez4tdt","project_id":"dark-sun-46453911","branch_id":"br-withered-paper-a5o7qhfg","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"last_active":"2000-01-01T00:00:00Z","creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}}' + string: '{"endpoint":{"host":"ep-silent-base-a5jwdx30.us-east-2.aws.neon.tech","id":"ep-silent-base-a5jwdx30","project_id":"wild-mouse-66436193","branch_id":"br-delicate-sunset-a5nlwu09","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"last_active":"2000-01-01T00:00:00Z","creation_source":"console","created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}}' headers: Connection: - keep-alive Content-Length: - - '676' + - '679' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 46eadfbf272f4456efe09cf1b7079d74 + - ec503135f79cb3c2a7b2236e68c1dc8b status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_me.yaml b/tests/cassettes/test_integration/test_me.yaml index 6c0c36e..efbf0e5 100644 --- a/tests/cassettes/test_integration/test_me.yaml +++ b/tests/cassettes/test_integration/test_me.yaml @@ -16,7 +16,7 @@ interactions: uri: https://console.neon.tech/api/v2/users/me response: body: - string: '{"active_seconds_limit":360000,"billing_account":{"payment_source":{"type":""},"subscription_type":"free","quota_reset_at_last":"2024-01-01T00:00:00Z","email":"me@kennethreitz.org","address_city":"","address_country":"","address_line1":"","address_line2":"","address_postal_code":"","address_state":"","orb_portal_url":"https://portal.withorb.com/view?token=Imh4aFpBa1pLNXBUV1BlY0Mi.yPns-bwJIFrQ0Bex_wunQaeVKi0"},"auth_accounts":[{"email":"me@kennethreitz.org","image":"https://avatars.githubusercontent.com/u/119893?v=4","login":"kennethreitz","name":"Kenneth + string: '{"active_seconds_limit":360000,"billing_account":{"payment_source":{"type":""},"subscription_type":"free","quota_reset_at_last":"2024-02-01T00:00:00Z","email":"me@kennethreitz.org","address_city":"","address_country":"","address_line1":"","address_line2":"","address_postal_code":"","address_state":"","orb_portal_url":"https://portal.withorb.com/view?token=Imh4aFpBa1pLNXBUV1BlY0Mi.yPns-bwJIFrQ0Bex_wunQaeVKi0"},"auth_accounts":[{"email":"me@kennethreitz.org","image":"https://avatars.githubusercontent.com/u/119893?v=4","login":"kennethreitz","name":"Kenneth Reitz","provider":"github"}],"email":"me@kennethreitz.org","id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de","image":"https://avatars.githubusercontent.com/u/119893?v=4","login":"kennethreitz","name":"Kenneth Reitz","last_name":"","projects_limit":1,"branches_limit":10,"max_autoscaling_limit":0.25,"plan":"free"}' headers: @@ -27,13 +27,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:46 GMT + - Wed, 07 Feb 2024 14:04:01 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - f41044e300a8c83afa4b283e866b6281 + - d549449835111878282467a009761f61 status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_operations.yaml b/tests/cassettes/test_integration/test_operations.yaml index 63081d1..9a1ead4 100644 --- a/tests/cassettes/test_integration/test_operations.yaml +++ b/tests/cassettes/test_integration/test_operations.yaml @@ -16,7 +16,7 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"silent-cell-86624606","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3114","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","synthetic_storage_size":0,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"silent-cell-86624606"}}' + string: '{"projects":[{"id":"shrill-haze-90386576","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8043","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-02-07T14:04:03Z","updated_at":"2024-02-07T14:04:04Z","synthetic_storage_size":0,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"shrill-haze-90386576"}}' headers: Connection: - keep-alive @@ -25,13 +25,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 754ef66372fbc6b6b37c68030726ef00 + - 2d24309ef1906a31657ae3cc87c688b8 status: code: 200 message: OK @@ -51,10 +51,10 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/silent-cell-86624606 + uri: https://console.neon.tech/api/v2/projects/shrill-haze-90386576 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"silent-cell-86624606","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3114","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:48Z","updated_at":"2024-01-25T15:57:48Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"shrill-haze-90386576","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8043","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive @@ -63,18 +63,18 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 9d1ddcdfe99fd2f6bbdf10f059781c52 + - 327e9eca88520070b87064a30a9dceb7 status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-1764"}}' + body: '{"project": {"name": "pytest-3866"}}' headers: Accept: - application/json @@ -92,14 +92,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"royal-rice-95423393","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1764","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:Iykfw9U2VKjc@ep-bold-sound-a5p8di10.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"Iykfw9U2VKjc","role":"kennethreitz","host":"ep-bold-sound-a5p8di10.us-east-2.aws.neon.tech","pooler_host":"ep-bold-sound-a5p8di10-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-green-unit-a5sehv93","name":"kennethreitz","password":"Iykfw9U2VKjc","protected":false,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z"}],"databases":[{"id":32656139,"branch_id":"br-green-unit-a5sehv93","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z"}],"operations":[{"id":"1a7a6e72-fa6c-44bb-9048-07b29a2475ee","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","total_duration_ms":0},{"id":"c99b8635-079c-40ef-b243-c6b431c3cd5c","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","endpoint_id":"ep-bold-sound-a5p8di10","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","total_duration_ms":0}],"branch":{"id":"br-green-unit-a5sehv93","project_id":"royal-rice-95423393","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z"},"endpoints":[{"host":"ep-bold-sound-a5p8di10.us-east-2.aws.neon.tech","id":"ep-bold-sound-a5p8di10","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"frosty-silence-91759038","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3866","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:aJy1Qh7nHOUS@ep-sparkling-truth-a5hubm76.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"aJy1Qh7nHOUS","role":"kennethreitz","host":"ep-sparkling-truth-a5hubm76.us-east-2.aws.neon.tech","pooler_host":"ep-sparkling-truth-a5hubm76-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-icy-poetry-a5h63s3u","name":"kennethreitz","password":"aJy1Qh7nHOUS","protected":false,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}],"databases":[{"id":32885822,"branch_id":"br-icy-poetry-a5h63s3u","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}],"operations":[{"id":"43385cd2-0793-40f8-913e-76b01f2e7d3a","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0},{"id":"ac002b8c-09bc-44d2-96cb-9cd23c8805dc","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","endpoint_id":"ep-sparkling-truth-a5hubm76","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0}],"branch":{"id":"br-icy-poetry-a5h63s3u","project_id":"frosty-silence-91759038","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"},"endpoints":[{"host":"ep-sparkling-truth-a5hubm76.us-east-2.aws.neon.tech","id":"ep-sparkling-truth-a5hubm76","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -107,7 +107,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 5521ac673ec6c906dbee813953becf30 + - 75c1c1c016b01ccfbf005d2eb2246ac1 status: code: 201 message: Created @@ -125,25 +125,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/royal-rice-95423393/branches + uri: https://console.neon.tech/api/v2/projects/frosty-silence-91759038/branches response: body: - string: '{"branches":[{"id":"br-green-unit-a5sehv93","project_id":"royal-rice-95423393","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z"}]}' + string: '{"branches":[{"id":"br-icy-poetry-a5h63s3u","project_id":"frosty-silence-91759038","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z"}]}' headers: Connection: - keep-alive Content-Length: - - '370' + - '374' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:04 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - a0b7251ef60d47007d8efed6cc604f67 + - d4763be5945a0bb81de57ea43f5f9ad4 status: code: 200 message: OK @@ -161,25 +161,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/royal-rice-95423393/operations + uri: https://console.neon.tech/api/v2/projects/frosty-silence-91759038/operations response: body: - string: '{"operations":[{"id":"c99b8635-079c-40ef-b243-c6b431c3cd5c","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","endpoint_id":"ep-bold-sound-a5p8di10","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","total_duration_ms":0},{"id":"1a7a6e72-fa6c-44bb-9048-07b29a2475ee","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","total_duration_ms":17}],"pagination":{"cursor":"2024-01-25T15:57:49.545014Z"}}' + string: '{"operations":[{"id":"ac002b8c-09bc-44d2-96cb-9cd23c8805dc","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","endpoint_id":"ep-sparkling-truth-a5hubm76","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0},{"id":"43385cd2-0793-40f8-913e-76b01f2e7d3a","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":38}],"pagination":{"cursor":"2024-02-07T14:04:04.803443Z"}}' headers: Connection: - keep-alive Content-Length: - - '665' + - '678' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 4b8b02106d16eb93f28dd8f68589541b + - 1384de73ecf99e1ef3092d9ccceb3725 status: code: 200 message: OK @@ -197,25 +197,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/royal-rice-95423393/operations/c99b8635-079c-40ef-b243-c6b431c3cd5c + uri: https://console.neon.tech/api/v2/projects/frosty-silence-91759038/operations/ac002b8c-09bc-44d2-96cb-9cd23c8805dc response: body: - string: '{"operation":{"id":"c99b8635-079c-40ef-b243-c6b431c3cd5c","project_id":"royal-rice-95423393","branch_id":"br-green-unit-a5sehv93","endpoint_id":"ep-bold-sound-a5p8di10","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:49Z","updated_at":"2024-01-25T15:57:49Z","total_duration_ms":0}}' + string: '{"operation":{"id":"ac002b8c-09bc-44d2-96cb-9cd23c8805dc","project_id":"frosty-silence-91759038","branch_id":"br-icy-poetry-a5h63s3u","endpoint_id":"ep-sparkling-truth-a5hubm76","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:04Z","updated_at":"2024-02-07T14:04:04Z","total_duration_ms":0}}' headers: Connection: - keep-alive Content-Length: - - '330' + - '339' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:49 GMT + - Wed, 07 Feb 2024 14:04:05 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 001d634b7e8baf1841a4c85dc50468ed + - f71dcdb6b98351845af63e2c29d443c5 status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_project.yaml b/tests/cassettes/test_integration/test_project.yaml index 4741033..c65809b 100644 --- a/tests/cassettes/test_integration/test_project.yaml +++ b/tests/cassettes/test_integration/test_project.yaml @@ -16,22 +16,22 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"silent-pine-45061972","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1011","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":312,"cpu_used_sec":84,"creation_source":"console","created_at":"2024-01-25T14:27:07Z","updated_at":"2024-01-25T14:27:09Z","synthetic_storage_size":32658808,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"silent-pine-45061972"}}' + string: '{"projects":[{"id":"bold-sun-73491519","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4620","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:52Z","synthetic_storage_size":32658752,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"bold-sun-73491519"}}' headers: Connection: - keep-alive Content-Length: - - '811' + - '802' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - a5d4e69b0b4f61933d29dadb2e796beb + - 8a01c8b658af42e163c5529ffd82490d status: code: 200 message: OK @@ -51,30 +51,30 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/silent-pine-45061972 + uri: https://console.neon.tech/api/v2/projects/bold-sun-73491519 response: body: - string: '{"project":{"data_storage_bytes_hour":65317616,"data_transfer_bytes":0,"written_data_bytes":32073176,"compute_time_seconds":84,"active_time_seconds":312,"cpu_used_sec":84,"id":"silent-pine-45061972","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-1011","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T14:27:07Z","updated_at":"2024-01-25T14:27:09Z","synthetic_storage_size":32658808,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":130593648,"data_transfer_bytes":0,"written_data_bytes":32073120,"compute_time_seconds":86,"active_time_seconds":308,"cpu_used_sec":86,"id":"bold-sun-73491519","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4620","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:52Z","synthetic_storage_size":32815400,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive Content-Length: - - '992' + - '990' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 55730e33b2c3af9c57d58a08ca2c55a7 + - c3a3af09adbe473600ea21d28b42ae3f status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-8512"}}' + body: '{"project": {"name": "pytest-7002"}}' headers: Accept: - application/json @@ -92,14 +92,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"super-lab-49305559","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8512","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:ZoI8HOCzy2Fq@ep-winter-fog-a5o423he.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"ZoI8HOCzy2Fq","role":"kennethreitz","host":"ep-winter-fog-a5o423he.us-east-2.aws.neon.tech","pooler_host":"ep-winter-fog-a5o423he-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-sparkling-limit-a5jhvx7d","name":"kennethreitz","password":"ZoI8HOCzy2Fq","protected":false,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z"}],"databases":[{"id":32656135,"branch_id":"br-sparkling-limit-a5jhvx7d","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z"}],"operations":[{"id":"eda64e91-c153-4298-b673-ef527bf283de","project_id":"super-lab-49305559","branch_id":"br-sparkling-limit-a5jhvx7d","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","total_duration_ms":0},{"id":"b91c654b-fa13-48d5-95db-7527481de5de","project_id":"super-lab-49305559","branch_id":"br-sparkling-limit-a5jhvx7d","endpoint_id":"ep-winter-fog-a5o423he","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","total_duration_ms":0}],"branch":{"id":"br-sparkling-limit-a5jhvx7d","project_id":"super-lab-49305559","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z"},"endpoints":[{"host":"ep-winter-fog-a5o423he.us-east-2.aws.neon.tech","id":"ep-winter-fog-a5o423he","project_id":"super-lab-49305559","branch_id":"br-sparkling-limit-a5jhvx7d","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"icy-dream-08641192","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-7002","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:SfveBzuq78bs@ep-floral-shape-a5lure6e.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"SfveBzuq78bs","role":"kennethreitz","host":"ep-floral-shape-a5lure6e.us-east-2.aws.neon.tech","pooler_host":"ep-floral-shape-a5lure6e-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-patient-block-a5ut6a96","name":"kennethreitz","password":"SfveBzuq78bs","protected":false,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z"}],"databases":[{"id":32885819,"branch_id":"br-patient-block-a5ut6a96","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z"}],"operations":[{"id":"e55c0a28-45ae-43c3-bf9a-a355e4c0c044","project_id":"icy-dream-08641192","branch_id":"br-patient-block-a5ut6a96","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","total_duration_ms":0},{"id":"ab5e9075-ea22-458a-b1cc-8d1299bc28c9","project_id":"icy-dream-08641192","branch_id":"br-patient-block-a5ut6a96","endpoint_id":"ep-floral-shape-a5lure6e","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","total_duration_ms":0}],"branch":{"id":"br-patient-block-a5ut6a96","project_id":"icy-dream-08641192","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z"},"endpoints":[{"host":"ep-floral-shape-a5lure6e.us-east-2.aws.neon.tech","id":"ep-floral-shape-a5lure6e","project_id":"icy-dream-08641192","branch_id":"br-patient-block-a5ut6a96","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -107,7 +107,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 410c2128ae97bf7d61ebde01ceea3793 + - fa793ced2650e06e79cb8bcbf28c5a0f status: code: 201 message: Created @@ -125,10 +125,10 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/super-lab-49305559 + uri: https://console.neon.tech/api/v2/projects/icy-dream-08641192 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"super-lab-49305559","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8512","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","synthetic_storage_size":0,"consumption_period_start":"2024-01-13T02:10:30Z","consumption_period_end":"2024-02-01T00:00:00Z","quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de","owner":{"email":"me@kennethreitz.org","branches_limit":10,"subscription_type":"free"}}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"icy-dream-08641192","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-7002","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","synthetic_storage_size":0,"consumption_period_start":"2024-01-13T02:10:30Z","consumption_period_end":"2024-03-01T00:00:00Z","quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de","owner":{"email":"me@kennethreitz.org","branches_limit":10,"subscription_type":"free"}}}' headers: Connection: - keep-alive @@ -137,18 +137,18 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 56cbdf88e090e62e31c8c6215d543e1c + - a236ba010dafe0e8e281d54d6fd772a9 status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-3457"}}' + body: '{"project": {"name": "pytest-4134"}}' headers: Accept: - application/json @@ -163,10 +163,10 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: PATCH - uri: https://console.neon.tech/api/v2/projects/super-lab-49305559 + uri: https://console.neon.tech/api/v2/projects/icy-dream-08641192 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"super-lab-49305559","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3457","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"operations":[]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"icy-dream-08641192","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4134","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"operations":[]}' headers: Connection: - keep-alive @@ -175,13 +175,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - d1d56bdad396884634f814b75264026a + - f966e4fe0c603e1215dffa6bcf44e8a6 status: code: 200 message: OK @@ -202,7 +202,7 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"super-lab-49305559","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3457","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","synthetic_storage_size":0,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"super-lab-49305559"}}' + string: '{"projects":[{"id":"icy-dream-08641192","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4134","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","synthetic_storage_size":0,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"icy-dream-08641192"}}' headers: Connection: - keep-alive @@ -211,13 +211,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:02 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 862933986dbbe6776c7dda98c550f11b + - 3dc14683f27ce5081e9f603e036f66d9 status: code: 200 message: OK @@ -247,13 +247,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:47 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - be75936654fe234a16016f9514557189 + - f9e5d9847e96d8b0b679c844bcf289c6 status: code: 200 message: OK @@ -273,10 +273,10 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/super-lab-49305559 + uri: https://console.neon.tech/api/v2/projects/icy-dream-08641192 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"super-lab-49305559","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-3457","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:47Z","updated_at":"2024-01-25T15:57:47Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"icy-dream-08641192","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4134","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:02Z","updated_at":"2024-02-07T14:04:02Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive @@ -285,13 +285,13 @@ interactions: Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:48 GMT + - Wed, 07 Feb 2024 14:04:03 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 69b49cbf4608fd6738b3ec4fd185e16a + - c2dc90aab245f1de6f981b1b99e0adb6 status: code: 200 message: OK diff --git a/tests/cassettes/test_integration/test_roles.yaml b/tests/cassettes/test_integration/test_roles.yaml index 7ad4934..5ac5d84 100644 --- a/tests/cassettes/test_integration/test_roles.yaml +++ b/tests/cassettes/test_integration/test_roles.yaml @@ -16,22 +16,22 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"projects":[{"id":"dark-sun-46453911","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5133","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","synthetic_storage_size":0,"quota_reset_at":"2024-02-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"dark-sun-46453911"}}' + string: '{"projects":[{"id":"wild-mouse-66436193","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5693","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0,"autoscaling_limit_max_cu":0,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"active_time":0,"cpu_used_sec":0,"creation_source":"console","created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","synthetic_storage_size":0,"quota_reset_at":"2024-03-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}],"pagination":{"cursor":"wild-mouse-66436193"}}' headers: Connection: - keep-alive Content-Length: - - '795' + - '799' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 17a475f309332dada5aab563f7fbe49c + - e265c5182bb69ba9324326e913eb1a70 status: code: 200 message: OK @@ -51,30 +51,30 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: DELETE - uri: https://console.neon.tech/api/v2/projects/dark-sun-46453911 + uri: https://console.neon.tech/api/v2/projects/wild-mouse-66436193 response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"dark-sun-46453911","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5133","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"wild-mouse-66436193","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-5693","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:05Z","updated_at":"2024-02-07T14:04:05Z","synthetic_storage_size":0,"consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"}}' headers: Connection: - keep-alive Content-Length: - - '964' + - '966' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:50 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - ac7a75802dd2e7eb954e31bd1e97cd71 + - 79bbdaa046c518ff1cbbb083c1f29f7f status: code: 200 message: OK - request: - body: '{"project": {"name": "pytest-4620"}}' + body: '{"project": {"name": "pytest-8030"}}' headers: Accept: - application/json @@ -92,14 +92,14 @@ interactions: uri: https://console.neon.tech/api/v2/projects response: body: - string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"bold-sun-73491519","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-4620","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:iPSUDyB83uWh@ep-patient-cake-a50xo01z.us-east-2.aws.neon.tech/neondb","connection_parameters":{"database":"neondb","password":"iPSUDyB83uWh","role":"kennethreitz","host":"ep-patient-cake-a50xo01z.us-east-2.aws.neon.tech","pooler_host":"ep-patient-cake-a50xo01z-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-wild-queen-a5g61xzu","name":"kennethreitz","password":"iPSUDyB83uWh","protected":false,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}],"databases":[{"id":32656142,"branch_id":"br-wild-queen-a5g61xzu","name":"neondb","owner_name":"kennethreitz","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}],"operations":[{"id":"ac2e1de8-2dcc-4650-996d-e35ff312a701","project_id":"bold-sun-73491519","branch_id":"br-wild-queen-a5g61xzu","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","total_duration_ms":0},{"id":"e8ff1b85-d03d-4a2b-9b0f-82c27aec9324","project_id":"bold-sun-73491519","branch_id":"br-wild-queen-a5g61xzu","endpoint_id":"ep-patient-cake-a50xo01z","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","total_duration_ms":0}],"branch":{"id":"br-wild-queen-a5g61xzu","project_id":"bold-sun-73491519","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"},"endpoints":[{"host":"ep-patient-cake-a50xo01z.us-east-2.aws.neon.tech","id":"ep-patient-cake-a50xo01z","project_id":"bold-sun-73491519","branch_id":"br-wild-queen-a5g61xzu","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' + string: '{"project":{"data_storage_bytes_hour":0,"data_transfer_bytes":0,"written_data_bytes":0,"compute_time_seconds":0,"active_time_seconds":0,"cpu_used_sec":0,"id":"misty-limit-51637438","platform_id":"aws","region_id":"aws-us-east-2","name":"pytest-8030","provisioner":"k8s-neonvm","default_endpoint_settings":{"autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"suspend_timeout_seconds":0},"settings":{"allowed_ips":{"ips":[],"primary_branch_only":false},"enable_logical_replication":false},"pg_version":15,"proxy_host":"us-east-2.aws.neon.tech","branch_logical_size_limit":3072,"branch_logical_size_limit_bytes":3221225472,"store_passwords":true,"creation_source":"console","history_retention_seconds":604800,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z","consumption_period_start":"0001-01-01T00:00:00Z","consumption_period_end":"0001-01-01T00:00:00Z","owner_id":"838386f6-b5f1-4c3b-89a2-4f5a130ef3de"},"connection_uris":[{"connection_uri":"postgres://kennethreitz:YpWmn78xcPSe@ep-green-snow-a5e8szrn.us-east-2.aws.neon.tech/neondb?sslmode=require","connection_parameters":{"database":"neondb","password":"YpWmn78xcPSe","role":"kennethreitz","host":"ep-green-snow-a5e8szrn.us-east-2.aws.neon.tech","pooler_host":"ep-green-snow-a5e8szrn-pooler.us-east-2.aws.neon.tech"}}],"roles":[{"branch_id":"br-square-poetry-a5z73s2e","name":"kennethreitz","password":"YpWmn78xcPSe","protected":false,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"}],"databases":[{"id":32885825,"branch_id":"br-square-poetry-a5z73s2e","name":"neondb","owner_name":"kennethreitz","created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"}],"operations":[{"id":"640ae86f-54b3-4dc4-929e-84663cda1dcb","project_id":"misty-limit-51637438","branch_id":"br-square-poetry-a5z73s2e","action":"create_timeline","status":"running","failures_count":0,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z","total_duration_ms":0},{"id":"48cee62c-3b95-4e18-81dc-4b88af3e5e5c","project_id":"misty-limit-51637438","branch_id":"br-square-poetry-a5z73s2e","endpoint_id":"ep-green-snow-a5e8szrn","action":"start_compute","status":"scheduling","failures_count":0,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z","total_duration_ms":0}],"branch":{"id":"br-square-poetry-a5z73s2e","project_id":"misty-limit-51637438","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"},"endpoints":[{"host":"ep-green-snow-a5e8szrn.us-east-2.aws.neon.tech","id":"ep-green-snow-a5e8szrn","project_id":"misty-limit-51637438","branch_id":"br-square-poetry-a5z73s2e","autoscaling_limit_min_cu":0.25,"autoscaling_limit_max_cu":0.25,"region_id":"aws-us-east-2","type":"read_write","current_state":"init","pending_state":"active","settings":{},"pooler_enabled":false,"pooler_mode":"transaction","disabled":false,"passwordless_access":true,"creation_source":"console","created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z","proxy_host":"us-east-2.aws.neon.tech","suspend_timeout_seconds":0,"provisioner":"k8s-neonvm"}]}' headers: Connection: - keep-alive Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:51 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Transfer-Encoding: @@ -107,7 +107,7 @@ interactions: Vary: - Origin X-Neon-Ret-Request-Id: - - 874ba77273a94aa572a452fd744f4881 + - 4ce77a283556af4558b384573a2bf4b3 status: code: 201 message: Created @@ -125,25 +125,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/bold-sun-73491519/branches + uri: https://console.neon.tech/api/v2/projects/misty-limit-51637438/branches response: body: - string: '{"branches":[{"id":"br-wild-queen-a5g61xzu","project_id":"bold-sun-73491519","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}]}' + string: '{"branches":[{"id":"br-square-poetry-a5z73s2e","project_id":"misty-limit-51637438","name":"main","current_state":"init","pending_state":"ready","creation_source":"console","primary":true,"cpu_used_sec":0,"compute_time_seconds":0,"active_time_seconds":0,"written_data_bytes":0,"data_transfer_bytes":0,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"}]}' headers: Connection: - keep-alive Content-Length: - - '368' + - '374' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:51 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - df7bc161bbe035eced3a7ccbaf3eb63a + - 65a78b72557e1c39572d642fd44ec1b2 status: code: 200 message: OK @@ -161,25 +161,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/bold-sun-73491519/branches/br-wild-queen-a5g61xzu/roles + uri: https://console.neon.tech/api/v2/projects/misty-limit-51637438/branches/br-square-poetry-a5z73s2e/roles response: body: - string: '{"roles":[{"branch_id":"br-wild-queen-a5g61xzu","name":"kennethreitz","protected":false,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}]}' + string: '{"roles":[{"branch_id":"br-square-poetry-a5z73s2e","name":"kennethreitz","protected":false,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"}]}' headers: Connection: - keep-alive Content-Length: - - '162' + - '165' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:51 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - f60dc1866549311627e7fceb197ece0b + - a4ecc67a590f81e554008a5d4bca6a37 status: code: 200 message: OK @@ -197,25 +197,25 @@ interactions: User-Agent: - neon-client/python version=(0.1.0) method: GET - uri: https://console.neon.tech/api/v2/projects/bold-sun-73491519/branches/br-wild-queen-a5g61xzu/roles/kennethreitz + uri: https://console.neon.tech/api/v2/projects/misty-limit-51637438/branches/br-square-poetry-a5z73s2e/roles/kennethreitz response: body: - string: '{"role":{"branch_id":"br-wild-queen-a5g61xzu","name":"kennethreitz","protected":false,"created_at":"2024-01-25T15:57:50Z","updated_at":"2024-01-25T15:57:50Z"}}' + string: '{"role":{"branch_id":"br-square-poetry-a5z73s2e","name":"kennethreitz","protected":false,"created_at":"2024-02-07T14:04:06Z","updated_at":"2024-02-07T14:04:06Z"}}' headers: Connection: - keep-alive Content-Length: - - '159' + - '162' Content-Type: - application/json Date: - - Thu, 25 Jan 2024 15:57:51 GMT + - Wed, 07 Feb 2024 14:04:06 GMT Strict-Transport-Security: - max-age=15724800; includeSubDomains Vary: - Origin X-Neon-Ret-Request-Id: - - 707a61d91570a9eba40bcecbdec4356c + - bb7e48652e5a655f623c33420ec40d73 status: code: 200 message: OK