Skip to content

Commit

Permalink
test: add short flag for store unit test because it's using dockertes…
Browse files Browse the repository at this point in the history
…t for integration tests (#369)
  • Loading branch information
swallowstalker committed Feb 23, 2023
1 parent a441960 commit 4437d32
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/store/postgres/activity_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ type ActivityRepositoryTestSuite struct {
}

func TestActivityRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(ActivityRepositoryTestSuite))
}

Expand Down
4 changes: 4 additions & 0 deletions internal/store/postgres/appeal_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,9 @@ func (s *AppealRepositoryTestSuite) TestUpdate() {
}

func TestAppealRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(AppealRepositoryTestSuite))
}
4 changes: 4 additions & 0 deletions internal/store/postgres/approval_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ type ApprovalRepositoryTestSuite struct {
}

func TestApprovalRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(ApprovalRepositoryTestSuite))
}

Expand Down
4 changes: 4 additions & 0 deletions internal/store/postgres/grant_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ type GrantRepositoryTestSuite struct {
}

func TestGrantRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(GrantRepositoryTestSuite))
}

Expand Down
4 changes: 4 additions & 0 deletions internal/store/postgres/policy_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,9 @@ func (s *PolicyRepositoryTestSuite) TestGetOne() {
}

func TestPolicyRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(PolicyRepositoryTestSuite))
}
4 changes: 4 additions & 0 deletions internal/store/postgres/provider_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,5 +377,9 @@ func (s *ProviderRepositoryTestSuite) TestDelete() {
}

func TestProviderRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(ProviderRepositoryTestSuite))
}
4 changes: 4 additions & 0 deletions internal/store/postgres/resource_repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,5 +420,9 @@ func (s *ResourceRepositoryTestSuite) getTestResources() []*domain.Resource {
}

func TestResourceRepository(t *testing.T) {
if testing.Short() {
t.Skip()
}

suite.Run(t, new(ResourceRepositoryTestSuite))
}

0 comments on commit 4437d32

Please sign in to comment.