Shopify / oktakit

Ruby toolkit for working with the Okta API
https://rubygems.org/gems/oktakit
MIT License
69 stars 60 forks source link

Unable to test out of the box #43

Open agrberg opened 2 years ago

agrberg commented 2 years ago

The tests no longer pass out of the box following instructions in https://github.com/Shopify/oktakit#testing.

Following the instructions cause a number of requests to fail due to changes in Okta or with HTTP 404 as constants are no longer valid. For example #create_user in user_spec.rb fails as the password cannot contain a significant portion of the question now. When changes are made to get those tests to pass, others with ID constants like USERS_USER_ID fail as the resource is not found.

Without making changes to spec_helper.rb all of the tests pass except the errors tests. It appears that Oktakit::Response::RaiseError is no longer used by Faraday or through some combination with VCR.