Tests: Add RefID to session fixtures
This commit is contained in:
parent
ca40954796
commit
5ba00e74e5
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,7 @@ func (m SessionMap) Pointer(name string) *Session {
|
||||||
var SessionFixtures = SessionMap{
|
var SessionFixtures = SessionMap{
|
||||||
"alice": {
|
"alice": {
|
||||||
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac0",
|
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac0",
|
||||||
|
RefID: "sessxkkcabcd",
|
||||||
SessTimeout: UnixDay * 3,
|
SessTimeout: UnixDay * 3,
|
||||||
SessExpires: UnixTime() + UnixWeek,
|
SessExpires: UnixTime() + UnixWeek,
|
||||||
user: UserFixtures.Pointer("alice"),
|
user: UserFixtures.Pointer("alice"),
|
||||||
|
@ -29,6 +30,7 @@ var SessionFixtures = SessionMap{
|
||||||
},
|
},
|
||||||
"bob": {
|
"bob": {
|
||||||
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac1",
|
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac1",
|
||||||
|
RefID: "sessxkkcabce",
|
||||||
SessTimeout: UnixDay * 3,
|
SessTimeout: UnixDay * 3,
|
||||||
SessExpires: UnixTime() + UnixWeek,
|
SessExpires: UnixTime() + UnixWeek,
|
||||||
user: UserFixtures.Pointer("bob"),
|
user: UserFixtures.Pointer("bob"),
|
||||||
|
@ -37,6 +39,7 @@ var SessionFixtures = SessionMap{
|
||||||
},
|
},
|
||||||
"unauthorized": {
|
"unauthorized": {
|
||||||
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac2",
|
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac2",
|
||||||
|
RefID: "sessxkkcabcf",
|
||||||
SessTimeout: UnixDay * 3,
|
SessTimeout: UnixDay * 3,
|
||||||
SessExpires: UnixTime() + UnixWeek,
|
SessExpires: UnixTime() + UnixWeek,
|
||||||
user: UserFixtures.Pointer("unauthorized"),
|
user: UserFixtures.Pointer("unauthorized"),
|
||||||
|
@ -45,6 +48,7 @@ var SessionFixtures = SessionMap{
|
||||||
},
|
},
|
||||||
"visitor": {
|
"visitor": {
|
||||||
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac3",
|
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac3",
|
||||||
|
RefID: "sessxkkcabcg",
|
||||||
SessTimeout: UnixDay * 3,
|
SessTimeout: UnixDay * 3,
|
||||||
SessExpires: UnixTime() + UnixWeek,
|
SessExpires: UnixTime() + UnixWeek,
|
||||||
user: &Visitor,
|
user: &Visitor,
|
||||||
|
@ -58,6 +62,7 @@ var SessionFixtures = SessionMap{
|
||||||
},
|
},
|
||||||
"friend": {
|
"friend": {
|
||||||
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac4",
|
ID: "69be27ac5ca305b394046a83f6fda18167ca3d3f2dbe7ac4",
|
||||||
|
RefID: "sessxkkcabch",
|
||||||
SessTimeout: UnixDay * 3,
|
SessTimeout: UnixDay * 3,
|
||||||
SessExpires: UnixTime() + UnixWeek,
|
SessExpires: UnixTime() + UnixWeek,
|
||||||
user: UserFixtures.Pointer("friend"),
|
user: UserFixtures.Pointer("friend"),
|
||||||
|
|
Loading…
Reference in a new issue