Sha256: 53fd741c5f5800abb372a44952ca2b27a61fdb0ea033ca96c155923b20805e62
Contents?: true
Size: 1.31 KB
Versions: 67
Compression:
Stored size: 1.31 KB
Contents
require 'hybrid_platforms_conductor/test_by_service' module HybridPlatformsConductor module HpcPlugins module Test # Test that check-node returns no error on an empty image class CheckFromScratch < TestByService # Check my_test_plugin.rb.sample documentation for signature details. def test_for_node @deployer.with_test_provisioned_instance(@config.tests_provisioner_id, @node, environment: 'check_from_scratch', reuse_instance: log_debug?) do |deployer| deployer.use_why_run = true result = deployer.deploy_on(@node) assert_equal result.size, 1, "Wrong number of nodes being tested: #{result.size}" tested_node, (exit_status, _stdout, _stderr) = result.first if exit_status.is_a?(Symbol) # In debug mode, the logger is the normal one, already outputting the error. No need to get it back from the logs. error "Check-node could not run because of error: #{exit_status}.", log_debug? ? nil : deployer.stdouts_to_s else assert_equal tested_node, @node, "Wrong node being tested: #{tested_node} should be #{@node}" assert_equal exit_status, 0, "Check-node returned error code #{exit_status}" end end end end end end end
Version data entries
67 entries across 67 versions & 1 rubygems