Skip to content

Commit

Permalink
add parameters to cluster output (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommartensen authored Nov 28, 2023
1 parent 15eddf5 commit c7f7b13
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 124 deletions.
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{
{
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
Loading

0 comments on commit c7f7b13

Please sign in to comment.