Class IntegTestCase
(experimental) An integration test case. Allows the definition of test properties that apply to all stacks under this case.
Inherited Members
Namespace: Amazon.CDK.IntegTests
Assembly: Amazon.CDK.IntegTests.dll
Syntax (csharp)
public class IntegTestCase : Construct, IConstruct, IDependable
Syntax (vb)
Public Class IntegTestCase
Inherits Construct
Implements IConstruct, IDependable
Remarks
It is recommended that you use the IntegTest construct since that will create a default IntegTestCase
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CloudAssembly.Schema;
using Amazon.CDK;
using Amazon.CDK.IntegTests;
Stack stack;
var integTestCase = new IntegTestCase(this, "MyIntegTestCase", new IntegTestCaseProps {
Stacks = new [] { stack },
// the properties below are optional
AllowDestroy = new [] { "allowDestroy" },
CdkCommandOptions = new CdkCommands {
Deploy = new DeployCommand {
Args = new DeployOptions {
All = false,
App = "app",
AssetMetadata = false,
CaBundlePath = "caBundlePath",
ChangeSetName = "changeSetName",
Ci = false,
Color = false,
Context = new Dictionary<string, string> {
{ "contextKey", "context" }
},
Debug = false,
Ec2Creds = false,
Exclusively = false,
Execute = false,
Force = false,
IgnoreErrors = false,
Json = false,
Lookups = false,
Notices = false,
NotificationArns = new [] { "notificationArns" },
Output = "output",
OutputsFile = "outputsFile",
Parameters = new Dictionary<string, string> {
{ "parametersKey", "parameters" }
},
PathMetadata = false,
Profile = "profile",
Proxy = "proxy",
RequireApproval = RequireApproval.NEVER,
ReuseAssets = new [] { "reuseAssets" },
RoleArn = "roleArn",
Rollback = false,
Stacks = new [] { "stacks" },
Staging = false,
Strict = false,
ToolkitStackName = "toolkitStackName",
Trace = false,
UsePreviousParameters = false,
Verbose = false,
VersionReporting = false
},
Enabled = false,
ExpectedMessage = "expectedMessage",
ExpectError = false
},
Destroy = new DestroyCommand {
Args = new DestroyOptions {
All = false,
App = "app",
AssetMetadata = false,
CaBundlePath = "caBundlePath",
Color = false,
Context = new Dictionary<string, string> {
{ "contextKey", "context" }
},
Debug = false,
Ec2Creds = false,
Exclusively = false,
Force = false,
IgnoreErrors = false,
Json = false,
Lookups = false,
Notices = false,
Output = "output",
PathMetadata = false,
Profile = "profile",
Proxy = "proxy",
RoleArn = "roleArn",
Stacks = new [] { "stacks" },
Staging = false,
Strict = false,
Trace = false,
Verbose = false,
VersionReporting = false
},
Enabled = false,
ExpectedMessage = "expectedMessage",
ExpectError = false
}
},
DiffAssets = false,
Hooks = new Hooks {
PostDeploy = new [] { "postDeploy" },
PostDestroy = new [] { "postDestroy" },
PreDeploy = new [] { "preDeploy" },
PreDestroy = new [] { "preDestroy" }
},
Regions = new [] { "regions" },
StackUpdateWorkflow = false
});
Synopsis
Constructors
IntegTestCase(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
IntegTestCase(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
IntegTestCase(Construct, String, IIntegTestCaseProps) |
Properties
Assertions | (experimental) Make assertions on resources in this test case. |
Manifest | (experimental) The integration test manifest for this test case. |
Constructors
IntegTestCase(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected IntegTestCase(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
IntegTestCase(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected IntegTestCase(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
IntegTestCase(Construct, String, IIntegTestCaseProps)
public IntegTestCase(Construct scope, string id, IIntegTestCaseProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IIntegTestCaseProps
Remarks
Stability: Experimental
Properties
Assertions
(experimental) Make assertions on resources in this test case.
public virtual IDeployAssert Assertions { get; }
Property Value
Remarks
Stability: Experimental
Manifest
(experimental) The integration test manifest for this test case.
public virtual IIntegManifest Manifest { get; }
Property Value
Remarks
Manifests are used by the integration test runner.
Stability: Experimental