extend tests, update readme

This commit is contained in:
diPhantxm
2023-03-15 02:00:16 +03:00
parent a082200b4f
commit 396f370174
11 changed files with 268 additions and 37 deletions

View File

@@ -13,6 +13,7 @@ func TestGetListOfWarehouses(t *testing.T) {
headers map[string]string
response string
}{
// Test Ok
{
http.StatusOK,
map[string]string{"Client-Id": "my-client-id", "Api-Key": "my-api-key"},
@@ -41,6 +42,15 @@ func TestGetListOfWarehouses(t *testing.T) {
]
}`,
},
// Test No Client-Id or Api-Key
{
http.StatusUnauthorized,
map[string]string{},
`{
"code": 16,
"message": "Client-Id and Api-Key headers are required"
}`,
},
}
for _, test := range tests {