diff --git a/api/pkg/db/validation/validation_test.go b/api/pkg/db/validation/validation_test.go index d5ad42536e..ffc9d47f36 100644 --- a/api/pkg/db/validation/validation_test.go +++ b/api/pkg/db/validation/validation_test.go @@ -32,15 +32,15 @@ func TestCheckNotNull(t *testing.T) { err := db.Create(&model.Catalog{Name: "tekton", Type: "", URL: "", Revision: "master"}).Error assert.Error(t, err) - assert.Equal(t, "ERROR: null value in column \"type\" violates not-null constraint (SQLSTATE 23502)", err.Error()) + assert.Equal(t, "ERROR: null value in column \"type\" of relation \"catalogs\" violates not-null constraint (SQLSTATE 23502)", err.Error()) err = db.Create(&model.Resource{Name: "tekton", Rating: 4}).Error assert.Error(t, err) - assert.Equal(t, "ERROR: null value in column \"kind\" violates not-null constraint (SQLSTATE 23502)", err.Error()) + assert.Equal(t, "ERROR: null value in column \"kind\" of relation \"resources\" violates not-null constraint (SQLSTATE 23502)", err.Error()) err = db.Create(&model.ResourceVersion{Version: "", Description: "task", URL: "", DisplayName: "Task", MinPipelinesVersion: ""}).Error assert.Error(t, err) - assert.Equal(t, "ERROR: null value in column \"version\" violates not-null constraint (SQLSTATE 23502)", err.Error()) + assert.Equal(t, "ERROR: null value in column \"version\" of relation \"resource_versions\" violates not-null constraint (SQLSTATE 23502)", err.Error()) } // Checks the Unique constraint diff --git a/api/pkg/user/service/user.go b/api/pkg/user/service/user.go index dd121d47ef..e82bbba939 100644 --- a/api/pkg/user/service/user.go +++ b/api/pkg/user/service/user.go @@ -131,7 +131,6 @@ func (s *UserService) RefreshAccessToken(res http.ResponseWriter, req *http.Requ refreshToken := req.Header.Get("Authorization") user, err := s.validateRefreshToken(userId, refreshToken) if err != nil { - r.log.Error(err) http.Error(res, err.Error(), http.StatusInternalServerError) return } diff --git a/test/presubmit-tests.sh b/test/presubmit-tests.sh index d9d3a8aca4..15c447bf6e 100755 --- a/test/presubmit-tests.sh +++ b/test/presubmit-tests.sh @@ -74,9 +74,13 @@ ui-unittest() { install-postgres() { info Installing postgres 🛢🛢🛢 + apt-get install wget ca-certificates + wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - + sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' apt-get update - apt-get install -y postgresql postgresql-contrib - pg_ctlcluster 11 main start + apt-get -y install postgresql-13 + service postgresql start + pg_ctlcluster 13 main start } set-pg-passwd() {