Skip to content

Commit

Permalink
fix capabilities test
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Nov 4, 2024
1 parent 8e4495b commit 07fefef
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions spec/datadog/core/remote/client/capabilities_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
capabilities
end

shared_examples 'matches tracing capabilities only' do
it 'matches tracing capabilities only' do
expect(capabilities.base64_capabilities).to eq('IABwAA==')
end
end

context 'AppSec component' do
context 'when disabled' do
let(:settings) do
Expand All @@ -34,9 +40,7 @@
end

describe '#base64_capabilities' do
it 'matches tracing capabilities only' do
expect(capabilities.base64_capabilities).to eq('IABwAA==')
end
include_examples 'matches tracing capabilities only'
end
end

Expand All @@ -52,9 +56,7 @@
end

describe '#base64_capabilities' do
it 'matches tracing capabilities only' do
expect(capabilities.base64_capabilities).to eq('IABwAA==')
end
include_examples 'matches tracing capabilities only'
end
end

Expand Down Expand Up @@ -101,9 +103,7 @@
end

describe '#base64_capabilities' do
it 'matches tracing capabilities only' do
expect(capabilities.base64_capabilities).to eq('IAAAAA==')
end
include_examples 'matches tracing capabilities only'
end
end

Expand All @@ -118,9 +118,7 @@
end

describe '#base64_capabilities' do
it 'matches tracing capabilities only' do
expect(capabilities.base64_capabilities).to eq('IAAAAA==')
end
include_examples 'matches tracing capabilities only'
end
end

Expand All @@ -141,9 +139,8 @@
end

describe '#base64_capabilities' do
it 'returns binary capabilities' do
expect(capabilities.base64_capabilities).to_not be_empty
end
# DI does not contain any additional capabilities at this time
include_examples 'matches tracing capabilities only'
end
end
end
Expand Down

0 comments on commit 07fefef

Please sign in to comment.