test/fastly/syslog_test.rb in fastly-2.0.0 vs test/fastly/syslog_test.rb in fastly-2.1.0
- old
+ new
@@ -36,10 +36,10 @@
'deleted_at' => nil,
'created_at' => '2017-12-12T21:44:45Z',
'format' => '%h %l %u %t \'%r\' %>s %b',
)
- get_item_url = "#{Fastly::Client::DEFAULT_URL}/service/#{service_id}/version/#{version}/syslog/#{syslog.name}"
+ get_item_url = "#{Fastly::Client::DEFAULT_URL}/service/#{service_id}/version/#{version}/logging/syslog/#{syslog.name}"
get_service_url = "#{Fastly::Client::DEFAULT_URL}/service/#{service_id}/version/#{version}"
stub_request(:get, get_service_url).to_return(status: 200, body: '{}', headers: {})
stub_request(:get, get_item_url).to_return(body: response_body, status: 200)