Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Tymchuk authored Sep 13, 2023
2 parents 0dd2c81 + d6be5fd commit 9158545
Show file tree
Hide file tree
Showing 29 changed files with 5,540 additions and 573 deletions.
15 changes: 15 additions & 0 deletions api-tests/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,21 @@ func AddRemoteNode(t TestingT, nodeName string) *nodes.AddRemoteNodeOKBody {
return res.Payload
}

func AddNode(t TestingT, nodeBody *nodes.AddNodeBody) *nodes.AddNodeOKBody {
t.Helper()

params := &nodes.AddNodeParams{
Body: *nodeBody,
Context: Context,
}

res, err := client.Default.Nodes.AddNode(params)
assert.NoError(t, err)
require.NotNil(t, res)

return res.Payload
}

func AddPMMAgent(t TestingT, nodeID string) *agents.AddPMMAgentOKBody {
t.Helper()

Expand Down
Loading

0 comments on commit 9158545

Please sign in to comment.