Skip to content

Commit

Permalink
Exclude autoupdateplan from automated coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoShaka committed Oct 3, 2024
1 parent 1f8e98c commit fff7c75
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/auth/autoupdate/autoupdatev1/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,21 @@ func TestServiceAccess(t *testing.T) {
})
}

// TODO(hugoShaka): remove this exclusion list once the methods are implemented
var notImplementedYetMethods = []string{
"GetAutoUpdateAgentPlan",
"CreateAutoUpdateAgentPlan",
"UpdateAutoUpdateAgentPlan",
"UpsertAutoUpdateAgentPlan",
"DeleteAutoUpdateAgentPlan",
}

// verify that all declared methods have matching test cases
t.Run("verify coverage", func(t *testing.T) {
for _, method := range autoupdate.AutoUpdateService_ServiceDesc.Methods {
if slices.Contains(notImplementedYetMethods, method.MethodName) {
continue
}
t.Run(method.MethodName, func(t *testing.T) {
match := false
for _, testCase := range testCases {
Expand Down

0 comments on commit fff7c75

Please sign in to comment.