From 20c314787d4ff6e58eecbf5341f25f1487d25353 Mon Sep 17 00:00:00 2001 From: irenarindos Date: Fri, 20 May 2022 10:23:15 -0400 Subject: [PATCH] fixup! feat(pki): Add PKI schemas and protos --- ...tion.up.sql => 03_worker_authentication.up.sql} | 0 internal/servers/testing.go | 14 +++++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) rename internal/db/schema/migrations/oss/postgres/99/{02_worker_authentication.up.sql => 03_worker_authentication.up.sql} (100%) diff --git a/internal/db/schema/migrations/oss/postgres/99/02_worker_authentication.up.sql b/internal/db/schema/migrations/oss/postgres/99/03_worker_authentication.up.sql similarity index 100% rename from internal/db/schema/migrations/oss/postgres/99/02_worker_authentication.up.sql rename to internal/db/schema/migrations/oss/postgres/99/03_worker_authentication.up.sql diff --git a/internal/servers/testing.go b/internal/servers/testing.go index 0c12e7a62b..81b0501952 100644 --- a/internal/servers/testing.go +++ b/internal/servers/testing.go @@ -2,6 +2,7 @@ package servers import ( "context" + "github.com/hashicorp/boundary/internal/types/scope" "math/rand" "testing" "time" @@ -92,12 +93,15 @@ func TestWorker(t *testing.T, conn *db.DB, wrapper wrapping.Wrapper) *store.Work id = "test-session-worker-" + id name := "test-worker-" + id - worker := &store.Worker{ - PublicId: id, - Name: name, - Address: "127.0.0.1", + worker := &Worker{ + Worker: &store.Worker{ + PublicId: id, + Name: name, + Address: "127.0.0.1", + ScopeId: scope.Global.String(), + }, } _, _, err = serversRepo.UpsertWorker(context.Background(), worker) require.NoError(t, err) - return worker + return worker.Worker }