mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Tests for REPP log
This commit is contained in:
parent
568c52129f
commit
b10815810d
3 changed files with 24 additions and 0 deletions
|
@ -18,6 +18,16 @@ describe Repp::ContactV1 do
|
|||
|
||||
# TODO: Maybe there is a way not to convert from and to json again
|
||||
expect(body['contacts'].to_json).to eq(epp_user.registrar.contacts.to_json)
|
||||
|
||||
log = ApiLog::ReppLog.first
|
||||
expect(log[:request_path]).to eq('/repp/v1/contacts')
|
||||
expect(log[:request_method]).to eq('GET')
|
||||
expect(log[:request_params]).to eq('{}')
|
||||
expect(log[:response].length).to be > 20
|
||||
expect(log[:response_code]).to eq('200')
|
||||
expect(log[:api_user_name]).to eq('gitlab')
|
||||
expect(log[:api_user_registrar]).to eq('Registrar OÜ')
|
||||
expect(log[:ip]).to eq('127.0.0.1')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue