Skip to content

Commit

Permalink
Hooks improvement to use ent eager loading (#261)
Browse files Browse the repository at this point in the history
* additional hooks unit tests

Signed-off-by: Matt Siwiec <[email protected]>

* audit loadbalancer manual hook db hits and ensure providerID included in additionalSubjects

Signed-off-by: Matt Siwiec <[email protected]>

* audit origin manual hook db hits

Signed-off-by: Matt Siwiec <[email protected]>

* audit pool manual hook db hits

Signed-off-by: Matt Siwiec <[email protected]>

* audit port manual hook db hits

Signed-off-by: Matt Siwiec <[email protected]>

* bump test event msg channel timeout to 5s; align

Signed-off-by: Matt Siwiec <[email protected]>

* test with one retry

Signed-off-by: Matt Siwiec <[email protected]>

* tweek flake

Signed-off-by: Matt Siwiec <[email protected]>

---------

Signed-off-by: Matt Siwiec <[email protected]>
  • Loading branch information
rizzza authored Nov 3, 2023
1 parent f43a386 commit b8cdab1
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 181 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,8 @@ jobs:
- name: Install atlas for db migrations on ${{ matrix.ci-database }}
run: go install ariga.io/atlas/cmd/atlas@latest

# with one retry
- name: Run go tests for ${{ matrix.ci-database }}
run: LOADBALANCERAPI_TESTDB_URI="${{ matrix.env-database-uri }}" go test -race -coverprofile=coverage.txt -covermode=atomic -tags testtools ./...
run: |
LOADBALANCERAPI_TESTDB_URI="${{ matrix.env-database-uri }}" go test -race -coverprofile=coverage.txt -covermode=atomic -tags testtools ./... || \
LOADBALANCERAPI_TESTDB_URI="${{ matrix.env-database-uri }}" go test -race -coverprofile=coverage.txt -covermode=atomic -tags testtools ./...
Loading

0 comments on commit b8cdab1

Please sign in to comment.