infrastructure

package
v1.59.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeSemanticallyEqualTo

func BeSemanticallyEqualTo(expected interface{}) types.GomegaMatcher

BeSemanticallyEqualTo returns a matcher that tests if actual is semantically equal to the given value from the aws sdk. This is useful for checking equalities on values returned by the aws API more easily. For example: ec2types.IpPermission contains multiple arrays which might not be in the same order each time you retrieve the object from the AWS API. Therefore the returned matcher does not test for deep equality but rather uses the ConsistOf matcher for nested arrays. Another example is iam.Role which contains a field `AssumeRolePolicyDocument` which is urlencoded when returned by the AWS API. The return matcher therefore decodes the policy document before comparing it to expected via the MatchJSON matcher to make the test more readable.

func BeSemanticallyEqualToRolePolicyDocument

func BeSemanticallyEqualToRolePolicyDocument(expected interface{}) types.GomegaMatcher

BeSemanticallyEqualToRolePolicyDocument returns a matcher that checks if a role policy document is semantically equal to the given one.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL