objectassert

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationPolicyAssert added in v0.96.0

type AuthenticationPolicyAssert struct {
	*assert.SnowflakeObjectAssert[sdk.AuthenticationPolicy, sdk.SchemaObjectIdentifier]
}

func AuthenticationPolicy added in v0.96.0

func AuthenticationPolicy(t *testing.T, id sdk.SchemaObjectIdentifier) *AuthenticationPolicyAssert

func AuthenticationPolicyFromObject added in v0.96.0

func AuthenticationPolicyFromObject(t *testing.T, authenticationPolicy *sdk.AuthenticationPolicy) *AuthenticationPolicyAssert

func (*AuthenticationPolicyAssert) HasComment added in v0.96.0

func (*AuthenticationPolicyAssert) HasCreatedOn added in v0.96.0

func (*AuthenticationPolicyAssert) HasCreatedOnNotEmpty added in v0.96.0

func (a *AuthenticationPolicyAssert) HasCreatedOnNotEmpty() *AuthenticationPolicyAssert

func (*AuthenticationPolicyAssert) HasDatabaseName added in v0.96.0

func (a *AuthenticationPolicyAssert) HasDatabaseName(expected string) *AuthenticationPolicyAssert

func (*AuthenticationPolicyAssert) HasName added in v0.96.0

func (*AuthenticationPolicyAssert) HasOptions added in v0.96.0

func (*AuthenticationPolicyAssert) HasOwner added in v0.96.0

func (*AuthenticationPolicyAssert) HasOwnerRoleType added in v0.96.0

func (a *AuthenticationPolicyAssert) HasOwnerRoleType(expected string) *AuthenticationPolicyAssert

func (*AuthenticationPolicyAssert) HasSchemaName added in v0.96.0

func (a *AuthenticationPolicyAssert) HasSchemaName(expected string) *AuthenticationPolicyAssert

type ConnectionAssert added in v0.98.0

func Connection added in v0.98.0

func ConnectionFromObject added in v0.98.0

func ConnectionFromObject(t *testing.T, connection *sdk.Connection) *ConnectionAssert

func (*ConnectionAssert) HasAccountLocator added in v0.98.0

func (c *ConnectionAssert) HasAccountLocator(expected string) *ConnectionAssert

func (*ConnectionAssert) HasAccountName added in v0.98.0

func (c *ConnectionAssert) HasAccountName(expected string) *ConnectionAssert

func (*ConnectionAssert) HasComment added in v0.98.0

func (c *ConnectionAssert) HasComment(expected string) *ConnectionAssert

func (*ConnectionAssert) HasConnectionUrl added in v0.98.0

func (c *ConnectionAssert) HasConnectionUrl(expected string) *ConnectionAssert

func (*ConnectionAssert) HasConnectionUrlNotEmpty added in v0.98.0

func (c *ConnectionAssert) HasConnectionUrlNotEmpty() *ConnectionAssert

func (*ConnectionAssert) HasCreatedOn added in v0.98.0

func (c *ConnectionAssert) HasCreatedOn(expected time.Time) *ConnectionAssert

func (*ConnectionAssert) HasFailoverAllowedToAccounts added in v0.98.0

func (c *ConnectionAssert) HasFailoverAllowedToAccounts(expected ...sdk.AccountIdentifier) *ConnectionAssert

func (*ConnectionAssert) HasIsPrimary added in v0.98.0

func (c *ConnectionAssert) HasIsPrimary(expected bool) *ConnectionAssert

func (*ConnectionAssert) HasName added in v0.98.0

func (c *ConnectionAssert) HasName(expected string) *ConnectionAssert

func (*ConnectionAssert) HasNoComment added in v0.98.0

func (c *ConnectionAssert) HasNoComment() *ConnectionAssert

func (*ConnectionAssert) HasOrganizationName added in v0.98.0

func (c *ConnectionAssert) HasOrganizationName(expected string) *ConnectionAssert

func (*ConnectionAssert) HasPrimary added in v0.98.0

func (*ConnectionAssert) HasPrimaryIdentifier added in v0.98.0

func (c *ConnectionAssert) HasPrimaryIdentifier(expected sdk.ExternalObjectIdentifier) *ConnectionAssert

func (*ConnectionAssert) HasRegionGroup added in v0.98.0

func (c *ConnectionAssert) HasRegionGroup(expected string) *ConnectionAssert

func (*ConnectionAssert) HasSnowflakeRegion added in v0.98.0

func (c *ConnectionAssert) HasSnowflakeRegion(expected string) *ConnectionAssert

type DatabaseAssert added in v0.95.0

func Database added in v0.95.0

func DatabaseFromObject added in v0.95.0

func DatabaseFromObject(t *testing.T, database *sdk.Database) *DatabaseAssert

func (*DatabaseAssert) HasComment added in v0.95.0

func (d *DatabaseAssert) HasComment(expected string) *DatabaseAssert

func (*DatabaseAssert) HasCreatedOn added in v0.95.0

func (d *DatabaseAssert) HasCreatedOn(expected time.Time) *DatabaseAssert

func (*DatabaseAssert) HasDroppedOn added in v0.95.0

func (d *DatabaseAssert) HasDroppedOn(expected time.Time) *DatabaseAssert

func (*DatabaseAssert) HasIsCurrent added in v0.95.0

func (d *DatabaseAssert) HasIsCurrent(expected bool) *DatabaseAssert

func (*DatabaseAssert) HasIsDefault added in v0.95.0

func (d *DatabaseAssert) HasIsDefault(expected bool) *DatabaseAssert

func (*DatabaseAssert) HasKind added in v0.95.0

func (d *DatabaseAssert) HasKind(expected string) *DatabaseAssert

func (*DatabaseAssert) HasName added in v0.95.0

func (d *DatabaseAssert) HasName(expected string) *DatabaseAssert

func (*DatabaseAssert) HasOptions added in v0.95.0

func (d *DatabaseAssert) HasOptions(expected string) *DatabaseAssert

func (*DatabaseAssert) HasOrigin added in v0.95.0

func (*DatabaseAssert) HasOwner added in v0.95.0

func (d *DatabaseAssert) HasOwner(expected string) *DatabaseAssert

func (*DatabaseAssert) HasOwnerRoleType added in v0.95.0

func (d *DatabaseAssert) HasOwnerRoleType(expected string) *DatabaseAssert

func (*DatabaseAssert) HasResourceGroup added in v0.95.0

func (d *DatabaseAssert) HasResourceGroup(expected string) *DatabaseAssert

func (*DatabaseAssert) HasRetentionTime added in v0.95.0

func (d *DatabaseAssert) HasRetentionTime(expected int) *DatabaseAssert

func (*DatabaseAssert) HasTransient added in v0.95.0

func (d *DatabaseAssert) HasTransient(expected bool) *DatabaseAssert

type DatabaseDescribeAssert added in v0.95.0

type DatabaseDescribeAssert struct {
	*assert.SnowflakeObjectAssert[sdk.DatabaseDetails, sdk.AccountObjectIdentifier]
}

TODO [SNOW-1501905]: this file should be fully regenerated when adding and option to assert the results of describe

func DatabaseDescribe added in v0.95.0

func (*DatabaseDescribeAssert) ContainsPublicSchema added in v0.95.0

func (d *DatabaseDescribeAssert) ContainsPublicSchema() *DatabaseDescribeAssert

func (*DatabaseDescribeAssert) DoesNotContainPublicSchema added in v0.95.0

func (d *DatabaseDescribeAssert) DoesNotContainPublicSchema() *DatabaseDescribeAssert

type DatabaseRoleAssert added in v0.95.0

func DatabaseRole added in v0.95.0

func DatabaseRoleFromObject added in v0.95.0

func DatabaseRoleFromObject(t *testing.T, databaseRole *sdk.DatabaseRole) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasComment added in v0.95.0

func (d *DatabaseRoleAssert) HasComment(expected string) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasCreatedOn added in v0.95.0

func (d *DatabaseRoleAssert) HasCreatedOn(expected string) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasDatabaseName added in v0.95.0

func (d *DatabaseRoleAssert) HasDatabaseName(expected string) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasGrantedDatabaseRoles added in v0.95.0

func (d *DatabaseRoleAssert) HasGrantedDatabaseRoles(expected int) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasGrantedToDatabaseRoles added in v0.95.0

func (d *DatabaseRoleAssert) HasGrantedToDatabaseRoles(expected int) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasGrantedToRoles added in v0.95.0

func (d *DatabaseRoleAssert) HasGrantedToRoles(expected int) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasIsCurrent added in v0.95.0

func (d *DatabaseRoleAssert) HasIsCurrent(expected bool) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasIsDefault added in v0.95.0

func (d *DatabaseRoleAssert) HasIsDefault(expected bool) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasIsInherited added in v0.95.0

func (d *DatabaseRoleAssert) HasIsInherited(expected bool) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasName added in v0.95.0

func (d *DatabaseRoleAssert) HasName(expected string) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasOwner added in v0.95.0

func (d *DatabaseRoleAssert) HasOwner(expected string) *DatabaseRoleAssert

func (*DatabaseRoleAssert) HasOwnerRoleType added in v0.95.0

func (d *DatabaseRoleAssert) HasOwnerRoleType(expected string) *DatabaseRoleAssert

type MaskingPolicyAssert added in v0.96.0

type MaskingPolicyAssert struct {
	*assert.SnowflakeObjectAssert[sdk.MaskingPolicy, sdk.SchemaObjectIdentifier]
}

func MaskingPolicy added in v0.96.0

func MaskingPolicyFromObject added in v0.96.0

func MaskingPolicyFromObject(t *testing.T, maskingPolicy *sdk.MaskingPolicy) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasComment added in v0.96.0

func (m *MaskingPolicyAssert) HasComment(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasCreatedOn added in v0.96.0

func (m *MaskingPolicyAssert) HasCreatedOn(expected time.Time) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasDatabaseName added in v0.96.0

func (m *MaskingPolicyAssert) HasDatabaseName(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasExemptOtherPolicies added in v0.96.0

func (m *MaskingPolicyAssert) HasExemptOtherPolicies(expected bool) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasKind added in v0.96.0

func (m *MaskingPolicyAssert) HasKind(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasName added in v0.96.0

func (m *MaskingPolicyAssert) HasName(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasOwner added in v0.96.0

func (m *MaskingPolicyAssert) HasOwner(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasOwnerRoleType added in v0.96.0

func (m *MaskingPolicyAssert) HasOwnerRoleType(expected string) *MaskingPolicyAssert

func (*MaskingPolicyAssert) HasSchemaName added in v0.96.0

func (m *MaskingPolicyAssert) HasSchemaName(expected string) *MaskingPolicyAssert

type ResourceMonitorAssert added in v0.96.0

type ResourceMonitorAssert struct {
	*assert.SnowflakeObjectAssert[sdk.ResourceMonitor, sdk.AccountObjectIdentifier]
}

func ResourceMonitor added in v0.96.0

func ResourceMonitorFromObject added in v0.96.0

func ResourceMonitorFromObject(t *testing.T, resourceMonitor *sdk.ResourceMonitor) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasComment added in v0.96.0

func (r *ResourceMonitorAssert) HasComment(expected string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasCreatedOn added in v0.96.0

func (r *ResourceMonitorAssert) HasCreatedOn(expected time.Time) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasCreditQuota added in v0.96.0

func (r *ResourceMonitorAssert) HasCreditQuota(expected float64) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasEndTime added in v0.96.0

func (r *ResourceMonitorAssert) HasEndTime(expected string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasFrequency added in v0.96.0

func (r *ResourceMonitorAssert) HasFrequency(expected sdk.Frequency) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasLevel added in v0.96.0

func (*ResourceMonitorAssert) HasName added in v0.96.0

func (r *ResourceMonitorAssert) HasName(expected string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasNonEmptyEndTime added in v0.96.0

func (r *ResourceMonitorAssert) HasNonEmptyEndTime() *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasNonEmptyStartTime added in v0.96.0

func (r *ResourceMonitorAssert) HasNonEmptyStartTime() *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasNotifyAt added in v0.96.0

func (r *ResourceMonitorAssert) HasNotifyAt(expected []int) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasNotifyUsers added in v0.96.0

func (r *ResourceMonitorAssert) HasNotifyUsers(expected []string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasOwner added in v0.96.0

func (r *ResourceMonitorAssert) HasOwner(expected string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasRemainingCredits added in v0.96.0

func (r *ResourceMonitorAssert) HasRemainingCredits(expected float64) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasStartTime added in v0.96.0

func (r *ResourceMonitorAssert) HasStartTime(expected string) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasSuspendAt added in v0.96.0

func (r *ResourceMonitorAssert) HasSuspendAt(expected int) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasSuspendImmediateAt added in v0.96.0

func (r *ResourceMonitorAssert) HasSuspendImmediateAt(expected int) *ResourceMonitorAssert

func (*ResourceMonitorAssert) HasUsedCredits added in v0.96.0

func (r *ResourceMonitorAssert) HasUsedCredits(expected float64) *ResourceMonitorAssert

type RowAccessPolicyAssert added in v0.96.0

type RowAccessPolicyAssert struct {
	*assert.SnowflakeObjectAssert[sdk.RowAccessPolicy, sdk.SchemaObjectIdentifier]
}

func RowAccessPolicy added in v0.96.0

func RowAccessPolicy(t *testing.T, id sdk.SchemaObjectIdentifier) *RowAccessPolicyAssert

func RowAccessPolicyFromObject added in v0.96.0

func RowAccessPolicyFromObject(t *testing.T, rowAccessPolicy *sdk.RowAccessPolicy) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasComment added in v0.96.0

func (r *RowAccessPolicyAssert) HasComment(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasCreatedOn added in v0.96.0

func (r *RowAccessPolicyAssert) HasCreatedOn(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasDatabaseName added in v0.96.0

func (r *RowAccessPolicyAssert) HasDatabaseName(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasKind added in v0.96.0

func (r *RowAccessPolicyAssert) HasKind(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasName added in v0.96.0

func (r *RowAccessPolicyAssert) HasName(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasOptions added in v0.96.0

func (r *RowAccessPolicyAssert) HasOptions(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasOwner added in v0.96.0

func (r *RowAccessPolicyAssert) HasOwner(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasOwnerRoleType added in v0.96.0

func (r *RowAccessPolicyAssert) HasOwnerRoleType(expected string) *RowAccessPolicyAssert

func (*RowAccessPolicyAssert) HasSchemaName added in v0.96.0

func (r *RowAccessPolicyAssert) HasSchemaName(expected string) *RowAccessPolicyAssert

type SecretAssert added in v0.97.0

func Secret added in v0.97.0

func SecretFromObject added in v0.97.0

func SecretFromObject(t *testing.T, secret *sdk.Secret) *SecretAssert

func (*SecretAssert) HasComment added in v0.97.0

func (s *SecretAssert) HasComment(expected string) *SecretAssert

func (*SecretAssert) HasCreatedOn added in v0.97.0

func (s *SecretAssert) HasCreatedOn(expected time.Time) *SecretAssert

func (*SecretAssert) HasDatabaseName added in v0.97.0

func (s *SecretAssert) HasDatabaseName(expected string) *SecretAssert

func (*SecretAssert) HasName added in v0.97.0

func (s *SecretAssert) HasName(expected string) *SecretAssert

func (*SecretAssert) HasOauthScopes added in v0.97.0

func (s *SecretAssert) HasOauthScopes(expected []string) *SecretAssert

func (*SecretAssert) HasOwner added in v0.97.0

func (s *SecretAssert) HasOwner(expected string) *SecretAssert

func (*SecretAssert) HasOwnerRoleType added in v0.97.0

func (s *SecretAssert) HasOwnerRoleType(expected string) *SecretAssert

func (*SecretAssert) HasSchemaName added in v0.97.0

func (s *SecretAssert) HasSchemaName(expected string) *SecretAssert

func (*SecretAssert) HasSecretType added in v0.97.0

func (s *SecretAssert) HasSecretType(expected string) *SecretAssert

type StreamAssert added in v0.97.0

func Stream added in v0.97.0

func StreamFromObject added in v0.97.0

func StreamFromObject(t *testing.T, stream *sdk.Stream) *StreamAssert

func (*StreamAssert) HasBaseTables added in v0.97.0

func (s *StreamAssert) HasBaseTables(expected ...sdk.SchemaObjectIdentifier) *StreamAssert

func (*StreamAssert) HasBaseTablesPartiallyQualified added in v0.98.0

func (s *StreamAssert) HasBaseTablesPartiallyQualified(expected ...string) *StreamAssert

func (*StreamAssert) HasComment added in v0.97.0

func (s *StreamAssert) HasComment(expected string) *StreamAssert

func (*StreamAssert) HasCreatedOn added in v0.97.0

func (s *StreamAssert) HasCreatedOn(expected time.Time) *StreamAssert

func (*StreamAssert) HasDatabaseName added in v0.97.0

func (s *StreamAssert) HasDatabaseName(expected string) *StreamAssert

func (*StreamAssert) HasInvalidReason added in v0.97.0

func (s *StreamAssert) HasInvalidReason(expected string) *StreamAssert

func (*StreamAssert) HasMode added in v0.97.0

func (s *StreamAssert) HasMode(expected sdk.StreamMode) *StreamAssert

func (*StreamAssert) HasName added in v0.97.0

func (s *StreamAssert) HasName(expected string) *StreamAssert

func (*StreamAssert) HasOwner added in v0.97.0

func (s *StreamAssert) HasOwner(expected string) *StreamAssert

func (*StreamAssert) HasOwnerRoleType added in v0.97.0

func (s *StreamAssert) HasOwnerRoleType(expected string) *StreamAssert

func (*StreamAssert) HasSchemaName added in v0.97.0

func (s *StreamAssert) HasSchemaName(expected string) *StreamAssert

func (*StreamAssert) HasSourceType added in v0.97.0

func (s *StreamAssert) HasSourceType(expected sdk.StreamSourceType) *StreamAssert

func (*StreamAssert) HasStageName added in v0.97.0

func (s *StreamAssert) HasStageName(expected string) *StreamAssert

func (*StreamAssert) HasStale added in v0.97.0

func (s *StreamAssert) HasStale(expected bool) *StreamAssert

func (*StreamAssert) HasStaleAfter added in v0.97.0

func (s *StreamAssert) HasStaleAfter(expected time.Time) *StreamAssert

func (*StreamAssert) HasTableId added in v0.97.0

func (s *StreamAssert) HasTableId(expected sdk.SchemaObjectIdentifier) *StreamAssert

func (*StreamAssert) HasTableName added in v0.97.0

func (s *StreamAssert) HasTableName(expected string) *StreamAssert

func (*StreamAssert) HasType added in v0.97.0

func (s *StreamAssert) HasType(expected string) *StreamAssert

type TagAssert added in v0.98.0

func Tag added in v0.98.0

func TagFromObject added in v0.98.0

func TagFromObject(t *testing.T, tag *sdk.Tag) *TagAssert

func (*TagAssert) HasAllowedValues added in v0.98.0

func (s *TagAssert) HasAllowedValues(expected ...string) *TagAssert

func (*TagAssert) HasComment added in v0.98.0

func (t *TagAssert) HasComment(expected string) *TagAssert

func (*TagAssert) HasCreatedOn added in v0.98.0

func (t *TagAssert) HasCreatedOn(expected time.Time) *TagAssert

func (*TagAssert) HasDatabaseName added in v0.98.0

func (t *TagAssert) HasDatabaseName(expected string) *TagAssert

func (*TagAssert) HasName added in v0.98.0

func (t *TagAssert) HasName(expected string) *TagAssert

func (*TagAssert) HasOwner added in v0.98.0

func (t *TagAssert) HasOwner(expected string) *TagAssert

func (*TagAssert) HasOwnerRoleType added in v0.98.0

func (t *TagAssert) HasOwnerRoleType(expected string) *TagAssert

func (*TagAssert) HasSchemaName added in v0.98.0

func (t *TagAssert) HasSchemaName(expected string) *TagAssert

type TaskAssert added in v0.97.0

func Task added in v0.97.0

func TaskFromObject added in v0.97.0

func TaskFromObject(t *testing.T, task *sdk.Task) *TaskAssert

func (*TaskAssert) HasAllowOverlappingExecution added in v0.97.0

func (t *TaskAssert) HasAllowOverlappingExecution(expected bool) *TaskAssert

func (*TaskAssert) HasBudget added in v0.97.0

func (t *TaskAssert) HasBudget(expected string) *TaskAssert

func (*TaskAssert) HasComment added in v0.97.0

func (t *TaskAssert) HasComment(expected string) *TaskAssert

func (*TaskAssert) HasCondition added in v0.97.0

func (t *TaskAssert) HasCondition(expected string) *TaskAssert

func (*TaskAssert) HasConfig added in v0.97.0

func (t *TaskAssert) HasConfig(expected string) *TaskAssert

func (*TaskAssert) HasCreatedOn added in v0.97.0

func (t *TaskAssert) HasCreatedOn(expected string) *TaskAssert

func (*TaskAssert) HasDatabaseName added in v0.97.0

func (t *TaskAssert) HasDatabaseName(expected string) *TaskAssert

func (*TaskAssert) HasDefinition added in v0.97.0

func (t *TaskAssert) HasDefinition(expected string) *TaskAssert

func (*TaskAssert) HasErrorIntegration added in v0.97.0

func (t *TaskAssert) HasErrorIntegration(expected *sdk.AccountObjectIdentifier) *TaskAssert

func (*TaskAssert) HasId added in v0.97.0

func (t *TaskAssert) HasId(expected string) *TaskAssert

func (*TaskAssert) HasLastCommittedOn added in v0.97.0

func (t *TaskAssert) HasLastCommittedOn(expected string) *TaskAssert

func (*TaskAssert) HasLastSuspendedOn added in v0.97.0

func (t *TaskAssert) HasLastSuspendedOn(expected string) *TaskAssert

func (*TaskAssert) HasLastSuspendedReason added in v0.97.0

func (t *TaskAssert) HasLastSuspendedReason(expected string) *TaskAssert

func (*TaskAssert) HasName added in v0.97.0

func (t *TaskAssert) HasName(expected string) *TaskAssert

func (*TaskAssert) HasNotEmptyCreatedOn added in v0.97.0

func (t *TaskAssert) HasNotEmptyCreatedOn() *TaskAssert

func (*TaskAssert) HasNotEmptyId added in v0.97.0

func (t *TaskAssert) HasNotEmptyId() *TaskAssert

func (*TaskAssert) HasOwner added in v0.97.0

func (t *TaskAssert) HasOwner(expected string) *TaskAssert

func (*TaskAssert) HasOwnerRoleType added in v0.97.0

func (t *TaskAssert) HasOwnerRoleType(expected string) *TaskAssert

func (*TaskAssert) HasPredecessors added in v0.97.0

func (t *TaskAssert) HasPredecessors(ids ...sdk.SchemaObjectIdentifier) *TaskAssert

func (*TaskAssert) HasSchedule added in v0.97.0

func (t *TaskAssert) HasSchedule(expected string) *TaskAssert

func (*TaskAssert) HasSchemaName added in v0.97.0

func (t *TaskAssert) HasSchemaName(expected string) *TaskAssert

func (*TaskAssert) HasState added in v0.97.0

func (t *TaskAssert) HasState(expected sdk.TaskState) *TaskAssert

func (*TaskAssert) HasTaskRelations added in v0.97.0

func (t *TaskAssert) HasTaskRelations(expected sdk.TaskRelations) *TaskAssert

func (*TaskAssert) HasWarehouse added in v0.97.0

func (t *TaskAssert) HasWarehouse(expected string) *TaskAssert

type UserAssert

func UserForIntegrationTests added in v0.95.0

func UserForIntegrationTests(t *testing.T, id sdk.AccountObjectIdentifier, testHelper *helpers.TestClient) *UserAssert

TODO [SNOW-1501905]: the current User func assumes acceptance test client helper, we should paramterize it and change this in the generators

func UserFromObject

func UserFromObject(t *testing.T, user *sdk.User) *UserAssert

func (*UserAssert) HasComment

func (u *UserAssert) HasComment(expected string) *UserAssert

func (*UserAssert) HasCreatedOn

func (u *UserAssert) HasCreatedOn(expected time.Time) *UserAssert

func (*UserAssert) HasCreatedOnNotEmpty

func (w *UserAssert) HasCreatedOnNotEmpty() *UserAssert

func (*UserAssert) HasDaysToExpiry

func (u *UserAssert) HasDaysToExpiry(expected string) *UserAssert

func (*UserAssert) HasDaysToExpiryEmpty added in v0.95.0

func (w *UserAssert) HasDaysToExpiryEmpty() *UserAssert

func (*UserAssert) HasDaysToExpiryNotEmpty

func (w *UserAssert) HasDaysToExpiryNotEmpty() *UserAssert

func (*UserAssert) HasDefaultNamespace

func (u *UserAssert) HasDefaultNamespace(expected string) *UserAssert

func (*UserAssert) HasDefaultNamespaceId

func (w *UserAssert) HasDefaultNamespaceId(expected sdk.DatabaseObjectIdentifier) *UserAssert

func (*UserAssert) HasDefaultRole

func (u *UserAssert) HasDefaultRole(expected string) *UserAssert

func (*UserAssert) HasDefaultSecondaryRoles

func (u *UserAssert) HasDefaultSecondaryRoles(expected string) *UserAssert

func (*UserAssert) HasDefaultWarehouse

func (u *UserAssert) HasDefaultWarehouse(expected string) *UserAssert

func (*UserAssert) HasDefaults

func (w *UserAssert) HasDefaults(name string) *UserAssert

func (*UserAssert) HasDisabled

func (u *UserAssert) HasDisabled(expected bool) *UserAssert

func (*UserAssert) HasDisplayName

func (u *UserAssert) HasDisplayName(expected string) *UserAssert

func (*UserAssert) HasEmail

func (u *UserAssert) HasEmail(expected string) *UserAssert

func (*UserAssert) HasExpiresAtTime

func (u *UserAssert) HasExpiresAtTime(expected time.Time) *UserAssert

func (*UserAssert) HasExpiresAtTimeEmpty

func (w *UserAssert) HasExpiresAtTimeEmpty() *UserAssert

func (*UserAssert) HasExpiresAtTimeNotEmpty

func (w *UserAssert) HasExpiresAtTimeNotEmpty() *UserAssert

func (*UserAssert) HasExtAuthnDuo

func (u *UserAssert) HasExtAuthnDuo(expected bool) *UserAssert

func (*UserAssert) HasExtAuthnUid

func (u *UserAssert) HasExtAuthnUid(expected string) *UserAssert

func (*UserAssert) HasFirstName

func (u *UserAssert) HasFirstName(expected string) *UserAssert

func (*UserAssert) HasHasMfa added in v0.95.0

func (u *UserAssert) HasHasMfa(expected bool) *UserAssert

func (*UserAssert) HasHasPassword

func (u *UserAssert) HasHasPassword(expected bool) *UserAssert

func (*UserAssert) HasHasRsaPublicKey

func (u *UserAssert) HasHasRsaPublicKey(expected bool) *UserAssert

func (*UserAssert) HasLastName

func (u *UserAssert) HasLastName(expected string) *UserAssert

func (*UserAssert) HasLastSuccessLogin

func (u *UserAssert) HasLastSuccessLogin(expected time.Time) *UserAssert

func (*UserAssert) HasLastSuccessLoginEmpty

func (w *UserAssert) HasLastSuccessLoginEmpty() *UserAssert

func (*UserAssert) HasLockedUntilTime

func (u *UserAssert) HasLockedUntilTime(expected time.Time) *UserAssert

func (*UserAssert) HasLockedUntilTimeEmpty

func (w *UserAssert) HasLockedUntilTimeEmpty() *UserAssert

func (*UserAssert) HasLockedUntilTimeNotEmpty

func (w *UserAssert) HasLockedUntilTimeNotEmpty() *UserAssert

func (*UserAssert) HasLoginName

func (u *UserAssert) HasLoginName(expected string) *UserAssert

func (*UserAssert) HasMinsToBypassMfa

func (u *UserAssert) HasMinsToBypassMfa(expected string) *UserAssert

func (*UserAssert) HasMinsToUnlock

func (u *UserAssert) HasMinsToUnlock(expected string) *UserAssert

func (*UserAssert) HasMustChangePassword

func (u *UserAssert) HasMustChangePassword(expected bool) *UserAssert

func (*UserAssert) HasName

func (u *UserAssert) HasName(expected string) *UserAssert

func (*UserAssert) HasOwner

func (u *UserAssert) HasOwner(expected string) *UserAssert

func (*UserAssert) HasOwnerNotEmpty added in v0.95.0

func (w *UserAssert) HasOwnerNotEmpty() *UserAssert

func (*UserAssert) HasSnowflakeLock

func (u *UserAssert) HasSnowflakeLock(expected bool) *UserAssert

func (*UserAssert) HasType added in v0.95.0

func (u *UserAssert) HasType(expected string) *UserAssert

type ViewAssert added in v0.95.0

func View added in v0.95.0

func ViewFromObject added in v0.95.0

func ViewFromObject(t *testing.T, view *sdk.View) *ViewAssert

func (*ViewAssert) HasAggregationPolicyReferences added in v0.95.0

func (v *ViewAssert) HasAggregationPolicyReferences(client *helpers.TestClient, n int) *ViewAssert

func (*ViewAssert) HasChangeTracking added in v0.95.0

func (v *ViewAssert) HasChangeTracking(expected string) *ViewAssert

func (*ViewAssert) HasComment added in v0.95.0

func (v *ViewAssert) HasComment(expected string) *ViewAssert

func (*ViewAssert) HasCreatedOn added in v0.95.0

func (v *ViewAssert) HasCreatedOn(expected string) *ViewAssert

func (*ViewAssert) HasCreatedOnNotEmpty added in v0.95.0

func (w *ViewAssert) HasCreatedOnNotEmpty() *ViewAssert

func (*ViewAssert) HasDatabaseName added in v0.95.0

func (v *ViewAssert) HasDatabaseName(expected string) *ViewAssert

func (*ViewAssert) HasIsMaterialized added in v0.95.0

func (v *ViewAssert) HasIsMaterialized(expected bool) *ViewAssert

func (*ViewAssert) HasIsSecure added in v0.95.0

func (v *ViewAssert) HasIsSecure(expected bool) *ViewAssert

func (*ViewAssert) HasKind added in v0.95.0

func (v *ViewAssert) HasKind(expected string) *ViewAssert

func (*ViewAssert) HasMaskingPolicyReferences added in v0.95.0

func (v *ViewAssert) HasMaskingPolicyReferences(client *helpers.TestClient, n int) *ViewAssert

func (*ViewAssert) HasName added in v0.95.0

func (v *ViewAssert) HasName(expected string) *ViewAssert

func (*ViewAssert) HasNoAggregationPolicyReferences added in v0.95.0

func (v *ViewAssert) HasNoAggregationPolicyReferences(client *helpers.TestClient) *ViewAssert

func (*ViewAssert) HasNoMaskingPolicyReferences added in v0.95.0

func (v *ViewAssert) HasNoMaskingPolicyReferences(client *helpers.TestClient) *ViewAssert

func (*ViewAssert) HasNoProjectionPolicyReferences added in v0.95.0

func (v *ViewAssert) HasNoProjectionPolicyReferences(client *helpers.TestClient) *ViewAssert

func (*ViewAssert) HasNoRowAccessPolicyReferences added in v0.95.0

func (v *ViewAssert) HasNoRowAccessPolicyReferences(client *helpers.TestClient) *ViewAssert

func (*ViewAssert) HasNonEmptyText added in v0.95.0

func (v *ViewAssert) HasNonEmptyText() *ViewAssert

func (*ViewAssert) HasOwner added in v0.95.0

func (v *ViewAssert) HasOwner(expected string) *ViewAssert

func (*ViewAssert) HasOwnerRoleType added in v0.95.0

func (v *ViewAssert) HasOwnerRoleType(expected string) *ViewAssert

func (*ViewAssert) HasProjectionPolicyReferences added in v0.95.0

func (v *ViewAssert) HasProjectionPolicyReferences(client *helpers.TestClient, n int) *ViewAssert

func (*ViewAssert) HasReserved added in v0.95.0

func (v *ViewAssert) HasReserved(expected string) *ViewAssert

func (*ViewAssert) HasRowAccessPolicyReferences added in v0.95.0

func (v *ViewAssert) HasRowAccessPolicyReferences(client *helpers.TestClient, n int) *ViewAssert

func (*ViewAssert) HasSchemaName added in v0.95.0

func (v *ViewAssert) HasSchemaName(expected string) *ViewAssert

func (*ViewAssert) HasText added in v0.95.0

func (v *ViewAssert) HasText(expected string) *ViewAssert

type WarehouseAssert

func WarehouseFromObject

func WarehouseFromObject(t *testing.T, warehouse *sdk.Warehouse) *WarehouseAssert

func (*WarehouseAssert) HasAutoResume

func (w *WarehouseAssert) HasAutoResume(expected bool) *WarehouseAssert

func (*WarehouseAssert) HasAutoSuspend

func (w *WarehouseAssert) HasAutoSuspend(expected int) *WarehouseAssert

func (*WarehouseAssert) HasAvailable

func (w *WarehouseAssert) HasAvailable(expected float64) *WarehouseAssert

func (*WarehouseAssert) HasComment

func (w *WarehouseAssert) HasComment(expected string) *WarehouseAssert

func (*WarehouseAssert) HasCreatedOn

func (w *WarehouseAssert) HasCreatedOn(expected time.Time) *WarehouseAssert

func (*WarehouseAssert) HasEnableQueryAcceleration

func (w *WarehouseAssert) HasEnableQueryAcceleration(expected bool) *WarehouseAssert

func (*WarehouseAssert) HasIsCurrent

func (w *WarehouseAssert) HasIsCurrent(expected bool) *WarehouseAssert

func (*WarehouseAssert) HasIsDefault

func (w *WarehouseAssert) HasIsDefault(expected bool) *WarehouseAssert

func (*WarehouseAssert) HasMaxClusterCount

func (w *WarehouseAssert) HasMaxClusterCount(expected int) *WarehouseAssert

func (*WarehouseAssert) HasMinClusterCount

func (w *WarehouseAssert) HasMinClusterCount(expected int) *WarehouseAssert

func (*WarehouseAssert) HasName

func (w *WarehouseAssert) HasName(expected string) *WarehouseAssert

func (*WarehouseAssert) HasOther

func (w *WarehouseAssert) HasOther(expected float64) *WarehouseAssert

func (*WarehouseAssert) HasOwner

func (w *WarehouseAssert) HasOwner(expected string) *WarehouseAssert

func (*WarehouseAssert) HasOwnerRoleType

func (w *WarehouseAssert) HasOwnerRoleType(expected string) *WarehouseAssert

func (*WarehouseAssert) HasProvisioning

func (w *WarehouseAssert) HasProvisioning(expected float64) *WarehouseAssert

func (*WarehouseAssert) HasQueryAccelerationMaxScaleFactor

func (w *WarehouseAssert) HasQueryAccelerationMaxScaleFactor(expected int) *WarehouseAssert

func (*WarehouseAssert) HasQueued

func (w *WarehouseAssert) HasQueued(expected int) *WarehouseAssert

func (*WarehouseAssert) HasQuiescing

func (w *WarehouseAssert) HasQuiescing(expected float64) *WarehouseAssert

func (*WarehouseAssert) HasResourceMonitor

func (w *WarehouseAssert) HasResourceMonitor(expected sdk.AccountObjectIdentifier) *WarehouseAssert

func (*WarehouseAssert) HasResumedOn

func (w *WarehouseAssert) HasResumedOn(expected time.Time) *WarehouseAssert

func (*WarehouseAssert) HasRunning

func (w *WarehouseAssert) HasRunning(expected int) *WarehouseAssert

func (*WarehouseAssert) HasScalingPolicy

func (w *WarehouseAssert) HasScalingPolicy(expected sdk.ScalingPolicy) *WarehouseAssert

func (*WarehouseAssert) HasSize

func (w *WarehouseAssert) HasSize(expected sdk.WarehouseSize) *WarehouseAssert

func (*WarehouseAssert) HasStartedClusters

func (w *WarehouseAssert) HasStartedClusters(expected int) *WarehouseAssert

func (*WarehouseAssert) HasState

func (w *WarehouseAssert) HasState(expected sdk.WarehouseState) *WarehouseAssert

func (*WarehouseAssert) HasStateOneOf

func (w *WarehouseAssert) HasStateOneOf(expected ...sdk.WarehouseState) *WarehouseAssert

func (*WarehouseAssert) HasType

func (w *WarehouseAssert) HasType(expected sdk.WarehouseType) *WarehouseAssert

func (*WarehouseAssert) HasUpdatedOn

func (w *WarehouseAssert) HasUpdatedOn(expected time.Time) *WarehouseAssert

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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