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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7f62295171cc9a912a49460749717952f75d20ee
4
- data.tar.gz: bc6dd1dfcc1abc018b854b6b7f18922e2dc7b171
3
+ metadata.gz: 8abfa3c4a71a45a7f7be6ef19b3ac17de10812ad
4
+ data.tar.gz: 952c49ece71ff1f1fa96cdaa652c3f52fbc8c393
5
5
  SHA512:
6
- metadata.gz: 48b2873ee19bc7daa499f72c9611ccff55a83877607e14f8e8dd43940ffea65a0b7bb263fb8b26a2739db6abf965476f42eeb408b00d270a78beb2e5ec0f5b10
7
- data.tar.gz: 7acc3816ac27414d8d26fcedceb8cdecec1a20489120e2699db09adbf5ca81b7aee7b182d81d143bcd553232ae0cebcf75e9329369e11d935fe699bf16c413fe
6
+ metadata.gz: 46c82f0a53287b96e638eb1d57ff914c8e28c0a5a40cbdf0a2f01f773130dfc54bd142e73f0f6ffdab134cd874ab413d6d919c8e5cd659024bb2c655045b711f
7
+ data.tar.gz: ca21e14b396d519e58d771ebc6ebc82ab1fb5f11b28d0332a408f4976c0d99b0867810893b9df034115b34b63e33d5265d58cc6304c0e4ab366d6bb5dc97f3ad
@@ -24,33 +24,29 @@ namespace :ci do
24
24
 
25
25
  task before_script: ['ci:common:before_script']
26
26
 
27
- task :script, [:mocked] => ['ci:common:script'] do |_, attr|
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, mocked)
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, :mocked do |_, attr|
45
- mocked = attr[:mocked] || false
43
+ task :execute do
46
44
  exception = nil
47
45
  begin
48
- if not mocked
49
- %w(before_install install before_script).each do |u|
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(mocked)
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
@@ -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', mock=False) # set mock to True if appropriate
19
+ @attr(requires='skeleton')
20
20
  class TestSkeleton(AgentCheckTest):
21
21
  """Basic Test for skeleton integration."""
22
22
  CHECK_NAME = 'skeleton'
@@ -242,18 +242,16 @@ namespace :ci do
242
242
  t.reenable
243
243
  end
244
244
 
245
- task :run_tests, [:flavor, :mocked] do |t, attr|
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} and #{mock_filter}"
252
+ "(not requires) and #{filter}"
255
253
  else
256
- "(requires in ['#{flavors.join("','")}']) and #{filter} and #{mock_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, :mocked] do |_, args|
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(mocked)
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.5
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-03 00:00:00.000000000 Z
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