Skip to content

Commit

Permalink
Gin context testing
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam committed Jan 26, 2024
1 parent 436a60d commit 4e5e5ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/handlers/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ func MakeCreateHandler(cfg *types.Config, back types.ServerlessBackend) gin.Hand
c.String(http.StatusInternalServerError, fmt.Sprintln("Missing EGI user uid"))
}

mc, mcParsed := mcUntyped.(*auth.MultitenancyConfig)
mc, mcParsed := mcUntyped.(auth.MultitenancyConfig)
uid, uidParsed := uidOrigin.(string)

if !mcParsed {
c.String(http.StatusInternalServerError, fmt.Sprintf("Error parsing multitenancy config: %v", mcParsed))
}

createLogger.Println("Multitenancy config: ", &mc)
createLogger.Println("Multitenancy config: ", mc)

if !uidParsed {
c.String(http.StatusInternalServerError, fmt.Sprintf("Error parsing uid origin: %v", uidParsed))
Expand Down

0 comments on commit 4e5e5ed

Please sign in to comment.