diff --git a/go.mod b/go.mod index 751a2c522..ea2ac2e62 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/containrrr/shoutrrr v0.7.1 github.com/fergusstrange/embedded-postgres v1.23.0 github.com/flanksource/commons v1.10.2 - github.com/flanksource/duty v1.0.141 + github.com/flanksource/duty v1.0.149 github.com/flanksource/kopper v1.0.6 github.com/google/cel-go v0.17.1 github.com/google/go-cmp v0.5.9 diff --git a/go.sum b/go.sum index 440270f2f..f831fc516 100644 --- a/go.sum +++ b/go.sum @@ -766,8 +766,8 @@ github.com/fergusstrange/embedded-postgres v1.23.0 h1:ZYRD89nammxQDWDi6taJE2CYjD github.com/fergusstrange/embedded-postgres v1.23.0/go.mod h1:wL562t1V+iuFwq0UcgMi2e9rp8CROY9wxWZEfP8Y874= github.com/flanksource/commons v1.10.2 h1:Nw9foNBAt6QVylbgfaDojRGgRUAyQAHOfBv9qk9G714= github.com/flanksource/commons v1.10.2/go.mod h1:zYEhi6E2+diQ+loVcROUHo/Bgv+Tn61W2NYmrb5MgVI= -github.com/flanksource/duty v1.0.141 h1:mUAcRkiacuEYzQyPLWan0qrCKzJGwqrHrG85uW+mVIg= -github.com/flanksource/duty v1.0.141/go.mod h1:RJ/kcZ7dbL8/52tem757szVIA3IomS8bOAZIK0xb4rk= +github.com/flanksource/duty v1.0.149 h1:YH8L9wqZpsD5XaPxfGVM3qxTxP20Z/+7uwGMvlvSaSU= +github.com/flanksource/duty v1.0.149/go.mod h1:RJ/kcZ7dbL8/52tem757szVIA3IomS8bOAZIK0xb4rk= github.com/flanksource/gomplate/v3 v3.20.4/go.mod h1:27BNWhzzSjDed1z8YShO6W+z6G9oZXuxfNFGd/iGSdc= github.com/flanksource/gomplate/v3 v3.20.9 h1:I3H/l1FUDepe6IuG8Nj51QNX9ocdU2EGL4GWz31sZdk= github.com/flanksource/gomplate/v3 v3.20.9/go.mod h1:1N1aptaAo0XUaGsyU5CWiwn9GMRpbIKX1AdsypfmZYo= diff --git a/incident_rules_test.go b/incident_rules_test.go index a7ce49aeb..921cf4514 100644 --- a/incident_rules_test.go +++ b/incident_rules_test.go @@ -27,11 +27,10 @@ var _ = ginkgo.Describe("Test incident creation via incidence rule", ginkgo.Orde ) ginkgo.It("should create a system user", func() { - systemUser := &models.Person{ - ID: uuid.New(), + systemUser := models.Person{ Name: "System", } - tx := db.Gorm.Create(systemUser) + tx := db.Gorm.Find(&systemUser) Expect(tx.Error).To(BeNil()) api.SystemUserID = &systemUser.ID