spec/datadog/notifications/plugins/grape_spec.rb in datadog-notifications-0.3.1 vs spec/datadog/notifications/plugins/grape_spec.rb in datadog-notifications-0.4.0
- old
+ new
@@ -30,16 +30,16 @@
get '/echo/1/1234'
expect(last_response.status).to eq(200)
expect(last_response.body).to eq('1 1234')
expect(buffered).to eq([
- "api.request:1|c|#custom:tag,env:test,host:test.host,more:tags,method:GET,path:/echo/_key1_/_key2_,status:200",
- "api.request.time:333|ms|#custom:tag,env:test,host:test.host,more:tags,method:GET,path:/echo/_key1_/_key2_,status:200",
+ "api.request:1|c|#custom:tag,env:test,host:test.host,more:tags,method:GET,path:/echo/KEY1/KEY2,status:200",
+ "api.request.time:333|ms|#custom:tag,env:test,host:test.host,more:tags,method:GET,path:/echo/KEY1/KEY2,status:200",
])
end
it 'should support namespaces and versioning' do
- get '/api/v1/sub/versioned'
+ get '/api/v1/sub/versioned.txt'
expect(last_response.status).to eq(200)
expect(last_response.body).to eq('OK')
expect(buffered).to eq([
"api.request:1|c|#custom:tag,env:test,host:test.host,more:tags,method:GET,path:/api/sub/versioned,status:200,version:v1",