]> source.dussan.org Git - gitea.git/commit
Add artifacts test fixture (#30300)
authorKyle D. <kdumontnu@gmail.com>
Fri, 1 Nov 2024 02:29:54 +0000 (22:29 -0400)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 02:29:54 +0000 (10:29 +0800)
commit66971e591e5dddd5b6dc1572ac48f4e4ab29b8e0
tree1097e6503d23fef3cde57b86070448b6b73b65ee
parent0690cb076bf63f71988a709f62a9c04660b51a4f
Add artifacts test fixture (#30300)

Closes https://github.com/go-gitea/gitea/issues/30296

- Adds a DB fixture for actions artifacts
- Adds artifacts test files
- Clears artifacts test files between each run
- Note: I initially initialized the artifacts only for artifacts tests,
but because the files are small it only takes ~8ms, so I changed it to
always run in test setup for simplicity
- Fix some otherwise flaky tests by making them not depend on previous
tests
models/fixtures/action_artifact.yml [new file with mode: 0644]
modules/storage/storage.go
tests/integration/api_actions_artifact_test.go
tests/integration/api_actions_artifact_v4_test.go
tests/test_utils.go
tests/testdata/data/artifacts/26/1/1712166500347189545.chunk [new file with mode: 0644]
tests/testdata/data/artifacts/26/19/1712348022422036662.chunk [new file with mode: 0644]
tests/testdata/data/artifacts/26/20/1712348022423431524.chunk [new file with mode: 0644]
tests/testdata/data/artifacts/27/5/1730330775594233150.chunk [new file with mode: 0644]