mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 21:48:43 +00:00
chore(deps): terraform 1.8.3, opentofu 1.7.1, conftest 0.52.0 (#4534)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
@@ -5,11 +5,11 @@ ARG DEBIAN_TAG=12.5-slim@sha256:804194b909ef23fb995d9412c9378fb3505fe2427b70f3cc
|
||||
ARG GOLANG_TAG=1.22.1-alpine
|
||||
|
||||
# renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
|
||||
ARG DEFAULT_TERRAFORM_VERSION=1.8.0
|
||||
ARG DEFAULT_TERRAFORM_VERSION=1.8.3
|
||||
# renovate: datasource=github-releases depName=hashicorp/terraform versioning=hashicorp
|
||||
ARG DEFAULT_OPENTOFU_VERSION=1.6.2
|
||||
ARG DEFAULT_OPENTOFU_VERSION=1.7.1
|
||||
# renovate: datasource=github-releases depName=open-policy-agent/conftest
|
||||
ARG DEFAULT_CONFTEST_VERSION=0.49.1
|
||||
ARG DEFAULT_CONFTEST_VERSION=0.52.0
|
||||
|
||||
# Stage 1: build artifact and download deps
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by pegomock. DO NOT EDIT.
|
||||
// Source: github.com/runatlantis/atlantis/server/controllers/templates (interfaces: TemplateWriter)
|
||||
// Source: github.com/runatlantis/atlantis/server/controllers/web_templates (interfaces: TemplateWriter)
|
||||
|
||||
package mocks
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ package mocks
|
||||
import (
|
||||
pegomock "github.com/petergtz/pegomock/v4"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
logging "github.com/runatlantis/atlantis/server/logging"
|
||||
"reflect"
|
||||
"time"
|
||||
)
|
||||
@@ -25,11 +26,11 @@ func NewMockPullApprovedChecker(options ...pegomock.Option) *MockPullApprovedChe
|
||||
func (mock *MockPullApprovedChecker) SetFailHandler(fh pegomock.FailHandler) { mock.fail = fh }
|
||||
func (mock *MockPullApprovedChecker) FailHandler() pegomock.FailHandler { return mock.fail }
|
||||
|
||||
func (mock *MockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) (models.ApprovalStatus, error) {
|
||||
func (mock *MockPullApprovedChecker) PullIsApproved(logger logging.SimpleLogging, baseRepo models.Repo, pull models.PullRequest) (models.ApprovalStatus, error) {
|
||||
if mock == nil {
|
||||
panic("mock must not be nil. Use myMock := NewMockPullApprovedChecker().")
|
||||
}
|
||||
params := []pegomock.Param{baseRepo, pull}
|
||||
params := []pegomock.Param{logger, baseRepo, pull}
|
||||
result := pegomock.GetGenericMockFrom(mock).Invoke("PullIsApproved", params, []reflect.Type{reflect.TypeOf((*models.ApprovalStatus)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
|
||||
var ret0 models.ApprovalStatus
|
||||
var ret1 error
|
||||
@@ -81,8 +82,8 @@ type VerifierMockPullApprovedChecker struct {
|
||||
timeout time.Duration
|
||||
}
|
||||
|
||||
func (verifier *VerifierMockPullApprovedChecker) PullIsApproved(baseRepo models.Repo, pull models.PullRequest) *MockPullApprovedChecker_PullIsApproved_OngoingVerification {
|
||||
params := []pegomock.Param{baseRepo, pull}
|
||||
func (verifier *VerifierMockPullApprovedChecker) PullIsApproved(logger logging.SimpleLogging, baseRepo models.Repo, pull models.PullRequest) *MockPullApprovedChecker_PullIsApproved_OngoingVerification {
|
||||
params := []pegomock.Param{logger, baseRepo, pull}
|
||||
methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "PullIsApproved", params, verifier.timeout)
|
||||
return &MockPullApprovedChecker_PullIsApproved_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
|
||||
}
|
||||
@@ -92,21 +93,25 @@ type MockPullApprovedChecker_PullIsApproved_OngoingVerification struct {
|
||||
methodInvocations []pegomock.MethodInvocation
|
||||
}
|
||||
|
||||
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments() (models.Repo, models.PullRequest) {
|
||||
baseRepo, pull := c.GetAllCapturedArguments()
|
||||
return baseRepo[len(baseRepo)-1], pull[len(pull)-1]
|
||||
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, models.PullRequest) {
|
||||
logger, baseRepo, pull := c.GetAllCapturedArguments()
|
||||
return logger[len(logger)-1], baseRepo[len(baseRepo)-1], pull[len(pull)-1]
|
||||
}
|
||||
|
||||
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []models.PullRequest) {
|
||||
func (c *MockPullApprovedChecker_PullIsApproved_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []models.PullRequest) {
|
||||
params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
|
||||
if len(params) > 0 {
|
||||
_param0 = make([]models.Repo, len(c.methodInvocations))
|
||||
_param0 = make([]logging.SimpleLogging, len(c.methodInvocations))
|
||||
for u, param := range params[0] {
|
||||
_param0[u] = param.(models.Repo)
|
||||
_param0[u] = param.(logging.SimpleLogging)
|
||||
}
|
||||
_param1 = make([]models.PullRequest, len(c.methodInvocations))
|
||||
_param1 = make([]models.Repo, len(c.methodInvocations))
|
||||
for u, param := range params[1] {
|
||||
_param1[u] = param.(models.PullRequest)
|
||||
_param1[u] = param.(models.Repo)
|
||||
}
|
||||
_param2 = make([]models.PullRequest, len(c.methodInvocations))
|
||||
for u, param := range params[2] {
|
||||
_param2[u] = param.(models.PullRequest)
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
@@ -5,11 +5,11 @@ package mocks
|
||||
|
||||
import (
|
||||
gitea "code.gitea.io/sdk/gitea"
|
||||
gitea0 "github.com/runatlantis/atlantis/server/events/vcs/gitea"
|
||||
github "github.com/google/go-github/v59/github"
|
||||
azuredevops "github.com/mcdafydd/go-azuredevops/azuredevops"
|
||||
pegomock "github.com/petergtz/pegomock/v4"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
gitea0 "github.com/runatlantis/atlantis/server/events/vcs/gitea"
|
||||
logging "github.com/runatlantis/atlantis/server/logging"
|
||||
go_gitlab "github.com/xanzy/go-gitlab"
|
||||
"reflect"
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
github "github.com/google/go-github/v59/github"
|
||||
pegomock "github.com/petergtz/pegomock/v4"
|
||||
models "github.com/runatlantis/atlantis/server/events/models"
|
||||
logging "github.com/runatlantis/atlantis/server/logging"
|
||||
"reflect"
|
||||
"time"
|
||||
)
|
||||
@@ -26,11 +27,11 @@ func NewMockGithubPullRequestGetter(options ...pegomock.Option) *MockGithubPullR
|
||||
func (mock *MockGithubPullRequestGetter) SetFailHandler(fh pegomock.FailHandler) { mock.fail = fh }
|
||||
func (mock *MockGithubPullRequestGetter) FailHandler() pegomock.FailHandler { return mock.fail }
|
||||
|
||||
func (mock *MockGithubPullRequestGetter) GetPullRequest(repo models.Repo, pullNum int) (*github.PullRequest, error) {
|
||||
func (mock *MockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) (*github.PullRequest, error) {
|
||||
if mock == nil {
|
||||
panic("mock must not be nil. Use myMock := NewMockGithubPullRequestGetter().")
|
||||
}
|
||||
params := []pegomock.Param{repo, pullNum}
|
||||
params := []pegomock.Param{logger, repo, pullNum}
|
||||
result := pegomock.GetGenericMockFrom(mock).Invoke("GetPullRequest", params, []reflect.Type{reflect.TypeOf((**github.PullRequest)(nil)).Elem(), reflect.TypeOf((*error)(nil)).Elem()})
|
||||
var ret0 *github.PullRequest
|
||||
var ret1 error
|
||||
@@ -82,8 +83,8 @@ type VerifierMockGithubPullRequestGetter struct {
|
||||
timeout time.Duration
|
||||
}
|
||||
|
||||
func (verifier *VerifierMockGithubPullRequestGetter) GetPullRequest(repo models.Repo, pullNum int) *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification {
|
||||
params := []pegomock.Param{repo, pullNum}
|
||||
func (verifier *VerifierMockGithubPullRequestGetter) GetPullRequest(logger logging.SimpleLogging, repo models.Repo, pullNum int) *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification {
|
||||
params := []pegomock.Param{logger, repo, pullNum}
|
||||
methodInvocations := pegomock.GetGenericMockFrom(verifier.mock).Verify(verifier.inOrderContext, verifier.invocationCountMatcher, "GetPullRequest", params, verifier.timeout)
|
||||
return &MockGithubPullRequestGetter_GetPullRequest_OngoingVerification{mock: verifier.mock, methodInvocations: methodInvocations}
|
||||
}
|
||||
@@ -93,21 +94,25 @@ type MockGithubPullRequestGetter_GetPullRequest_OngoingVerification struct {
|
||||
methodInvocations []pegomock.MethodInvocation
|
||||
}
|
||||
|
||||
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments() (models.Repo, int) {
|
||||
repo, pullNum := c.GetAllCapturedArguments()
|
||||
return repo[len(repo)-1], pullNum[len(pullNum)-1]
|
||||
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetCapturedArguments() (logging.SimpleLogging, models.Repo, int) {
|
||||
logger, repo, pullNum := c.GetAllCapturedArguments()
|
||||
return logger[len(logger)-1], repo[len(repo)-1], pullNum[len(pullNum)-1]
|
||||
}
|
||||
|
||||
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []models.Repo, _param1 []int) {
|
||||
func (c *MockGithubPullRequestGetter_GetPullRequest_OngoingVerification) GetAllCapturedArguments() (_param0 []logging.SimpleLogging, _param1 []models.Repo, _param2 []int) {
|
||||
params := pegomock.GetGenericMockFrom(c.mock).GetInvocationParams(c.methodInvocations)
|
||||
if len(params) > 0 {
|
||||
_param0 = make([]models.Repo, len(c.methodInvocations))
|
||||
_param0 = make([]logging.SimpleLogging, len(c.methodInvocations))
|
||||
for u, param := range params[0] {
|
||||
_param0[u] = param.(models.Repo)
|
||||
_param0[u] = param.(logging.SimpleLogging)
|
||||
}
|
||||
_param1 = make([]int, len(c.methodInvocations))
|
||||
_param1 = make([]models.Repo, len(c.methodInvocations))
|
||||
for u, param := range params[1] {
|
||||
_param1[u] = param.(int)
|
||||
_param1[u] = param.(models.Repo)
|
||||
}
|
||||
_param2 = make([]int, len(c.methodInvocations))
|
||||
for u, param := range params[2] {
|
||||
_param2[u] = param.(int)
|
||||
}
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user