Skip to content

Commit

Permalink
Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigerdo committed Apr 10, 2024
1 parent f34793f commit eda87f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions pkg/api/deploymentapi/deptemplateapi/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func TestGet(t *testing.T) {
{
name: "succeeds",
args: args{params: GetParams{
Region: "us-east-1",
TemplateID: "default",
Region: "us-east-1",
TemplateID: "default",
ShowMaxZones: true,
API: api.NewMock(mock.New200ResponseAssertion(
&mock.RequestAssertion{
Header: api.DefaultReadMockHeaders,
Expand All @@ -84,7 +85,7 @@ func TestGet(t *testing.T) {
Query: url.Values{
"region": []string{"us-east-1"},
"show_instance_configurations": []string{"true"},
"show_max_zones": []string{"false"},
"show_max_zones": []string{"true"},
},
},
mock.NewByteBody(getRawResp),
Expand Down
5 changes: 3 additions & 2 deletions pkg/api/deploymentapi/deptemplateapi/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func TestList(t *testing.T) {
{
name: "succeeds",
args: args{params: ListParams{
Region: "us-east-1",
Region: "us-east-1",
ShowMaxZones: true,
API: api.NewMock(mock.New200ResponseAssertion(
&mock.RequestAssertion{
Header: api.DefaultReadMockHeaders,
Expand All @@ -83,7 +84,7 @@ func TestList(t *testing.T) {
"region": []string{"us-east-1"},
"show_instance_configurations": []string{"true"},
"show_hidden": []string{"false"},
"show_max_zones": []string{"false"},
"show_max_zones": []string{"true"},
},
},
mock.NewByteBody(listRawResp),
Expand Down

0 comments on commit eda87f5

Please sign in to comment.