Poseidon: Use relative path to remove workspace directory

See #1088
This commit is contained in:
Sebastian Serth
2022-06-10 18:13:11 +02:00
parent ee8e76af07
commit 8e403ff65a
2 changed files with 2 additions and 3 deletions

View File

@ -328,7 +328,7 @@ describe Runner::Strategy::Poseidon do
WebMock
.stub_request(:patch, "#{described_class.config[:url]}/runners/#{runner_id}/files")
.with(
body: {copy: [{path: file.filepath, content: encoded_file_content}], delete: ['/workspace']},
body: {copy: [{path: file.filepath, content: encoded_file_content}], delete: ['./*']},
headers: {'Content-Type' => 'application/json'}
)
.to_return(body: response_body, status: response_status)