From 145e6064c73035aaa2b912a3b5f773103112ed81 Mon Sep 17 00:00:00 2001 From: Kim Tao Date: Thu, 5 Dec 2024 14:43:56 -0500 Subject: [PATCH] Enable Parameter Store in GH app tests --- model/project_ref_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/model/project_ref_test.go b/model/project_ref_test.go index 1461515105..b474488bc5 100644 --- a/model/project_ref_test.go +++ b/model/project_ref_test.go @@ -1536,6 +1536,14 @@ func TestDefaultRepoBySection(t *testing.T) { } assert.NoError(t, pRef.Insert()) + repoRef := RepoRef{ + ProjectRef: ProjectRef{ + Id: pRef.RepoRefId, + ParameterStoreEnabled: true, + }, + } + assert.NoError(t, repoRef.Upsert()) + pVars := ProjectVars{ Id: pRef.Id, Vars: map[string]string{"hello": "world"}, @@ -1860,7 +1868,8 @@ func TestSetGithubAppCredentials(t *testing.T) { t.Run(name, func(t *testing.T) { require.NoError(t, db.ClearCollections(ProjectRefCollection, githubapp.GitHubAppAuthCollection)) p := &ProjectRef{ - Id: "id1", + Id: "id1", + ParameterStoreEnabled: true, } require.NoError(t, p.Insert()) test(t, p)