Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12376 single inventory add endpoint #2422

Merged
merged 34 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
2933f22
PMM-12376 add a single NodeAdd endpoint
Aug 17, 2023
f843013
PMM-12376 add a couple tests for AddNode
Aug 18, 2023
ce434b2
Merge branch 'main' of github.com:percona/pmm into PMM-12376-single-i…
Aug 18, 2023
6ead960
PMM-12376 add more tests
Aug 20, 2023
9d23954
PMM-12376 remove debug lines
Aug 20, 2023
3286808
PMM-12376 format the code
Aug 20, 2023
46d8b33
PMM-12376 address linter errors
Aug 21, 2023
f8be918
PMM-12376 pass context to transactions
Aug 21, 2023
ea19cd2
PMM-12376 add more tests
Aug 21, 2023
43122f5
PMM-12376 clean up the tests
Aug 21, 2023
faef751
PMM-12376 improve the tests
Aug 21, 2023
01cf436
PMM-12376 re-generate the specs
Aug 21, 2023
fd37a6b
PMM-12376 add AddNode to grpc server
Aug 21, 2023
cd27259
PMM-12376 update the APi documentation
Aug 21, 2023
03c6b56
PMM-12376 update the documentation
Aug 22, 2023
f2004c9
PMM-12376 prefer oneof vs optional
Aug 25, 2023
24af807
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Aug 25, 2023
175fe21
PMM-12376 update the docs
Aug 25, 2023
ec95615
PMM-12376 add API tests
Aug 28, 2023
055cea7
PMM-12376 fix formatting
Aug 28, 2023
41ad67b
PMM-12376 fix API nodes_test
Aug 28, 2023
1058368
PMM-12376 fix API tests
Aug 28, 2023
f795572
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Aug 28, 2023
c857411
PMM-12376 reindex message props in nodes.proto
Aug 29, 2023
a6ec61a
PMM-12376 use NotEmpty for checking an array
Aug 29, 2023
4c34cd2
PMM-12376 move back the api-tests/server tests
Aug 29, 2023
43b1ea7
Merge branch 'PMM-12376-single-inventory-add-endpoint' of github.com:…
Aug 29, 2023
a959e97
PMM-12376 running make gen
Aug 29, 2023
aa78d2f
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Aug 29, 2023
eeeeb44
PMM-12376 replace NotZerof with NotEmptyf
Aug 29, 2023
78ef65e
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Sep 12, 2023
0277a0d
PMM-12376 fix the TestContainerNode/Basic API test
Sep 13, 2023
1873b50
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Sep 13, 2023
eabc9d8
Merge branch 'main' into PMM-12376-single-inventory-add-endpoint
Sep 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading