[CI] Fixing the CI by pinning some dependencies
Pin some dependencies and exclude Agent 5 tests on centos-7.7
MODIFY
kitchen.docker.yml
kitchen.docker.yml
@@ -71,4 +71,8 @@ suites:
- ubuntu-14.04
- debian-8.11
<% end %>
+ <% if %w(5).include?(agent_major_version) %>
+ excludes:
+ - centos-7.7
+ <% end %>
<% end %>

ADD
test/integration/dd-agent-handler5/serverspec/Gemfile
+source 'https://rubygems.org'
+
+chef_version = ENV.fetch('CHEF_VERSION', '14.10.9')
+
+if RUBY_VERSION < '2.6'
+ gem 'net-ssh', '~> 6.1.0'
+ gem 'public_suffix', '~> 4.0.0'
+end
+
+gem 'json_spec', '~> 1.1.0'
+
+if Gem::Version.new(chef_version) > Gem::Version.new('16.0.0') && RUBY_VERSION < '2.7'
+ gem 'train-core', '~> 3.9.0'
+end

ADD
test/integration/dd-agent-handler6/serverspec/Gemfile
+source 'https://rubygems.org'
+
+chef_version = ENV.fetch('CHEF_VERSION', '14.10.9')
+
+if RUBY_VERSION < '2.6'
+ gem 'net-ssh', '~> 6.1.0'
+ gem 'public_suffix', '~> 4.0.0'
+end
+
+gem 'json_spec', '~> 1.1.0'
+
+if Gem::Version.new(chef_version) > Gem::Version.new('16.0.0') && RUBY_VERSION < '2.7'
+ gem 'train-core', '~> 3.9.0'
+end

ADD
test/integration/dd-agent-handler7/serverspec/Gemfile
+source 'https://rubygems.org'
+
+chef_version = ENV.fetch('CHEF_VERSION', '14.10.9')
+
+if RUBY_VERSION < '2.6'
+ gem 'net-ssh', '~> 6.1.0'
+ gem 'public_suffix', '~> 4.0.0'
+end
+
+gem 'json_spec', '~> 1.1.0'
+
+if Gem::Version.new(chef_version) > Gem::Version.new('16.0.0') && RUBY_VERSION < '2.7'
+ gem 'train-core', '~> 3.9.0'
+end

[CI] Fixing the CI by pinning some dependencies (#866)

Pin some dependencies and exclude Agent 5 tests on centos-7.7