Skip to content

Commit

Permalink
further change
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Nov 15, 2024
1 parent b9de027 commit f86749c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions management/self_service_profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"net/http"
"strings"
"net/url"
"testing"
"time"

Expand Down Expand Up @@ -144,11 +144,13 @@ func TestSelfServiceProfileManager_CreateAndRevokeTicket(t *testing.T) {
assert.NotEmpty(t, ticket.GetTicket())

ticketURL := ticket.GetTicket()
ticketURLSliced := strings.Split(ticketURL, "=")
ticketID := ticketURLSliced[len(ticketURLSliced)-1]

err = api.SelfServiceProfile.RevokeTicket(context.Background(), ssop.GetID(), ticketID)
ticketIDMap, err := url.ParseQuery(ticketURL)
if err != nil {
ticketID := ticketIDMap["ticketId"][0]
err = api.SelfServiceProfile.RevokeTicket(context.Background(), ssop.GetID(), ticketID)
}
assert.NoError(t, err)

}

Check failure on line 154 in management/self_service_profiles_test.go

View workflow job for this annotation

GitHub Actions / Checks

unnecessary trailing newline (whitespace)

func TestSelfServiceProfileManager_MarshalJSON(t *testing.T) {
Expand Down

0 comments on commit f86749c

Please sign in to comment.