Skip to content

Commit

Permalink
integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Nov 27, 2023
1 parent 2484992 commit d810750
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions database/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,8 @@ func newResources() *Resources {
buildOne.SetHost("example.company.com")
buildOne.SetRuntime("docker")
buildOne.SetDistribution("linux")
buildOne.SetApprovedAt(1563474078)
buildOne.SetApprovedBy("OctoCat")

buildTwo := new(library.Build)
buildTwo.SetID(2)
Expand Down Expand Up @@ -1948,6 +1950,8 @@ func newResources() *Resources {
buildTwo.SetHost("example.company.com")
buildTwo.SetRuntime("docker")
buildTwo.SetDistribution("linux")
buildTwo.SetApprovedAt(1563474078)
buildTwo.SetApprovedBy("OctoCat")

executableOne := new(library.BuildExecutable)
executableOne.SetID(1)
Expand Down Expand Up @@ -2122,6 +2126,7 @@ func newResources() *Resources {
repoOne.SetAllowComment(false)
repoOne.SetPipelineType("")
repoOne.SetPreviousName("")
repoOne.SetApproveBuild(constants.ApproveNever)

repoTwo := new(library.Repo)
repoTwo.SetID(2)
Expand All @@ -2148,6 +2153,7 @@ func newResources() *Resources {
repoTwo.SetAllowComment(false)
repoTwo.SetPipelineType("")
repoTwo.SetPreviousName("")
repoTwo.SetApproveBuild(constants.ApproveForkAlways)

scheduleOne := new(library.Schedule)
scheduleOne.SetID(1)
Expand Down

0 comments on commit d810750

Please sign in to comment.