As a toolforge user, I can use the toolforge build cancel {id} feature in order to cancel the build.
== How do we know it's done?
Feature: I want to cancel the build using the toolforge build cancel feature.
Background:
Given I'm logged in as a tool (after ssh login.toolforge.org + become mytool)
Scenario: Cancel a given running build - **DONE**
Given that the given build is running
When running the command toolforge build cancel {id}
Then the build gets canceled
{F36895760}
Scenario: Cancel a given not started build
Given that the given build is in "not started" status
When running the command toolforge build cancel {id}
Then the build gets canceled
Scenario: Cancel a given finished build - NOT WORKING YET
Given that the given build is finished
When running the command toolforge build cancel {id}
Then a message is shown saying that the build is not running
{F36896411}
Scenario: Cancel a non-existent build id - **DONE**
Given that the given build does not exist
When running the command toolforge build cancel {id}
Then a message is shown saying that the build does not exist
{F36896413}
Scenario: See the “cancel” status -- **DONE**
Given that a build is canceled
When running the command build show {id}
Then the status shown is "canceled"
{F36895763}
Scenario: See the “cancel” status of the latest build - NOT WORKING YET
Given that a build is canceled
And it's the latest build
When running the command build show
Then the status shown is "canceled"
Scenario: Service is down - NOT WORKING YET
When I run the command toolforge build cancel {id} and the service is down
Then I see an error message telling me the service is down
And the message gives me actionable feedback
{F36896415}
====This epic contains the following tasks:
//This is a tracking task, so it will be closed once the tasks mentioned below are completed.//
[] {T324823}
[x] {T324828}