Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,12 @@ namespace :spec do
end

# Datadog AppSec integration specs (syntetic rails application)
# Every file runs in a separate process to avoid leakage of Rails state.
desc '' # "Explicitly hiding from `rake -T`"
RSpec::Core::RakeTask.new(:integration) do |t, args|
t.pattern = 'spec/datadog/appsec/integration/**/*_spec.rb'
t.rspec_opts = args.to_a.join(' ')
task :integration do
Dir['spec/datadog/appsec/integration/**/*_spec.rb'].shuffle.each do |file|
sh "bundle exec rspec #{file}"
end
end

# Datadog AppSec integrations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

require 'datadog/tracing'
require 'datadog/appsec'
require 'datadog/kit/appsec/events'

RSpec.describe 'Rack-request headers collection for identity.set_user' do
include Rack::Test::Methods
Expand Down