chore: add server test

This commit is contained in:
Steven
2023-08-10 20:57:43 +08:00
parent 1194099667
commit df51720310
7 changed files with 461 additions and 5 deletions

View File

@ -111,6 +111,10 @@ func (s *Server) Shutdown(ctx context.Context) {
fmt.Printf("server stopped properly\n")
}
func (s *Server) GetEcho() *echo.Echo {
return s.e
}
func (s *Server) getSystemSecretSessionName(ctx context.Context) (string, error) {
secretSessionNameValue, err := s.Store.GetWorkspaceSetting(ctx, &store.FindWorkspaceSetting{
Key: store.WorkspaceDisallowSignUp,