Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Add additional Runscope SCIM tests #3871

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function generate_lastname()
var lower_alphabets = "abcdefghijklmnopqrstuvwxyz";
var upper_alphabets = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var digits = "0123456789";

lastname += upper_alphabets.charAt(Math.floor(Math.random() * upper_alphabets.length));

for( var i=0; i < 8; i++ )
Expand All @@ -16,23 +16,27 @@ function generate_lastname()
return lastname;
}

function generate_firstname()
function generate_name()
{
var firstname = "Runscope";
var name = "Runscope";
var digits = "0123456789";
for( var j=0; j < 3; j++ )
firstname += digits.charAt(Math.floor(Math.random() * digits.length));
return firstname;
name += digits.charAt(Math.floor(Math.random() * digits.length));
return name;
}

var firstname = generate_firstname();
var firstname = generate_name();
var lastname = generate_lastname();
var email = firstname + lastname + "@atko.com";
var groupName = generate_name();

// Users
variables.set("randomGivenName", firstname);
variables.set("randomFamilyName", lastname);
variables.set("randomEmail", email);
variables.set("randomUsername", email);
variables.set("InvalidUserEmail", "[email protected]");
variables.set("UserIdThatDoesNotExist", "010101001010101011001010101011");
variables.set("randomUsernameCaps",email.toUpperCase());
variables.set("randomUsernameCaps",email.toUpperCase());
// Groups
variables.set("randomGroupName",groupName);
Loading