|
152 | 152 | }, |
153 | 153 | [{ fixture: 'frozen' }, { fixture: 'hot', env: 'BUNDLE_FROZEN=true' }] => { |
154 | 154 | [ |
155 | | - { engine: 'ruby', version: '1.8' }, |
156 | | - { engine: 'ruby', version: '1.9' }, |
157 | | - { engine: 'ruby', version: '2.0' }, |
158 | | - { engine: 'ruby', version: '2.1' }, |
159 | | - { engine: 'ruby', version: '2.2' }, |
160 | | - { engine: 'ruby', version: '2.3' }, |
161 | | - { engine: 'ruby', version: '2.4' }, |
162 | | - { engine: 'ruby', version: '2.5' }, |
163 | 155 | { engine: 'ruby', version: '2.6' }, |
164 | 156 | { engine: 'ruby', version: '2.7' }, |
165 | 157 | { engine: 'ruby', version: '3.0' }, |
|
168 | 160 | { engine: 'ruby', version: '3.3' }, |
169 | 161 | { engine: 'ruby', version: '3.4' }, |
170 | 162 | { engine: 'ruby', version: '3.5' }, |
171 | | - { engine: 'jruby', version: '9.2' }, |
172 | | - { engine: 'jruby', version: '9.3' }, |
173 | | - { engine: 'jruby', version: '9.4' }, |
174 | | - { engine: 'jruby', version: '10.0' }, |
175 | 163 | ] => [ |
176 | 164 | 'telemetry should include start', |
177 | | - 'injection should abort', |
178 | | - 'abort reason should include bundler.frozen', |
| 165 | + 'injection should proceed', |
| 166 | + 'injection should succeed', |
| 167 | + 'telemetry should include complete', |
| 168 | + 'abort reason should be empty', |
179 | 169 | 'telemetry start should not include result report', |
180 | 170 | 'telemetry conclusion should include result report', |
181 | | - 'reported result type should be abort', |
| 171 | + 'reported result type should be success', |
182 | 172 | ], |
183 | 173 | }, |
184 | 174 | { fixture: 'hot', env: 'BUNDLE_PATH=/bundle' } => { |
|
313 | 303 | 'reported result type should be success', |
314 | 304 | ], |
315 | 305 | }, |
| 306 | + { fixture: 'frozen', inject: true, injector: 'datadog', packaged: true } => { |
| 307 | + [ |
| 308 | + { engine: 'ruby', version: '2.6' }, |
| 309 | + { engine: 'ruby', version: '2.7' }, |
| 310 | + { engine: 'ruby', version: '3.0' }, |
| 311 | + { engine: 'ruby', version: '3.1' }, |
| 312 | + { engine: 'ruby', version: '3.2' }, |
| 313 | + { engine: 'ruby', version: '3.3' }, |
| 314 | + { engine: 'ruby', version: '3.4' }, |
| 315 | + { engine: 'ruby', version: '3.5' }, |
| 316 | + ] => [ |
| 317 | + 'telemetry should include complete', |
| 318 | + 'app gemfile should not include datadog', |
| 319 | + 'app lockfile should not include datadog', |
| 320 | + 'new gemfile should exist', |
| 321 | + 'new lockfile should exist', |
| 322 | + 'new gemfile should include datadog', |
| 323 | + 'new lockfile should include datadog', |
| 324 | + 'gem datadog should have require option', |
| 325 | + 'telemetry start should not include result report', |
| 326 | + 'telemetry conclusion should include result report', |
| 327 | + 'reported result type should be success', |
| 328 | + ], |
| 329 | + }, |
316 | 330 | { fixture: 'hot', inject: true, injector: 'datadog', packaged: true } => { |
317 | 331 | [ |
318 | 332 | { engine: 'ruby', version: '2.6' }, |
@@ -444,10 +458,6 @@ def example(desc, &block) |
444 | 458 | context.telemetry.any? { |e| e['points'].any? { |p| p['name'] == 'library_entrypoint.abort' && p['tags'].include?('reason:bundler.deployment') } } |
445 | 459 | end |
446 | 460 |
|
447 | | -example 'abort reason should include bundler.frozen' do |context| |
448 | | - context.telemetry.any? { |e| e['points'].any? { |p| p['name'] == 'library_entrypoint.abort' && p['tags'].include?('reason:bundler.frozen') } } |
449 | | -end |
450 | | - |
451 | 461 | example 'abort reason should include bundler.unbundled' do |context| |
452 | 462 | context.telemetry.any? { |e| e['points'].any? { |p| p['name'] == 'library_entrypoint.abort' && p['tags'].include?('reason:bundler.unbundled') } } |
453 | 463 | end |
|
0 commit comments