Skip to content

Commit

Permalink
Enable Parameter Store in GH app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimchelly committed Dec 6, 2024
1 parent 7a5d5f6 commit 145e606
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion model/project_ref_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 145e606

Please sign in to comment.