Zuordnungs-Lauf: vom System-Konto angelegte Projekte nicht alle 10 Minuten abfragen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e43cdb667b
commit
d878df96e0
2 files changed
+14
No files matched your search
@@ -126,6 +126,17 @@ test('Job: Mail ohne vorherigen Versuch wird nachgeholt (createdByGitea, 0 Versu
|
||||
assert.equal(sink.sent.length, 1)
|
||||
})
|
||||
|
||||
test('Job: vom System-Konto angelegtes Projekt ohne Art wird nicht abgefragt und nicht gemailt', async () => {
|
||||
freshSink()
|
||||
gitea.addRepo({ full_name: 'WEBklar/aus-womS', created_at: ago(1) })
|
||||
aw.insert('websiteProjects', { repoFullName: 'WEBklar/aus-womS', projectName: 'aus WOMS', createdByGitea: 'webklar-system', assignMailAttempts: 0 })
|
||||
const before = gitea.calls.filter((c) => c.path === '/api/v1/repos/WEBklar/aus-womS').length
|
||||
const c = await runRepoAssignJob({ now: NOW })
|
||||
assert.equal(c.retries, 0)
|
||||
assert.equal(sink.sent.length, 0)
|
||||
assert.equal(gitea.calls.filter((x) => x.path === '/api/v1/repos/WEBklar/aus-womS').length, before)
|
||||
})
|
||||
|
||||
test('Job: neues Nutzer-Repo → Mail, Org-Repo → keine Mail', async () => {
|
||||
freshSink()
|
||||
gitea.addRepo({ full_name: 'knso/jobneu', created_at: ago(1) })
|
||||
|
||||
Reference in new issue
Block a user