Skip to content

Commit

Permalink
Test days to expiry, finish import, regenerate assertions
Browse files Browse the repository at this point in the history
References: #1155
  • Loading branch information
sfc-gh-asawicki committed Aug 30, 2024
1 parent 88eef60 commit 6f9d6da
Show file tree
Hide file tree
Showing 11 changed files with 359 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,18 @@ func (w *UserAssert) HasDaysToExpiryNotEmpty() *UserAssert {
w.AddAssertion(func(t *testing.T, o *sdk.User) error {
t.Helper()
if o.DaysToExpiry == "" {
return fmt.Errorf("expected days to expiry not empty; got: %v", o.DaysToExpiry)
return fmt.Errorf("expected days to expiry not empty; got empty")
}
return nil
})
return w
}

func (w *UserAssert) HasDaysToExpiryEmpty() *UserAssert {
w.AddAssertion(func(t *testing.T, o *sdk.User) error {
t.Helper()
if o.DaysToExpiry != "" {
return fmt.Errorf("expected days to expiry empty; got: %v", o.DaysToExpiry)
}
return nil
})
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

74 changes: 59 additions & 15 deletions pkg/acceptance/bettertestspoc/config/model/user_model_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f9d6da

Please sign in to comment.