mirror of
1
Fork 0

test: sourcehut_builds trigger

(cherry picked from commit 7b47cb43c1)
This commit is contained in:
oliverpool 2024-05-22 10:09:32 +02:00 committed by GitHub
parent b5c49a19d2
commit 855f95f7a2
11 changed files with 19 additions and 8 deletions

View File

@ -175,7 +175,7 @@ environment:
p := &api.PushPayload{ p := &api.PushPayload{
Ref: "refs/heads/main", Ref: "refs/heads/main",
HeadCommit: &api.PayloadCommit{ HeadCommit: &api.PayloadCommit{
ID: "69b217caa89166a02b8cd368b64fb83a44720e14", ID: "b0404943256a1f5a50c3726f4378756b4c1e5704",
Message: "replace simple with complex", Message: "replace simple with complex",
}, },
Repo: repo, Repo: repo,
@ -187,15 +187,22 @@ environment:
pl, err := pc.Push(p) pl, err := pc.Push(p)
require.NoError(t, err) require.NoError(t, err)
assert.Equal(t, buildsVariables{ assert.Equal(t, `image: archlinux
Manifest: `image: archlinux
packages: packages:
- nodejs - nodejs
- npm - npm
- rsync - rsync
sources: sources:
- http://localhost:3000/testdata/repo.git#69b217caa89166a02b8cd368b64fb83a44720e14 - http://localhost:3000/testdata/repo.git#b0404943256a1f5a50c3726f4378756b4c1e5704
tasks: [] tasks: []
triggers:
- condition: failure
action: email
to: Jim Jimson <jim@example.org>
# report back the status
- condition: always
action: webhook
url: https://hook.example.org
environment: environment:
BUILD_SUBMITTER: forgejo BUILD_SUBMITTER: forgejo
BUILD_SUBMITTER_URL: https://example.forgejo.org/ BUILD_SUBMITTER_URL: https://example.forgejo.org/
@ -203,7 +210,9 @@ environment:
deploy: synapse@synapse-bt.org deploy: synapse@synapse-bt.org
secrets: secrets:
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665 - 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
`, `, pl.Variables.Manifest)
assert.Equal(t, buildsVariables{
Manifest: pl.Variables.Manifest, // the manifest correctness is checked above, for nicer diff on error
Note: "replace simple with complex", Note: "replace simple with complex",
Tags: []string{"testdata/repo", "branch/main", "complex.yaml"}, Tags: []string{"testdata/repo", "branch/main", "complex.yaml"},
Secrets: false, Secrets: false,

View File

@ -1 +0,0 @@
x•NKjÃ0ìZ§xûBÑçɶ ”¬z<C2AC>ççQã[FQÚ?"=A3óѲmk#ÏüÒ*@š²L3&²)ú”'D$ #²Î’ƒ æ<>Š½Ñ¼,#/³„Ov‰ƒzIN<Áu'¨‘[;—JŸ¥~á»Ð{þ#'Üe;.xëòƒÜè¼#[K¯Ö[kôy¯áßASq\DAìkƵÑïÚÎÔûúØ<C3BA>~P¯kÙÍÂVO<56>

View File

@ -0,0 +1,4 @@
xU<>έnƒ0 …w<E280A6>§°΄k
λ lΡ4υz―0νΒ ¤„%fmί~@ΫύD²Ωωμc<Ε<C2B7>°% mη]<5D>NjDΫΟR<CE9F>
ζ“Aΰ†ι<CEB9>ΓυΣ9X•x<E280A2>φ·¶u<>{¶θ;NΆΆΘ…4(<28>GyΣ:Q©Oή?…/9 δlhτ|Φ0<30>cΆύυΞ<CF85>l8¶*<>$?ΓΥΤ»§<C2BB>**³<>>7™Α<E284A2>ΞΘXomµΫUJItmKqνΚΐrh<72>8>Ρω)<29>ΊΪFΓ,®<>°†77,8ΐΛΑ {:α0zZfy<66>ξaΩ)
<EFBFBD>Ω5<EFBFBD><EFBFBD> Κ΄Ψυ„ώ<E2809E>η‰7ΞLΗά―¤)z yivoQ78J}³θ‡¤

View File

@ -1 +0,0 @@
x=ЋKnГ0 D»Ц)ё`иkЙ@PdХ{P2™Ё°-AQїк] АYјЗIeЯsmэKoDђЖ)¤™µґ8Ѕp gg44вlЉИFССБп•”F9ѓВ<D193>жИV­,“[ЈО¤`~ф[iрVЪ•Ю њщчёРчєС4к+(Їф0Y)б$µ”"эМлФ lщ“Z-eѓу5чЛwПФ¦КёNЬюЩY»?V4Є&ЏМtпрИэC9ю=aШов ™,PЎ

View File

@ -1 +1 @@
69b217caa89166a02b8cd368b64fb83a44720e14 b0404943256a1f5a50c3726f4378756b4c1e5704