diff options
Diffstat (limited to 'spec/requests/api/runners_spec.rb')
-rw-r--r-- | spec/requests/api/runners_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/requests/api/runners_spec.rb b/spec/requests/api/runners_spec.rb index 261e54da6a8..67c258260bf 100644 --- a/spec/requests/api/runners_spec.rb +++ b/spec/requests/api/runners_spec.rb @@ -326,32 +326,6 @@ describe API::Runners do expect(response).to have_gitlab_http_status(:unauthorized) end end - - context 'FF hide_token_from_runners_api is enabled' do - before do - stub_feature_flags(hide_token_from_runners_api: true) - end - - it "does not return runner's token" do - get api("/runners/#{shared_runner.id}", admin) - - expect(response).to have_gitlab_http_status(:ok) - expect(json_response).not_to have_key('token') - end - end - - context 'FF hide_token_from_runners_api is disabled' do - before do - stub_feature_flags(hide_token_from_runners_api: false) - end - - it "returns runner's token" do - get api("/runners/#{shared_runner.id}", admin) - - expect(response).to have_gitlab_http_status(:ok) - expect(json_response).to have_key('token') - end - end end describe 'PUT /runners/:id' do |