infrastructure

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeNotFoundError

func BeNotFoundError() types.GomegaMatcher

BeNotFoundError matches errors returned by azure-sdk-for-go remote calls when an object could not be found (HTTP Status code = 404).

func HaveEqualID

func HaveEqualID(expected string) types.GomegaMatcher

HaveEqualID succeeds if Azure object has the expected ID. Azure objects are identified by an ID, which in azure-sdk-for-go is mapped to an `ID *string` field. HaveEqualID will succeed if actual is a struct or a pointer to a struct containing a field with this specification and points to a string equal to expected.

func IsNotFound added in v1.22.0

func IsNotFound(err error) bool

IsNotFound returns true if the given error is an azcore.ResponseError with status code http.StatusNotFound.

Types

This section is empty.

Jump to

Keyboard shortcuts

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