datadog-sdk-testing 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/config/ci/skeleton.rake +7 -11
- data/lib/config/test_skeleton.py +1 -1
- data/lib/tasks/ci/common.rb +3 -5
- data/lib/tasks/sdk.rake +2 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8abfa3c4a71a45a7f7be6ef19b3ac17de10812ad
|
4
|
+
data.tar.gz: 952c49ece71ff1f1fa96cdaa652c3f52fbc8c393
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c82f0a53287b96e638eb1d57ff914c8e28c0a5a40cbdf0a2f01f773130dfc54bd142e73f0f6ffdab134cd874ab413d6d919c8e5cd659024bb2c655045b711f
|
7
|
+
data.tar.gz: ca21e14b396d519e58d771ebc6ebc82ab1fb5f11b28d0332a408f4976c0d99b0867810893b9df034115b34b63e33d5265d58cc6304c0e4ab366d6bb5dc97f3ad
|
data/lib/config/ci/skeleton.rake
CHANGED
@@ -24,33 +24,29 @@ namespace :ci do
|
|
24
24
|
|
25
25
|
task before_script: ['ci:common:before_script']
|
26
26
|
|
27
|
-
task
|
28
|
-
mocked = attr[:mocked] || false
|
27
|
+
task script: ['ci:common:script'] do |_, attr|
|
29
28
|
this_provides = [
|
30
29
|
'skeleton'
|
31
30
|
]
|
32
|
-
Rake::Task['ci:common:run_tests'].invoke(this_provides
|
31
|
+
Rake::Task['ci:common:run_tests'].invoke(this_provides)
|
33
32
|
end
|
34
33
|
|
35
34
|
task before_cache: ['ci:common:before_cache']
|
36
35
|
|
37
36
|
task cleanup: ['ci:common:cleanup']
|
38
37
|
# sample cleanup task
|
39
|
-
# task cleanup: ['ci:common:cleanup'] do
|
38
|
+
# task cleanup: ['ci:common:cleanup'] do
|
40
39
|
# sh %(docker stop skeleton)
|
41
40
|
# sh %(docker rm skeleton)
|
42
41
|
# end
|
43
42
|
|
44
|
-
task :execute
|
45
|
-
mocked = attr[:mocked] || false
|
43
|
+
task :execute do
|
46
44
|
exception = nil
|
47
45
|
begin
|
48
|
-
|
49
|
-
|
50
|
-
Rake::Task["#{flavor.scope.path}:#{u}"].invoke
|
51
|
-
end
|
46
|
+
%w(before_install install before_script).each do |u|
|
47
|
+
Rake::Task["#{flavor.scope.path}:#{u}"].invoke
|
52
48
|
end
|
53
|
-
Rake::Task["#{flavor.scope.path}:script"].invoke
|
49
|
+
Rake::Task["#{flavor.scope.path}:script"].invoke
|
54
50
|
Rake::Task["#{flavor.scope.path}:before_cache"].invoke
|
55
51
|
rescue => e
|
56
52
|
exception = e
|
data/lib/config/test_skeleton.py
CHANGED
@@ -16,7 +16,7 @@ instance = {
|
|
16
16
|
|
17
17
|
# NOTE: Feel free to declare multiple test classes if needed
|
18
18
|
|
19
|
-
@attr(requires='skeleton'
|
19
|
+
@attr(requires='skeleton')
|
20
20
|
class TestSkeleton(AgentCheckTest):
|
21
21
|
"""Basic Test for skeleton integration."""
|
22
22
|
CHECK_NAME = 'skeleton'
|
data/lib/tasks/ci/common.rb
CHANGED
@@ -242,18 +242,16 @@ namespace :ci do
|
|
242
242
|
t.reenable
|
243
243
|
end
|
244
244
|
|
245
|
-
task :run_tests, [:flavor
|
245
|
+
task :run_tests, [:flavor] do |t, attr|
|
246
246
|
flavors = attr[:flavor]
|
247
247
|
sdkhome = ENV['SDK_HOME'] || Dir.pwd
|
248
|
-
mocked = attr[:mocked] || false
|
249
248
|
filter = ENV['NOSE_FILTER'] || '1'
|
250
249
|
nose_command = in_venv ? 'venv/bin/nosetests' : 'nosetests'
|
251
250
|
|
252
|
-
mock_filter = mocked ? "mock" : "not mock"
|
253
251
|
nose = if flavors.include?('default')
|
254
|
-
"(not requires) and #{filter}
|
252
|
+
"(not requires) and #{filter}"
|
255
253
|
else
|
256
|
-
"(requires in ['#{flavors.join("','")}']) and #{filter}
|
254
|
+
"(requires in ['#{flavors.join("','")}']) and #{filter}"
|
257
255
|
end
|
258
256
|
|
259
257
|
tests_directory, = integration_tests(sdkhome)
|
data/lib/tasks/sdk.rake
CHANGED
@@ -97,22 +97,15 @@ end
|
|
97
97
|
|
98
98
|
namespace :ci do
|
99
99
|
desc 'Run integration tests'
|
100
|
-
task :run, [:flavor
|
100
|
+
task :run, [:flavor] do |_, args|
|
101
101
|
check_env
|
102
102
|
puts 'Assuming you are running these tests locally' unless ENV['TRAVIS']
|
103
103
|
flavor = args[:flavor] || ENV['TRAVIS_FLAVOR'] || 'default'
|
104
|
-
mocked = args[:mocked] || false
|
105
104
|
flavors = flavor.split(',')
|
106
105
|
flavors.each do |f|
|
107
|
-
Rake::Task["ci:#{f}:execute"].invoke
|
106
|
+
Rake::Task["ci:#{f}:execute"].invoke
|
108
107
|
end
|
109
108
|
end
|
110
|
-
|
111
|
-
desc 'Run mock tests'
|
112
|
-
task :run_mocks, [:flavor] do |_, args|
|
113
|
-
check_env
|
114
|
-
Rake::Task["ci:run"].invoke(args[:flavor], true)
|
115
|
-
end
|
116
109
|
end
|
117
110
|
|
118
111
|
task default: ['lint', 'ci:run']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datadog-sdk-testing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jaime Fullaondo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Datadog Integration SDK testing/scaffolding gem
|
14
14
|
email: jaime.fullaondo@datadoghq.com
|