# RSpec Code Examples

Passed Failed Pending

Auth::App

POST /auth/v1/login
  should generate and return the p4 ticket 0.02796s

Auth::Middleware
  should allow for valid ticket authentication 0.00656s
  should return a 403 for invalid ticket authentication 0.00673s

Config services

GET /config/v1/services
  will default to an empty list if the system config file is missing 0.01269s
  will return the contents of the SERVICE_CONFIGURATION config file 0.01600s

HelixSync changes

GET /helix_sync/v1/changes/:project_id/pending

HVE projects
  can fetch the latest change for the project 0.02202s

POST /helix_sync/v1/changes/:project_id

HVE projects
  can create a pending changelist for the project 0.03833s

GET /helix_sync/v1/changes/:project_id/pending

HVE projects
  can fetches the pending changelist for a project 0.02257s

POST /helix_sync/v1/changes/:project_id/pending

HVE projects
  can submit the pending changelist for a project with shelved files 0.07564s

HelixSync clients

POST /helix_sync/v1/clients

no implementation
  returns a 404 0.03184s

HVE projects
  can create a project 0.02484s

HelixVersioningEngine branches

POST /helix_versioning_engine/v78/branches
  can create a test branch 0.01289s

GET /helix_versioning_engine/v78/branches
  can find the new branch in an array of branches 0.01424s

PATCH /helix_versioning_engine/v78/branches/[branch]
  can update the branch description 0.01381s

GET /helix_versioning_engine/v78/branches/[branch]
  can load the new branch with a View 0.01381s

DELETE /helix_versioning_engine/v78/branches/[branch]
  can delete the branch 0.01926s

HelixVersioningEngine changes

GET /helix_versioning_engine/v78/changes
  should list change 1 0.01588s
  can limit the test results to 1 with the max parameter 0.00815s
  can limit the change results by user 0.01008s
  can limit the change results by status 0.01277s
  can limit the change results by a files query 0.01103s

POST /helix_versioning_engine/v78/changes
  can branch files 0.04720s
  can add files 0.03937s

GET /helix_versioning_engine/v78/changes/[change]
  can describe file lists in submitted changes 0.01831s

POST /helix_versioning_engine/v78/changes/[change]
  can submit a changelist with shelved changes on a normal client 0.06406s
  can submit a changelist with shelved changes on a normal client 0.06283s

HelixVersioningEngine clients

POST /helix_versioning_engine/v78/clients
  can create a test client 0.01547s

GET /helix_versioning_engine/v78/clients
  can find the new client in an array of clients 0.01189s

PATCH /helix_versioning_engine/v78/clients/[client]
  can update the client description 0.01308s

GET /helix_versioning_engine/v78/clients/[client]
  can load the new client with a View 0.01021s

DELETE /helix_versioning_engine/v78/clients/[client]
  can delete the client 0.02254s

HelixVersioningEngine commands

GET /helix_versioning_engine/v78/commands/:command
  should return a 403 for commands that are not whitelisted 0.01567s
  should return a 403 for commands that are missing required args 0.01156s
  should allow you to run a whitelisted command, specified via a string 0.01221s
  should allow you to run a whitelisted command if you specify a required argument via an array 0.01653s

POST /helix_versioning_engine/v78/commands/:command
  should return a 403 for commands that are not whitelisted 0.01061s

HelixVersioningEngine counters

PUT /helix_versioning_engine/v78/counters/[counter]
  can create a numerical counter 0.01651s
  can create a text counter 0.01333s

GET /helix_versioning_engine/v78/counters
  can include our test counters in the list 0.01456s

GET /helix_versioning_engine/v78/counters/[counter]
  can list our numerical counter 0.01149s
  can list the text counter 0.01087s

POST /helix_versioning_engine/v78/counters/[counter]/increment
  can increment the numerical counter 0.01529s

DELETE /helix_versioning_engine/v78/counters/[counter]
  can delete our test counters 0.03165s

HelixVersioningEngine depots

POST /helix_versioning_engine/v78/depots
  can create a new depot 0.01234s

GET /helix_versioning_engine/v78/depots
  returns the new depot in an array of depots 0.01124s

GET /helix_versioning_engine/v78/depots/[depot]
  can fetch the new depot 0.01119s

PATCH /helix_versioning_engine/v78/depots/[depot]
  can update the description 0.01381s

DELETE /helix_versioning_engine/v78/depots/[depot]
  can delete the depot 0.01368s

HelixVersioningEngine files

GET /helix_versioning_engine/v78/files
  can list depots at the root level 0.00852s
  can list dirs levels greater than 1 0.00822s
  can list files at levels greater than 1 0.00824s

PATCH /helix_versioning_engine/v78/files
  can edit and add a new file 0.03311s

DELETE /helix_versioning_engine/v78/files
  can delete a file 0.02304s

HelixVersioningEngine groups

POST /helix_versioning_engine/v78/groups
  can create a test group 0.00792s

GET /helix_versioning_engine/v78/groups
  can find the new group in an array of groups 0.00742s

PATCH /helix_versioning_engine/v78/groups/[group]
  can update the users list 0.00854s

GET /helix_versioning_engine/v78/groups/[group]
  can load the new group with a View 0.00790s

DELETE /helix_versioning_engine/v78/groups/[group]
  can delete the group 0.01319s

HelixVersioningEngine jobs

POST /helix_versioning_engine/v78/jobs
  can create a new job 0.00815s

GET /helix_versioning_engine/v78/jobs
  returns the new job in an array of jobs 0.00840s

GET /helix_versioning_engine/v78/jobs/[job]
  can fetch the new job 0.01048s

PATCH /helix_versioning_engine/v78/jobs/[job]
  can update the description 0.01512s

DELETE /helix_versioning_engine/v78/jobs/[job]
  can delete the job 0.01334s

HelixVersioningEngine labels

POST /helix_versioning_engine/v78/labels
  can create a test label 0.00900s

GET /helix_versioning_engine/v78/labels
  can find the new label in an array of labels 0.00814s

PATCH /helix_versioning_engine/v78/labels/[label]
  can update the users list 0.00858s

GET /helix_versioning_engine/v78/labels/[label]
  can load the new label with a View 0.00816s

DELETE /helix_versioning_engine/v78/labels/[label]
  can delete the label 0.01478s

HelixVersioningEngine login

POST /helix_versioning_engine/v78/login
  can create ... the same ticket 0.00912s

HelixVersioningEngine protections

GET /helix_versioning_engine/v78/protections
  should return an array with at least two protections 0.00832s

PUT /helix_versioning_engine/v78/protections
  should add a protections entry for the user jdoe 0.02158s
  should remove the protections entry for user jdoe 0.02044s

HelixVersioningEngine servers

POST /helix_versioning_engine/v78/servers
  can create a test server 0.00819s

GET /helix_versioning_engine/v78/servers
  can find the new server in an array of servers 0.00820s

PATCH /helix_versioning_engine/v78/servers/[server]
  can update the users list 0.00874s

GET /helix_versioning_engine/v78/servers/[server]
  can load the new server with a View 0.00898s

DELETE /helix_versioning_engine/v78/servers/[server]
  can delete the server 0.01260s

HelixVersioningEngine streams

POST /helix_versioning_engine/v78/streams
  can create //stream-test/main-XRKGYUZS 0.00871s

GET /helix_versioning_engine/v78/streams
  should list //stream-test/main-XRKGYUZS in stream defs 0.00893s

GET /helix_versioning_engine/v78/streams/[stream]
  should fetch only main-XRKGYUZS 0.00783s

PATCH /helix_versioning_engine/v78/streams/[stream]
  should update the stream description 0.01489s

DELETE /helix_versioning_engine/v78/streams/[stream]
  should delete the stream 0.01383s

HelixVersioningEngine triggers
  should add a triggers entry 0.01911s
  should remove the triggers entry 0.01845s

HelixVersioningEngine users

GET /helix_versioning_engine/v78/users
  should list jdoe and super users 0.00760s

GET /helix_versioning_engine/v78/users/:user
  should return the user mmustermann 0.00751s

POST /helix_versioning_engine/v78/users
  should create a new user 0.01393s

PATCH /helix_versioning_engine/v78/users/:user
  should update a user email 0.01534s
  should return a 404 if you attempt to patch an invalid user 0.00813s

DELETE /helix_versioning_engine/v78/users/:user
  should delete the user 0.01284s

HelixWebServices
  should return a 500 status with a system error 0.01133s
  should return a 400 status with a user error 0.01131s

HWSStrings

#component_encode,#component_decode
  ensure a string doesn't have a forward slash 0.00017s
  ensure a string with a forward slash can be decoded back 0.00013s

ProjectService
  passes query parameters to an attach listing method 0.00744s
  can call back to an extension that returns the project details 0.00698s

Projects

GET /projects/v1

HVE Projects
  will list project ids with no details value 0.00745s
  will list project data with details enabled 0.00750s

GET /projects/v1/:id

HVE Projects
  will list project data for the indicated id 0.00686s