Skip to content

Commit 5968da1

Browse files
committed
fix: fix tests
1 parent 56260b0 commit 5968da1

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ func (s *MethodTestSuite) TestOrganization() {
815815
}))
816816
s.Run("GetOrganizationByName", s.Subtest(func(db database.Store, check *expects) {
817817
o := dbgen.Organization(s.T(), db, database.Organization{})
818-
check.Args(o.Name).Asserts(o, policy.ActionRead).Returns(o)
818+
check.Args(database.GetOrganizationByNameParams{Name: o.Name, Deleted: o.Deleted}).Asserts(o, policy.ActionRead).Returns(o)
819819
}))
820820
s.Run("GetOrganizationIDsByMemberIDs", s.Subtest(func(db database.Store, check *expects) {
821821
oa := dbgen.Organization(s.T(), db, database.Organization{})

coderd/database/dump.sql

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/migrations/000296_organization_soft_delete.down.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ALTER TABLE organizations DROP COLUMN deleted;
2-
31
DROP INDEX IF EXISTS idx_organization_name_lower;
42

53
CREATE UNIQUE INDEX IF NOT EXISTS idx_organization_name ON organizations USING btree (name);
@@ -10,3 +8,5 @@ ALTER TABLE ONLY organizations
108

119
DROP TRIGGER IF EXISTS protect_provisioned_organizations ON organizations;
1210
DROP FUNCTION IF EXISTS protect_provisioned_organizations;
11+
12+
ALTER TABLE organizations DROP COLUMN deleted;

coderd/database/unique_constraint.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy