Sha256: c563eb5d584fcd11a0da61f265a6eed21a3950c90062635696b98c5008696792

Contents?: true

Size: 1.47 KB

Versions: 16

Compression:

Stored size: 1.47 KB

Contents

module HybridPlatformsConductor

  module CommonConfigDsl

    # Config DSL configuring idempotence testing (used by different test plugins)
    module IdempotenceTests

      # List of ignored tasks info. Each info has the following properties:
      # * *nodes_selectors_stack* (Array<Object>): Stack of nodes selectors impacted by this rule
      # * *ignored_tasks* (Hash<String, String>): List of task names for which we ignore idempotence errors, with the corresponding descriptive reason for ignore.
      # Array< Hash<Symbol, Object> >
      attr_reader :ignored_idempotence_tasks

      # Initialize the DSL 
      def init_idempotence_tests
        # List of ignored tasks info. Each info has the following properties:
        # * *nodes_selectors_stack* (Array<Object>): Stack of nodes selectors impacted by this rule
        # * *ignored_tasks* (Hash<String, String>): List of task names for which we ignore idempotence errors, with the corresponding descriptive reason for ignore.
        # Array< Hash<Symbol, Object> >
        @ignored_idempotence_tasks = []
      end

      # Ignore idempotence errors on a set of tasks
      #
      # Parameters::
      # * *tasks_to_ignore* (Hash<String, String>): Set of tasks to ignore, along with the reason
      def ignore_idempotence_tasks(tasks_to_ignore)
        @ignored_idempotence_tasks << {
          ignored_tasks: tasks_to_ignore,
          nodes_selectors_stack: current_nodes_selectors_stack,
        }
      end

    end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hybrid_platforms_conductor-32.10.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.9.1 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.9.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.8.2 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.8.1 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.8.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.7.3 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.7.2 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.7.1 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.7.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.6.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.5.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.4.2 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.4.1 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.4.0 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb
hybrid_platforms_conductor-32.3.6 lib/hybrid_platforms_conductor/common_config_dsl/idempotence_tests.rb