diff --git a/session/sessionstate.go b/session/sessionstate.go index 18aa2f54..d0d165a4 100644 --- a/session/sessionstate.go +++ b/session/sessionstate.go @@ -22,7 +22,6 @@ import ( "github.com/qlik-oss/gopherciser/senseobjdef" "github.com/qlik-oss/gopherciser/senseobjects" "github.com/qlik-oss/gopherciser/statistics" - "github.com/qlik-oss/gopherciser/structs" "github.com/qlik-oss/gopherciser/synced" "github.com/qlik-oss/gopherciser/users" "github.com/qlik-oss/gopherciser/wsdialer" @@ -75,7 +74,6 @@ type ( User *users.User OutputsDir string CurrentApp *ArtifactEntry - CurrentUser *structs.User Counters *statistics.ExecutionCounters // CurrentActionState will contain the state of the latest action to be started CurrentActionState *action.State @@ -274,7 +272,6 @@ func (state *State) Reset(ctx context.Context) { state.RequestMetrics = &requestmetrics.RequestMetrics{} state.events = make(map[int]*Event) state.CurrentApp = nil - state.CurrentUser = nil state.objects = nil state.customStates = make(map[string]interface{}) } diff --git a/structs/user.go b/structs/user.go deleted file mode 100644 index 7ea3f941..00000000 --- a/structs/user.go +++ /dev/null @@ -1,24 +0,0 @@ -package structs - -import "time" - -type User struct { - ID string `json:"id"` - Name string `json:"name"` - Subject string `json:"subject"` - TenantID string `json:"tenantId"` - Created time.Time `json:"created"` - LastUpdated time.Time `json:"lastUpdated"` - JwtClaims struct { - UserID string `json:"userId"` - TenantID string `json:"tenantId"` - SubType string `json:"subType"` - Sub string `json:"sub"` - Groups []string `json:"groups"` - } `json:"jwtClaims"` - Links struct { - Self struct { - Href string `json:"href"` - } `json:"self"` - } `json:"links"` -}