Update community branch (#13208)
Co-authored-by: Hannah Cooper <hannah.cooper@portainer.io> Co-authored-by: Chaim Lev-Ari <chiptus@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Ali <83188384+testA113@users.noreply.github.com> Co-authored-by: Steven Kang <skan070@gmail.com> Co-authored-by: Josiah Clumont <josiah.clumont@portainer.io> Co-authored-by: nickl-portainer <nicholas.loomans@portainer.io> Co-authored-by: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Co-authored-by: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Co-authored-by: ferreiraborgesaxel-design <ferreiraborgesaxel-design@users.noreply.github.com>
This commit is contained in:
@@ -37,29 +37,29 @@ func TestStackUpdateGitWebhookUniqueness(t *testing.T) {
|
||||
const stack2ID = portainer.StackID(457)
|
||||
|
||||
src1 := &portainer.Source{
|
||||
Type: portainer.SourceTypeGit,
|
||||
GitConfig: &gittypes.RepoConfig{URL: "https://github.com/portainer/portainer.git"},
|
||||
Type: portainer.SourceTypeGit,
|
||||
Git: &gittypes.RepoConfig{URL: "https://github.com/portainer/portainer.git"},
|
||||
}
|
||||
err = store.Source().Create(src1)
|
||||
require.NoError(t, err)
|
||||
|
||||
wf1 := &portainer.Workflow{Artifacts: []portainer.ArtifactSources{{
|
||||
Artifact: portainer.Artifact{StackID: stack1ID},
|
||||
SourceIDs: []portainer.SourceID{src1.ID},
|
||||
wf1 := &portainer.Workflow{Artifacts: []portainer.Artifact{{
|
||||
StackID: stack1ID,
|
||||
Files: []portainer.ArtifactFile{{SourceID: src1.ID}},
|
||||
}}}
|
||||
err = store.Workflow().Create(wf1)
|
||||
require.NoError(t, err)
|
||||
|
||||
src2 := &portainer.Source{
|
||||
Type: portainer.SourceTypeGit,
|
||||
GitConfig: &gittypes.RepoConfig{URL: "https://github.com/portainer/portainer.git"},
|
||||
Type: portainer.SourceTypeGit,
|
||||
Git: &gittypes.RepoConfig{URL: "https://github.com/portainer/portainer.git"},
|
||||
}
|
||||
err = store.Source().Create(src2)
|
||||
require.NoError(t, err)
|
||||
|
||||
wf2 := &portainer.Workflow{Artifacts: []portainer.ArtifactSources{{
|
||||
Artifact: portainer.Artifact{StackID: stack2ID},
|
||||
SourceIDs: []portainer.SourceID{src2.ID},
|
||||
wf2 := &portainer.Workflow{Artifacts: []portainer.Artifact{{
|
||||
StackID: stack2ID,
|
||||
Files: []portainer.ArtifactFile{{SourceID: src2.ID}},
|
||||
}}}
|
||||
err = store.Workflow().Create(wf2)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user