// Creates the collection using the admin token so we can set up
// a bogus manifest text without block signatures.
cy.createCollection(adminUser.token, {
- name: `Test collection ${Math.floor(Math.random() * Math.floor(999999))}`,
+ name: `Test collection ${Math.floor(Math.random() * 999999)}`,
owner_uuid: activeUser.user.uuid,
manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"})
.as('testCollection').then(function() {
// Creates the collection using the admin token so we can set up
// a bogus manifest text without block signatures.
cy.createCollection(adminUser.token, {
- name: `Test collection ${Math.floor(Math.random() * Math.floor(999999))}`,
+ name: `Test collection ${Math.floor(Math.random() * 999999)}`,
owner_uuid: activeUser.user.uuid,
manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n"})
.as('testCollection').then(function() {
inactiveUser = this.inactiveUser;
}
);
- randomUser.username = `randomuser${Math.floor(Math.random() * Math.floor(999999))}`;
+ randomUser.username = `randomuser${Math.floor(Math.random() * 999999)}`;
randomUser.password = {
crypt: 'zpAReoZzPnwmQ',
clear: 'topsecret',
cy.doRequest('PUT', `/arvados/v1/api_client_authorizations/${tokenUuid}`, {
id: tokenUuid,
api_client_authorization: JSON.stringify({
- api_token: `randomToken${Math.floor(Math.random() * Math.floor(999999))}`
+ api_token: `randomToken${Math.floor(Math.random() * 999999)}`
})
}, null, activeUser.token, true);
// Should log the user out.