Skip to content

Commit e659ba8

Browse files
committed
lint
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent a7d7419 commit e659ba8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

app/controlplane/pkg/biz/organization_integration_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,43 +118,43 @@ func (s *OrgIntegrationTestSuite) TestUpdate() {
118118

119119
s.Run("org non existent", func() {
120120
// org not found
121-
_, err := s.Organization.Update(ctx, s.user.ID, uuid.NewString(), nil, nil, nil)
121+
_, err := s.Organization.Update(ctx, s.user.ID, uuid.NewString(), nil, nil, nil, nil)
122122
s.Error(err)
123123
s.True(biz.IsNotFound(err))
124124
})
125125

126126
s.Run("org not accessible to user", func() {
127127
org2, err := s.Organization.CreateWithRandomName(ctx)
128128
require.NoError(s.T(), err)
129-
_, err = s.Organization.Update(ctx, s.user.ID, org2.Name, nil, nil, nil)
129+
_, err = s.Organization.Update(ctx, s.user.ID, org2.Name, nil, nil, nil, nil)
130130
s.Error(err)
131131
s.True(biz.IsNotFound(err))
132132
})
133133

134134
s.Run("valid block on policy violation update", func() {
135-
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, toPtrBool(true), nil, nil)
135+
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, toPtrBool(true), nil, nil, nil)
136136
s.NoError(err)
137137
s.True(got.BlockOnPolicyViolation)
138138
})
139139

140140
s.Run("valid policy allowed hostnames update", func() {
141-
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{"foo.com", "bar.com"}, nil)
141+
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{"foo.com", "bar.com"}, nil, nil)
142142
s.NoError(err)
143143
s.Equal([]string{"foo.com", "bar.com"}, got.PoliciesAllowedHostnames)
144144
})
145145

146146
s.Run("clear policy allowed hostnames", func() {
147-
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{}, nil)
147+
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{}, nil, nil)
148148
s.NoError(err)
149149
s.Equal([]string{}, got.PoliciesAllowedHostnames)
150150
})
151151

152152
s.Run("but not passing a value doesn't clear the hostnames value", func() {
153-
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{"foo.com", "bar.com"}, nil)
153+
got, err := s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, []string{"foo.com", "bar.com"}, nil, nil)
154154
s.NoError(err)
155155
s.Equal([]string{"foo.com", "bar.com"}, got.PoliciesAllowedHostnames)
156156

157-
got, err = s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, nil, nil)
157+
got, err = s.Organization.Update(ctx, s.user.ID, s.org.Name, nil, nil, nil, nil)
158158
s.NoError(err)
159159
s.Equal([]string{"foo.com", "bar.com"}, got.PoliciesAllowedHostnames)
160160
})

app/controlplane/pkg/biz/workflow_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (s *workflowIntegrationTestSuite) TestCreate() {
187187

188188
// Enable implicit workflow creation prevention for testing
189189
orgID, _ := uuid.Parse(s.org.ID)
190-
_, err = s.Repos.OrganizationRepo.Update(ctx, orgID, nil, nil, toPtrBool(true))
190+
_, err = s.Repos.OrganizationRepo.Update(ctx, orgID, nil, nil, toPtrBool(true), nil)
191191
s.Require().NoError(err)
192192

193193
for _, tc := range testCases {

0 commit comments

Comments
 (0)