[PR #1627] [MERGED] improve integration test to resue models/fixtures and store git repos with tests #15958

Closed
opened 2025-11-02 11:58:58 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1627
Author: @lunny
Created: 4/27/2017
Status: Merged
Merged: 4/28/2017
Merged by: @lunny

Base: masterHead: lunny/improve_integration_meta_data


📝 Commits (3)

  • ae98ecc improve integration test to resue models/fixtures and store git repos with source
  • 6628b1d use gitea-integration-meta dir instead .tar.gz and cleanup every before every test
  • c397f7f fix import package name

📊 Changes

33 files changed (+582 additions, -21 deletions)

View changed files

📝 .gitignore (+2 -1)
📝 Makefile (+3 -9)
integrations/gitea-integration-meta/LICENSE (+21 -0)
integrations/gitea-integration-meta/README.md (+2 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/HEAD (+1 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/config (+4 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/description (+1 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/applypatch-msg.sample (+15 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/commit-msg.sample (+24 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-receive (+7 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-receive.d/gitea (+2 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-update.sample (+8 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-applypatch.sample (+14 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-commit.sample (+49 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-push.sample (+53 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-rebase.sample (+169 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-receive (+7 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-receive.d/gitea (+2 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/prepare-commit-msg.sample (+36 -0)
integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/update (+7 -0)

...and 13 more files

📄 Description

Since there are two fixtures, I will remove the fixtures in the integration.tar.gz and only keep git repos in the .tar.gz. Also I keep the .tar.gz with the tests and not download from network so that we can keep the meta data with the tests synchronism.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1627 **Author:** [@lunny](https://github.com/lunny) **Created:** 4/27/2017 **Status:** ✅ Merged **Merged:** 4/28/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/improve_integration_meta_data` --- ### 📝 Commits (3) - [`ae98ecc`](https://github.com/go-gitea/gitea/commit/ae98eccb30aa6e062fe40ba90137ecbacd3283ab) improve integration test to resue models/fixtures and store git repos with source - [`6628b1d`](https://github.com/go-gitea/gitea/commit/6628b1dfd13ab859de626201f6b88202a913e93e) use gitea-integration-meta dir instead .tar.gz and cleanup every before every test - [`c397f7f`](https://github.com/go-gitea/gitea/commit/c397f7ff4d0c1c1caad8ebb6d9a3948766e51884) fix import package name ### 📊 Changes **33 files changed** (+582 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -1) 📝 `Makefile` (+3 -9) ➕ `integrations/gitea-integration-meta/LICENSE` (+21 -0) ➕ `integrations/gitea-integration-meta/README.md` (+2 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/HEAD` (+1 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/config` (+4 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/description` (+1 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/applypatch-msg.sample` (+15 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/commit-msg.sample` (+24 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-receive` (+7 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-receive.d/gitea` (+2 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/post-update.sample` (+8 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-applypatch.sample` (+14 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-commit.sample` (+49 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-push.sample` (+53 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-rebase.sample` (+169 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-receive` (+7 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/pre-receive.d/gitea` (+2 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/prepare-commit-msg.sample` (+36 -0) ➕ `integrations/gitea-integration-meta/gitea-repositories/user2/repo1.git/hooks/update` (+7 -0) _...and 13 more files_ </details> ### 📄 Description Since there are two fixtures, I will remove the fixtures in the integration.tar.gz and only keep git repos in the .tar.gz. Also I keep the `.tar.gz` with the tests and not download from network so that we can keep the meta data with the tests synchronism. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:58:58 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15958