Skip to content

Commit

Permalink
Fixed missing registration of scenario endpoints
Browse files Browse the repository at this point in the history
Signed-off-by: SystemsPurge <[email protected]>
  • Loading branch information
SystemsPurge committed Oct 16, 2024
1 parent 5972c68 commit c4d632f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions routes/usergroup/usergroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ import (
"os"
"strconv"
"testing"
"time"

"git.rwth-aachen.de/acs/public/villas/web-backend-go/configuration"
"git.rwth-aachen.de/acs/public/villas/web-backend-go/database"
"git.rwth-aachen.de/acs/public/villas/web-backend-go/helper"
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario"
"git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user"
"github.com/gin-gonic/gin"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -95,7 +95,7 @@ func TestMain(m *testing.M) {

user.RegisterAuthenticate(api.Group("/authenticate"))
api.Use(user.Authentication())

scenario.RegisterScenarioEndpoints(api.Group("/scenarios"))
// user endpoints required to set user to inactive
user.RegisterUserEndpoints(api.Group("/users"))
RegisterUserGroupEndpoints(api.Group("/usergroups"))
Expand Down Expand Up @@ -218,7 +218,6 @@ func TestDeleteUserFromGroup(t *testing.T) {
assert.Equal(t, 200, code)
assert.NoError(t, err)
}
time.Sleep(time.Second)
//Delete one
helper.TestEndpoint(router, token, "/api/v2/usergroups/1/user?username=usr1", "DELETE", struct{}{})
//get scenarios
Expand Down

0 comments on commit c4d632f

Please sign in to comment.