Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 0 additions & 42 deletions diagnostics.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions e2e/sweep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ func TestServiceReadSweep(t *testing.T) {
})
return rid(r), tot(r), err
}},
{"Diagnostics", func() (string, int, error) {
_, r, err := c.Diagnostics.TargetsList(ctx, &flashduty.TargetsListRequest{})
return rid(r), tot(r), err
}},
}

for _, rd := range reads {
Expand Down
2 changes: 2 additions & 0 deletions internal/cmd/gen/naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ func commonPrefixLen(opTokens [][]string) int {
}

var methodPrefixByTag = map[string][]string{
// Removing Agent endpoints must not rename the supported query methods.
"Monitors/Diagnostics": {"monit", "read"},
"On-call/Incidents": {"incident"},
"On-call/Integrations": {"webhook", "history"},
}
Expand Down
10 changes: 10 additions & 0 deletions internal/cmd/gen/naming_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import "testing"

func TestDiagnosticsNamesSurviveAgentRetirement(t *testing.T) {
names := methodNames("Monitors/Diagnostics", []string{"monit-read-query-data", "monit-read-query-diagnose"})
if names["monit-read-query-data"] != "QueryData" || names["monit-read-query-diagnose"] != "QueryDiagnose" {
t.Fatalf("supported method names changed: %v", names)
}
}
168 changes: 0 additions & 168 deletions models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading