infrastructure

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0, MIT Imports: 10 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: ec2.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

Types

This section is empty.

Jump to

Keyboard shortcuts

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