spec/integration/lib/auth0/api/v2/api_email_spec.rb in auth0-5.5.0 vs spec/integration/lib/auth0/api/v2/api_email_spec.rb in auth0-5.6.0
- old
+ new
@@ -34,22 +34,10 @@
credentials: credentials,
settings: settings
}
end
- describe '.configure_provider', vcr: true do
- it 'should configure a new email provider' do
- begin
- expect(
- JSON.parse(JSON[client.configure_provider(body)], symbolize_names: true)
- ).to include(body)
- rescue Auth0::Unsupported
- puts 'Email provider is already configured'
- end
- end
- end
-
describe '.get_provider', vcr: true do
it 'should get the existing email provider' do
begin
expect(client.get_provider.size).to be > 0
rescue Auth0::NotFound
@@ -81,28 +69,9 @@
).to_not include('enabled')
rescue Auth0::NotFound
'No email provider configured'
end
end
- end
- end
-
- describe '.update_provider', vcr: true do
- let(:update_body) do
- {
- name: 'sendgrid',
- settings: {
- first_up_setting: 'first_up_setting_set',
- second_up_setting: 'second_up_setting_set'
- }.merge(settings),
- credentials: credentials
- }
- end
-
- it 'should update the existing email provider' do
- expect(
- JSON.parse(JSON[client.update_provider(update_body)], symbolize_names: true)
- ).to include(update_body)
end
end
describe '.delete_provider', vcr: true do
it 'should delete the existing email provider without an error' do