mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Fix test description
This commit is contained in:
parent
64e532c53d
commit
669c28377b
4 changed files with 13 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
## GET /repp/v1/accounts/balance
|
## GET /repp/v1/accounts/balance
|
||||||
Returns domains of the current registrar.
|
Returns account balance of the current registrar.
|
||||||
|
|
||||||
|
|
||||||
#### Request
|
#### Request
|
||||||
|
|
|
@ -23,23 +23,23 @@ Content-Type: application/json
|
||||||
```
|
```
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
Cache-Control: max-age=0, private, must-revalidate
|
Cache-Control: max-age=0, private, must-revalidate
|
||||||
Content-Length: 533
|
Content-Length: 524
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"contacts": [
|
"contacts": [
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"code": "sh135909910",
|
"code": "sh523328490",
|
||||||
"phone": "+372.12345678",
|
"phone": "+372.12345678",
|
||||||
"email": "natasha.bechtelar@breitenberg.name",
|
"email": "corene_koch@caspermoen.net",
|
||||||
"fax": null,
|
"fax": null,
|
||||||
"created_at": "2015-04-16T08:44:33.041Z",
|
"created_at": "2015-04-16T08:48:39.551Z",
|
||||||
"updated_at": "2015-04-16T08:44:33.041Z",
|
"updated_at": "2015-04-16T08:48:39.551Z",
|
||||||
"ident": "37605030299",
|
"ident": "37605030299",
|
||||||
"ident_type": "priv",
|
"ident_type": "priv",
|
||||||
"auth_info": "password",
|
"auth_info": "password",
|
||||||
"name": "Miss Sherwood Jacobi0",
|
"name": "Alana Williamson II0",
|
||||||
"org_name": null,
|
"org_name": null,
|
||||||
"registrar_id": 1,
|
"registrar_id": 1,
|
||||||
"creator_str": null,
|
"creator_str": null,
|
||||||
|
@ -79,7 +79,7 @@ Content-Type: application/json
|
||||||
|
|
||||||
{
|
{
|
||||||
"contacts": [
|
"contacts": [
|
||||||
"sh056866451"
|
"sh629765881"
|
||||||
],
|
],
|
||||||
"total_number_of_records": 2
|
"total_number_of_records": 2
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,14 +32,14 @@ Content-Type: application/json
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"name": "domain0.ee",
|
"name": "domain0.ee",
|
||||||
"registrar_id": 1,
|
"registrar_id": 1,
|
||||||
"registered_at": "2015-04-16T08:44:33.499Z",
|
"registered_at": "2015-04-16T08:48:39.995Z",
|
||||||
"status": null,
|
"status": null,
|
||||||
"valid_from": "2015-04-16T00:00:00.000Z",
|
"valid_from": "2015-04-16T00:00:00.000Z",
|
||||||
"valid_to": "2016-04-16T00:00:00.000Z",
|
"valid_to": "2016-04-16T00:00:00.000Z",
|
||||||
"owner_contact_id": 1,
|
"owner_contact_id": 1,
|
||||||
"auth_info": "d081ba64515bc8ae9a512a98e6b1baa1",
|
"auth_info": "3ec9a29d618023920b61758c339b638f",
|
||||||
"created_at": "2015-04-16T08:44:33.496Z",
|
"created_at": "2015-04-16T08:48:39.992Z",
|
||||||
"updated_at": "2015-04-16T08:44:33.496Z",
|
"updated_at": "2015-04-16T08:48:39.991Z",
|
||||||
"name_dirty": "domain0.ee",
|
"name_dirty": "domain0.ee",
|
||||||
"name_puny": "domain0.ee",
|
"name_puny": "domain0.ee",
|
||||||
"period": 1,
|
"period": 1,
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe Repp::AccountV1 do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'GET /repp/v1/accounts/balance' do
|
describe 'GET /repp/v1/accounts/balance' do
|
||||||
it 'returns domains of the current registrar', autodoc: true, route_info_doc: true do
|
it 'returns account balance of the current registrar', autodoc: true, route_info_doc: true do
|
||||||
get_with_auth '/repp/v1/accounts/balance', {}, @api_user
|
get_with_auth '/repp/v1/accounts/balance', {}, @api_user
|
||||||
response.status.should == 200
|
response.status.should == 200
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue