RSpec Code Examples

 

 

Auth::Middleware
should allow for valid ticket authentication (PENDING: this will fail in cloud test mode)
should return a 403 for invalid ticket authentication0.00621s
Config services
GET /config/v1/services
will default to an empty list if the system config file is missing0.08293s
will return the contents of the SERVICE_CONFIGURATION config file0.02335s
HelixSync changes
GET /helix-sync/v1/:project_id/last-change
HVE projects
can fetch the latest change for the project0.07573s
GET /helix-sync/v1/:project_id/pending
default value
returns the default value if no change found0.03413s
POST /helix-sync/v1/:project_id/submit
locked client
times out and fails if the client is already locked0.04135s
HelixSync clients
POST /helix-sync/v1/:project/clients/device
no implementation
returns a 404 (PENDING: cloud does not need the HVE... setting)
HVE projects
can create a project0.04676s
POST /helix-sync/v1/:project/clients/shelf
no implementation
returns a 404 (PENDING: cloud does not need the HVE... setting)
HVE projects
can create a project0.04985s
HelixVersioningEngine branches
POST /p4/v78/branches
can create a test branch0.03527s
GET /p4/v78/branches
can find the new branch in an array of branches0.02731s
PATCH /p4/v78/branches/[branch]
can update the branch description0.03320s
GET /p4/v78/branches/[branch]
can load the new branch with a View0.02711s
DELETE /p4/v78/branches/[branch]
can delete the branch0.03683s
HelixVersioningEngine changes
GET /p4/v78/changes
should list change 10.02661s
can limit the test results to 1 with the max parameter0.04885s
can limit the change results by user0.02289s
can limit the change results by status0.01702s
can limit the change results by a files query0.01892s
POST /p4/v78/changes
can branch files (PENDING: this code is really specific to classic depots, rewrite for cloud)
can add files0.04000s
GET /p4/v78/changes/[change]
can describe file lists in submitted changes0.01842s
POST /p4/v78/changes/[change]
can submit a changelist with shelved changes on a normal client0.04905s
can submit a changelist with shelved changes on a normal client0.04903s
HelixVersioningEngine clients
POST /p4/v78/clients
can create a test client0.01844s
GET /p4/v78/clients
can find the new client in an array of clients0.01896s
PATCH /p4/v78/clients/[client]
can update the client description0.02100s
GET /p4/v78/clients/[client]
can load the new client with a View0.01948s
DELETE /p4/v78/clients/[client]
can delete the client0.02696s
HelixVersioningEngine commands
GET /p4/v78/commands/:command
should return a 403 for commands that are not whitelisted0.01571s
should return a 403 for commands that are missing required args0.01574s
should allow you to run a whitelisted command, specified via a string0.01738s
should allow you to run a whitelisted command if you specify a required argument via an array0.02004s
POST /p4/v78/commands/:command
should return a 403 for commands that are not whitelisted0.01554s
HelixVersioningEngine counters
PUT /p4/v78/counters/[counter]
can create a numerical counter0.01702s
can create a text counter0.01685s
GET /p4/v78/counters
can include our test counters in the list0.01772s
GET /p4/v78/counters/[counter]
can list our numerical counter0.01682s
can list the text counter0.01739s
POST /p4/v78/counters/[counter]/increment
can increment the numerical counter0.02446s
DELETE /p4/v78/counters/[counter]
can delete our test counters0.03288s
HelixVersioningEngine depots
POST /p4/v78/depots
can create a new depot0.01722s
GET /p4/v78/depots
returns the new depot in an array of depots0.01669s
GET /p4/v78/depots/[depot]
can fetch the new depot0.01695s
PATCH /p4/v78/depots/[depot]
can update the description0.02610s
DELETE /p4/v78/depots/[depot]
can delete the depot0.02446s
HelixVersioningEngine files
GET /p4/v78/files
can list depots at the root level0.01615s
can list dirs levels greater than 10.01773s
can list files at levels greater than 10.01757s
PATCH /p4/v78/files
can edit and add a new file0.04754s
DELETE /p4/v78/files
can delete a file0.04088s
HelixVersioningEngine groups
POST /p4/v78/groups
can create a test group0.01789s
GET /p4/v78/groups
can find the new group in an array of groups0.01651s
PATCH /p4/v78/groups/[group]
can update the users list0.02039s
GET /p4/v78/groups/[group]
can load the new group with a View0.01743s
DELETE /p4/v78/groups/[group]
can delete the group0.02664s
HelixVersioningEngine jobs
POST /p4/v78/jobs
can create a new job0.01916s
GET /p4/v78/jobs
returns the new job in an array of jobs0.01895s
GET /p4/v78/jobs/[job]
can fetch the new job0.01837s
PATCH /p4/v78/jobs/[job]
can update the description0.02647s
DELETE /p4/v78/jobs/[job]
can delete the job0.02647s
HelixVersioningEngine labels
POST /p4/v78/labels
can create a test label0.01828s
GET /p4/v78/labels
can find the new label in an array of labels0.01701s
PATCH /p4/v78/labels/[label]
can update the users list0.01928s
GET /p4/v78/labels/[label]
can load the new label with a View0.01804s
DELETE /p4/v78/labels/[label]
can delete the label0.02673s
HelixVersioningEngine login
POST /p4/v78/login
can create ... the same ticket0.01347s
HelixVersioningEngine protections
GET /p4/v78/protections
should return an array with at least two protections0.01819s
PUT /p4/v78/protections
should add a protections entry for the user jdoe0.03494s
should remove the protections entry for user jdoe0.03314s
HelixVersioningEngine servers
POST /p4/v78/servers
can create a test server0.01793s
GET /p4/v78/servers
can find the new server in an array of servers0.01693s
PATCH /p4/v78/servers/[server]
can update the users list0.01717s
GET /p4/v78/servers/[server]
can load the new server with a View0.01712s
DELETE /p4/v78/servers/[server]
can delete the server0.02474s
HelixVersioningEngine streams
POST /p4/v78/streams
can create //stream-test/main-WMVWRZKR0.01841s
GET /p4/v78/streams
should list //stream-test/main-WMVWRZKR in stream defs0.01800s
GET /p4/v78/streams/[stream]
should fetch only main-WMVWRZKR0.01756s
PATCH /p4/v78/streams/[stream]
should update the stream description0.02624s
DELETE /p4/v78/streams/[stream]
should delete the stream0.02670s
HelixVersioningEngine triggers
should add a triggers entry0.03822s
should remove the triggers entry0.03394s
HelixVersioningEngine users
GET /p4/v78/users
should list jdoe and super users0.01706s
GET /p4/v78/users/:user
should return the user mmustermann0.01755s
POST /p4/v78/users
should create a new user0.03163s
PATCH /p4/v78/users/:user
should update a user email0.02768s
should return a 404 if you attempt to patch an invalid user0.01735s
DELETE /p4/v78/users/:user
should delete the user0.03358s
HelixWebServices
should return a 500 status with a system error0.02048s
should return a 400 status with a user error0.02190s
should not allow "rsh:" in P4PORT (PENDING: rsh is not detected unless you hit a require_p4, so /status is not enough for cloud)
HWSStrings
#component_encode,#component_decode
ensure a string doesn't have a forward slash0.00018s
ensure a string with a forward slash can be decoded back0.00014s
GitFusionStrings
#encode,#decode
ensure a repo name doesn't have a forward slash0.00014s
ensure a repo name with a forward slash can be decoded back0.00012s
Projects
POST /projects/v1/login
should generate and return the p4 ticket0.00787s
GET /projects/v1
HVE Projects
will list project ids with no details value0.02082s
will list project data with details enabled0.02180s
GET /projects/v1/:id
HVE Projects
will list project data for the indicated id0.02232s