From 7e73f3856d5e9995dd02d05da3eb34b3574ed512 Mon Sep 17 00:00:00 2001 From: Michael Volo Date: Fri, 18 Oct 2024 18:54:10 -0500 Subject: [PATCH] fix cassettes --- db/schema.rb | 2 + .../Students/student_signup_flow/sf_setup.yml | 29 +++++----- .../Newflow_StudentSignup/sf_setup.yml | 54 ------------------- 3 files changed, 15 insertions(+), 70 deletions(-) delete mode 100644 spec/cassettes/Newflow_StudentSignup/sf_setup.yml diff --git a/db/schema.rb b/db/schema.rb index 74bf3a5095..99acba6f3e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -361,6 +361,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "country", default: "United States", null: false + t.boolean "has_assignable_contacts" t.index ["name", "city", "state"], name: "index_schools_on_name_and_city_and_state", opclass: :gist_trgm_ops, using: :gist t.index ["salesforce_id"], name: "index_schools_on_salesforce_id", unique: true t.index ["sheerid_school_name"], name: "index_schools_on_sheerid_school_name" @@ -472,6 +473,7 @@ t.jsonb "books_used_details" t.string "adopter_status" t.jsonb "consent_preferences" + t.boolean "is_deleted" t.index "lower((first_name)::text)", name: "index_users_on_first_name" t.index "lower((last_name)::text)", name: "index_users_on_last_name" t.index "lower((username)::text)", name: "index_users_on_username_case_insensitive" diff --git a/spec/cassettes/Newflow/Students/student_signup_flow/sf_setup.yml b/spec/cassettes/Newflow/Students/student_signup_flow/sf_setup.yml index 0999821f41..484c3538d8 100644 --- a/spec/cassettes/Newflow/Students/student_signup_flow/sf_setup.yml +++ b/spec/cassettes/Newflow/Students/student_signup_flow/sf_setup.yml @@ -2,13 +2,13 @@ http_interactions: - request: method: post - uri: https://test.salesforce.com/services/oauth2/token + uri: https:///services/oauth2/token body: encoding: US-ASCII string: grant_type=password&client_id=&client_secret=&username=&password= headers: User-Agent: - - Faraday v1.0.1 + - Faraday v1.10.4 Content-Type: - application/x-www-form-urlencoded Accept-Encoding: @@ -21,20 +21,18 @@ http_interactions: message: OK headers: Date: - - Tue, 01 Feb 2022 00:54:06 GMT + - Fri, 18 Oct 2024 23:41:46 GMT Set-Cookie: - - BrowserId=dP4ZcYL5EeyWWLnuR7rniw; domain=.salesforce.com; path=/; expires=Wed, - 01-Feb-2023 00:54:06 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=test.salesforce.com; path=/; expires=Wed, - 01-Feb-2023 00:54:06 GMT; Max-Age=31536000 - - LSKey-c$CookieConsentPolicy=0:0; domain=test.salesforce.com; path=/; expires=Wed, - 01-Feb-2023 00:54:06 GMT; Max-Age=31536000 + - BrowserId=iWXHOY2qEe-om4-Ar5tPbw; domain=.salesforce.com; path=/; expires=Sat, + 18-Oct-2025 23:41:46 GMT; Max-Age=31536000; secure; SameSite=None + - CookieConsentPolicy=0:0; path=/; expires=Sat, 18-Oct-2025 23:41:46 GMT; Max-Age=31536000; + secure + - LSKey-c$CookieConsentPolicy=0:0; path=/; expires=Sat, 18-Oct-2025 23:41:46 + GMT; Max-Age=31536000; secure Strict-Transport-Security: - - max-age=31536000; includeSubDomains + - max-age=63072000; includeSubDomains X-Content-Type-Options: - nosniff - X-Xss-Protection: - - 1; mode=block Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Expires: @@ -49,7 +47,6 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"access_token":"","instance_url":"","id":"","token_type":"Bearer","issued_at":"1643676846645","signature":""}' - http_version: - recorded_at: Tue, 01 Feb 2022 00:54:06 GMT -recorded_with: VCR 3.0.3 + string: '{"access_token":"","instance_url":"","id":"https:///id/00DU0000000KwchMAC/005U0000005akrEIAQ","token_type":"Bearer","issued_at":"1729294906256","signature":""}' + recorded_at: Fri, 18 Oct 2024 23:41:46 GMT +recorded_with: VCR 6.3.1 diff --git a/spec/cassettes/Newflow_StudentSignup/sf_setup.yml b/spec/cassettes/Newflow_StudentSignup/sf_setup.yml deleted file mode 100644 index 3254150437..0000000000 --- a/spec/cassettes/Newflow_StudentSignup/sf_setup.yml +++ /dev/null @@ -1,54 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https:///services/oauth2/token - body: - encoding: US-ASCII - string: grant_type=password&client_id=&client_secret=&username=&password= - headers: - User-Agent: - - Faraday v1.0.1 - Content-Type: - - application/x-www-form-urlencoded - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 200 - message: OK - headers: - Date: - - Tue, 14 Nov 2023 21:48:03 GMT - Set-Cookie: - - BrowserId=fQn7fIM3Ee6fUrvg8m2SAg; domain=.salesforce.com; path=/; expires=Wed, - 13-Nov-2024 21:48:03 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; path=/; expires=Wed, 13-Nov-2024 21:48:03 GMT; Max-Age=31536000 - - LSKey-c$CookieConsentPolicy=0:0; path=/; expires=Wed, 13-Nov-2024 21:48:03 - GMT; Max-Age=31536000 - Strict-Transport-Security: - - max-age=63072000; includeSubDomains - X-Content-Type-Options: - - nosniff - X-Xss-Protection: - - 1; mode=block - Cache-Control: - - no-cache,must-revalidate,max-age=0,no-store,private - Expires: - - Thu, 01 Jan 1970 00:00:00 GMT - X-Readonlymode: - - 'false' - Content-Type: - - application/json;charset=UTF-8 - Vary: - - Accept-Encoding - Transfer-Encoding: - - chunked - body: - encoding: ASCII-8BIT - string: '{"access_token":"","instance_url":"","id":"https:///id/00D040000003rgWEAQ/005U0000005MXdmIAG","token_type":"Bearer","issued_at":"1699998485027","signature":""}' - http_version: - recorded_at: Tue, 14 Nov 2023 21:48:04 GMT -recorded_with: VCR 3.0.3