Create own test agent.
This commit is contained in:
parent
6d5a02fd80
commit
386012a4a6
1 changed files with 6 additions and 6 deletions
|
@ -12,10 +12,10 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
|
||||||
groups = Group.all
|
groups = Group.all
|
||||||
|
|
||||||
agent1 = User.create_or_update(
|
agent1 = User.create_or_update(
|
||||||
login: 'activity-stream-agent-1',
|
login: 'session-basic-ticket-agent-1',
|
||||||
firstname: 'Session',
|
firstname: 'Session',
|
||||||
lastname: 'activity stream ' + rand(99_999).to_s,
|
lastname: 'session basic ' + rand(99_999).to_s,
|
||||||
email: 'activity-stream-agent1@example.com',
|
email: 'session-basic-ticket-agent-1@example.com',
|
||||||
password: 'agentpw',
|
password: 'agentpw',
|
||||||
active: true,
|
active: true,
|
||||||
roles: roles,
|
roles: roles,
|
||||||
|
@ -58,10 +58,10 @@ class SessionBasicTicketTest < ActiveSupport::TestCase
|
||||||
groups = Group.all
|
groups = Group.all
|
||||||
|
|
||||||
agent1 = User.create_or_update(
|
agent1 = User.create_or_update(
|
||||||
login: 'activity-stream-agent-1',
|
login: 'session-basic-ticket-agent-1',
|
||||||
firstname: 'Session',
|
firstname: 'Session',
|
||||||
lastname: 'activity stream ' + rand(99_999).to_s,
|
lastname: 'session basic ' + rand(99_999).to_s,
|
||||||
email: 'activity-stream-agent1@example.com',
|
email: 'session-basic-ticket-agent-1@example.com',
|
||||||
password: 'agentpw',
|
password: 'agentpw',
|
||||||
active: true,
|
active: true,
|
||||||
roles: roles,
|
roles: roles,
|
||||||
|
|
Loading…
Reference in a new issue