Vacuum Swagger (#3533)

This commit is contained in:
Daniel Valdivia
2025-05-09 16:41:27 -07:00
committed by GitHub
parent ee974a5961
commit e2bbf91e8a
138 changed files with 69 additions and 21974 deletions

View File

@@ -84,7 +84,7 @@ func initConsoleServer(consoleIDPURL string) (*api.Server, error) {
return server, nil
}
func TestMain(t *testing.T) {
func TestMainSSO(t *testing.T) {
assert := assert.New(t)
// start console server
@@ -139,6 +139,11 @@ func TestMain(t *testing.T) {
fmt.Printf("error JSON Unmarshal %s\n", err)
}
if len(jsonMap.RedirectRules) == 0 {
assert.Fail("redirect rules not found")
} else {
fmt.Println("redirect rules found")
}
redirectRule := jsonMap.RedirectRules[0]
redirectAsString := fmt.Sprint(redirectRule.Redirect)
fmt.Println(redirectAsString)