history_test

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertChangeSetHasAliasForResourcePath

func AssertChangeSetHasAliasForResourcePath(t testing.TB, cs *history.ChangeSet, resourcePath resourcepath.ResourcePath, aliasTarget resourcepath.ResourcePath)

AssertChangeSetHasAliasForResourcePath asserts that the ChangeSet contains the expected alias for the given resource path.

func AssertChangeSetHasCountOfRevisionsForResourcePath

func AssertChangeSetHasCountOfRevisionsForResourcePath(t testing.TB, cs *history.ChangeSet, resourcePath resourcepath.ResourcePath, count int)

AssertChangeSetHasCountOfRevisionsForResourcePath asserts that the ChangeSet contains the expected number of revisions for the given resource path.

func AssertChangeSetHasEventForResourcePath

func AssertChangeSetHasEventForResourcePath(t testing.TB, cs *history.ChangeSet, resourcePath resourcepath.ResourcePath)

AssertChangeSetHasEventForResourcePath asserts that the ChangeSet contains an event for the given resource path.

func AssertChangeSetHasLogSeverity

func AssertChangeSetHasLogSeverity(t testing.TB, cs *history.ChangeSet, wantSeverity enum.Severity)

AssertChangeSetHasLogSeverity asserts that the ChangeSet's LogSeverity matches the expected value.

func AssertChangeSetHasLogSummary

func AssertChangeSetHasLogSummary(t testing.TB, cs *history.ChangeSet, wantSummary string)

AssertChangeSetHasLogSummary asserts that the ChangeSet's LogSummary matches the expected value.

func AssertChangeSetHasRevisionForResourcePath

func AssertChangeSetHasRevisionForResourcePath(t testing.TB, cs *history.ChangeSet, resourcePath resourcepath.ResourcePath, revision *history.StagingResourceRevision, opts ...cmp.Option)

AssertChangeSetHasRevisionForResourcePath asserts that the ChangeSet contains the expected revision for the given resource path.

func AssertChangeSetHasRevisionMatchingBodyGoldensForResourcePath

func AssertChangeSetHasRevisionMatchingBodyGoldensForResourcePath(t testing.TB, cs *history.ChangeSet, resourcePath resourcepath.ResourcePath, validationTargetName string)

AssertChangeSetHasRevisionMatchingBodyGoldensForResourcePath asserts that the ChangeSet contains revisions whose bodies match the golden file for the given resource path. The `validationTargetName` is used as the suffix of golden file name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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