Skip to content

Adds the "deleteJob" call implementation for SauceLabs REST API #62

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

Merged
merged 1 commit into from
Mar 23, 2015
Merged
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
14 changes: 13 additions & 1 deletion lib/WebDriver/SauceLabs/SauceRest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct($userId, $accessKey)
* @param string $requestMethod HTTP request method
* @param string $url URL
* @param mixed $parameters Parameters
*
*
* @return mixed
*
* @see http://saucelabs.com/docs/saucerest
Expand Down Expand Up @@ -226,6 +226,18 @@ public function stopJob($jobId)
return $this->execute('PUT', $this->userId . '/jobs/' . $jobId . '/stop');
}

/**
* Delete job: /rest/v1/:userId/jobs/:jobId (DELETE)
*
* @param string $jobId
*
* @return array
*/
public function deleteJob($jobId)
{
return $this->execute('DELETE', $this->userId . '/jobs/' . $jobId);
}

/**
* Get running tunnels for a given user: /rest/v1/:userId/tunnels (GET)
*
Expand Down