Class: AWSCDK::CloudAssemblySchema::IntegManifest

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_assembly_schema/integ_manifest.rb

Overview

Definitions for the integration testing manifest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_cases:, version:, enable_lookups: nil, synth_context: nil) ⇒ IntegManifest

Returns a new instance of IntegManifest.

Parameters:

  • test_cases (Hash{String => AWSCDK::CloudAssemblySchema::TestCase})

    test cases.

  • version (String)

    Version of the manifest.

  • enable_lookups (Boolean, nil) (defaults to: nil)

    Enable lookups for this test.

  • synth_context (Hash{String => String}, nil) (defaults to: nil)

    Additional context to use when performing a synth.



11
12
13
14
15
16
17
18
19
20
# File 'cloud_assembly_schema/integ_manifest.rb', line 11

def initialize(test_cases:, version:, enable_lookups: nil, synth_context: nil)
  @test_cases = test_cases.is_a?(Hash) ? test_cases.transform_values { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CloudAssemblySchema::TestCase.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : test_cases
  Jsii::Type.check_type(@test_cases, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmNsb3VkX2Fzc2VtYmx5X3NjaGVtYS5UZXN0Q2FzZSJ9LCJraW5kIjoibWFwIn19")), "testCases")
  @version = version
  Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version")
  @enable_lookups = enable_lookups
  Jsii::Type.check_type(@enable_lookups, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enableLookups") unless @enable_lookups.nil?
  @synth_context = synth_context
  Jsii::Type.check_type(@synth_context, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "synthContext") unless @synth_context.nil?
end

Instance Attribute Details

#enable_lookupsBoolean? (readonly)

Note:

Default: false

Enable lookups for this test.

If lookups are enabled then stack_update_workflow must be set to false. Lookups should only be enabled when you are explicitly testing lookups.

Returns:

  • (Boolean, nil)


39
40
41
# File 'cloud_assembly_schema/integ_manifest.rb', line 39

def enable_lookups
  @enable_lookups
end

#synth_contextHash{String => String}? (readonly)

Note:

Default: - no additional context

Additional context to use when performing a synth.

Any context provided here will override any default context

Returns:

  • (Hash{String => String}, nil)


47
48
49
# File 'cloud_assembly_schema/integ_manifest.rb', line 47

def synth_context
  @synth_context
end

#test_casesHash{String => AWSCDK::CloudAssemblySchema::TestCase} (readonly)

test cases.

Returns:



25
26
27
# File 'cloud_assembly_schema/integ_manifest.rb', line 25

def test_cases
  @test_cases
end

#versionString (readonly)

Version of the manifest.

Returns:

  • (String)


29
30
31
# File 'cloud_assembly_schema/integ_manifest.rb', line 29

def version
  @version
end

Class Method Details

.jsii_propertiesObject



49
50
51
52
53
54
55
56
# File 'cloud_assembly_schema/integ_manifest.rb', line 49

def self.jsii_properties
  {
    :test_cases => "testCases",
    :version => "version",
    :enable_lookups => "enableLookups",
    :synth_context => "synthContext",
  }
end

Instance Method Details

#to_jsiiObject



58
59
60
61
62
63
64
65
66
67
# File 'cloud_assembly_schema/integ_manifest.rb', line 58

def to_jsii
  result = {}
  result.merge!({
    "testCases" => @test_cases,
    "version" => @version,
    "enableLookups" => @enable_lookups,
    "synthContext" => @synth_context,
  })
  result.compact
end