[PR #741] [MERGED] Add basic integration test infrastructure (and new endpoint /api/v1/version for testing it) #15552

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/741
Author: @typeless
Created: 1/24/2017
Status: Merged
Merged: 3/6/2017
Merged by: @lunny

Base: masterHead: add-endpoint-for-version


📝 Commits (10+)

  • 5a73043 Implement '/api/v1/version'
  • 447b802 Cleanup and various fixes
  • 6ab4622 Enhance run.sh
  • 1f41c0b Add install_test.go
  • 4e41eb1 Add parameter utils.Config for testing handlers
  • 8ab6fb9 Re-organize TestVersion.go
  • 1f7a314 Rename functions
  • fcf470c handling process cleanup properly
  • 86f12e1 Fix missing function renaming
  • 8a98268 Cleanup the 'retry' logic

📊 Changes

8 files changed (+341 additions, -4 deletions)

View changed files

📝 Makefile (+6 -1)
integrations/install_test.go (+97 -0)
integrations/internal/utils/utils.go (+125 -0)
integrations/version_test.go (+82 -0)
📝 routers/api/v1/api.go (+1 -0)
routers/api/v1/misc/version.go (+16 -0)
📝 vendor/code.gitea.io/sdk/gitea/miscellaneous.go (+11 -0)
📝 vendor/vendor.json (+3 -3)

📄 Description

The primary effort of the PR is to implement a prototype of (poor man's) automated functional tests for Gitea. It currently tests /install and /version only.

For #63


🔄 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/741 **Author:** [@typeless](https://github.com/typeless) **Created:** 1/24/2017 **Status:** ✅ Merged **Merged:** 3/6/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `add-endpoint-for-version` --- ### 📝 Commits (10+) - [`5a73043`](https://github.com/go-gitea/gitea/commit/5a73043c4e64798c3ed6cde835213a5011ca7e53) Implement '/api/v1/version' - [`447b802`](https://github.com/go-gitea/gitea/commit/447b802f9afee4cbdab843b4ac07ad40c549ca75) Cleanup and various fixes - [`6ab4622`](https://github.com/go-gitea/gitea/commit/6ab462250812675166c880acd157c9db59b37abb) Enhance run.sh - [`1f41c0b`](https://github.com/go-gitea/gitea/commit/1f41c0b4de014ffdd42edcfd8fe146e9163e97b9) Add install_test.go - [`4e41eb1`](https://github.com/go-gitea/gitea/commit/4e41eb1f46bf854a33b21066fd2304b6a16f5a7a) Add parameter utils.Config for testing handlers - [`8ab6fb9`](https://github.com/go-gitea/gitea/commit/8ab6fb9043d9a9af00c29608aea12156ab0fa1aa) Re-organize TestVersion.go - [`1f7a314`](https://github.com/go-gitea/gitea/commit/1f7a314535ea46de6b70f83597c37f9e1314887d) Rename functions - [`fcf470c`](https://github.com/go-gitea/gitea/commit/fcf470c5184fc8ac34b7a6de1bff44f2c4a358a9) handling process cleanup properly - [`86f12e1`](https://github.com/go-gitea/gitea/commit/86f12e1ef399a1f4d8f1f714fc610cc74e1377a0) Fix missing function renaming - [`8a98268`](https://github.com/go-gitea/gitea/commit/8a9826873934c8127516e3ac6f825920aaaa3a74) Cleanup the 'retry' logic ### 📊 Changes **8 files changed** (+341 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+6 -1) ➕ `integrations/install_test.go` (+97 -0) ➕ `integrations/internal/utils/utils.go` (+125 -0) ➕ `integrations/version_test.go` (+82 -0) 📝 `routers/api/v1/api.go` (+1 -0) ➕ `routers/api/v1/misc/version.go` (+16 -0) 📝 `vendor/code.gitea.io/sdk/gitea/miscellaneous.go` (+11 -0) 📝 `vendor/vendor.json` (+3 -3) </details> ### 📄 Description The primary effort of the PR is to implement a prototype of (poor man's) automated functional tests for Gitea. It currently tests `/install` and `/version` only. For #63 --- <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:49:14 -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#15552