Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <[email protected]>
  • Loading branch information
imilchev committed Sep 25, 2023
1 parent 8724a09 commit e12e501
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions pkg/client/mondooclient/fakeserver/fakeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,43 +24,5 @@ func FakeServer() *httptest.Server {
return
}
})

// mux.HandleFunc(mondooclient.RunAdmissionReviewEndpoint, func(w http.ResponseWriter, r *http.Request) {
// result := &mondooclient.ScanResult{
// Ok: true,
// WorstScore: &mondooclient.Score{
// Type: mondooclient.ValidScanResult,
// Value: 100,
// },
// }
// data, err := json.Marshal(result)
// if err != nil {
// http.Error(w, err.Error(), 500)
// return
// }
// if _, err = w.Write(data); err != nil {
// http.Error(w, err.Error(), 500)
// return
// }
// })

// mux.HandleFunc(mondooclient.ScanKubernetesResourcesEndpoint, func(w http.ResponseWriter, r *http.Request) {
// result := &mondooclient.ScanResult{
// Ok: true,
// WorstScore: &mondooclient.Score{
// Type: mondooclient.ValidScanResult,
// Value: 100,
// },
// }
// data, err := json.Marshal(result)
// if err != nil {
// http.Error(w, err.Error(), 500)
// return
// }
// if _, err = w.Write(data); err != nil {
// http.Error(w, err.Error(), 500)
// return
// }
// })
return httptest.NewServer(mux)
}

0 comments on commit e12e501

Please sign in to comment.