Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen committed Nov 23, 2023
1 parent 829a4b1 commit 08f9def
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion cmd/infractl/cluster/get/fancy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ func TestGetClusterJSONOutput(t *testing.T) {
DestroyedOn: nil,
Lifespan: ptypes.DurationProto(10800 * time.Second),
Description: "My test cluster",
Parameters: []*v1.Parameter{
&v1.Parameter{

Check failure on line 157 in cmd/infractl/cluster/get/fancy_test.go

View workflow job for this annotation

GitHub Actions / lint / golint

File is not `gofmt`-ed with `-s` (gofmt)
Name: "Test parameter",
Value: "Test value",
Description: "This is a test parameter",
},
},
}, nil
},
}
Expand Down Expand Up @@ -205,7 +212,19 @@ func TestGetClusterJSONOutput(t *testing.T) {
"Lifespan": {
"seconds": "10800"
},
"Description": "My test cluster"
"Description": "My test cluster",
"Parameters": [
{
"Name": "Test parameter",
"Description": "This is a test parameter",
"Value": "Test value",
"Optional": false,
"Internal": false,
"Order": 0,
"Help": "",
"FromFile": false
}
]
}
`
assert.Equal(t, expected, buf.String())
Expand Down

0 comments on commit 08f9def

Please sign in to comment.