summaryrefslogtreecommitdiffstats
path: root/integrations/version_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Fix "data race" in testlogger (#9159)zeripath2019-11-261-1/+1
| | | | | | * Fix data race in testlogger * Update git_helper_for_declarative_test.go
* Removed unnecessary conversions (#7557)Christian Muehlhaeuser2019-07-231-1/+1
| | | No need to convert to the same type.
* Move sdk structs to modules/structs (#6905)Lunny Xiao2019-05-111-2/+2
| | | | | | | | | | | | * move sdk structs to moduels/structs * fix tests * fix fmt * fix swagger * fix vendor
* Update hard-coded version to 1.3.0-dev (#2390)Sandro Santilli2017-10-121-1/+1
| | | | | | * Use -dev (1.3.0-dev is less than 1.3.0, according to semver) * Use fake version for testing purpose
* Less verbose integration tests (#2123)Ethan Koenig2017-07-071-2/+1
| | | * Helper functions for intergration test boilerplate
* Don't show non-comments in comments API (#2001)Ethan Koenig2017-06-181-6/+2
|
* Display URLs in integration test logs (#1924)Ethan Koenig2017-06-091-2/+1
|
* improve integration test to resue models/fixtures and store git repos with ↵Lunny Xiao2017-04-281-2/+1
| | | | | | | | | | tests (#1627) * improve integration test to resue models/fixtures and store git repos with source * use gitea-integration-meta dir instead .tar.gz and cleanup every before every test * fix import package name
* Integration test framework (#1290)Ethan Koenig2017-04-251-63/+15
| | | | | | | | | | * Integration test framework * udpate drone sign * Formatting fixes and move router.go to routers/ * update sign for drone
* Add basic integration test infrastructure (and new endpoint ↵Mura Li2017-03-061-0/+82
`/api/v1/version` for testing it) (#741) * Implement '/api/v1/version' * Cleanup and various fixes * Enhance run.sh * Add install_test.go * Add parameter utils.Config for testing handlers * Re-organize TestVersion.go * Rename functions * handling process cleanup properly * Fix missing function renaming * Cleanup the 'retry' logic * Cleanup * Remove unneeded logging code * Logging messages tweaking * Logging message tweaking * Fix logging messages * Use 'const' instead of hardwired numbers * We don't really need retries anymore * Move constant ServerHttpPort to install_test.go * Restore mistakenly removed constant * Add required comments to make the linter happy. * Fix comments and naming to address linter's complaints * Detect Gitea executale version automatically * Remove tests/run.sh, `go test` suffices. * Make `make build` a prerequisite of `make test` * Do not sleep before trying * Speedup the server pinging loop * Use defined const instead of hardwired numbers * Remove redundant error handling * Use a dedicated target for running code.gitea.io/tests * Do not make 'test' depend on 'build' target * Rectify the excluded package list * Remove redundant 'exit 1' * Change the API to allow passing test.T to test handlers * Make testing.T an embedded field * Use assert.Equal to comparing results * Add copyright info * Parametrized logging output * Use tmpdir instead * Eliminate redundant casting * Remove unneeded variable * Fix last commit * Add missing copyright info * Replace fmt.Fprintf with fmt.Fprint * rename the xtest to integration-test * Use Symlink instead of hard-link for cross-device linking * Turn debugging logs on * Follow the existing framework for APIs * Output logs only if test.v is true * Re-order import statements * Enhance the error message * Fix comment which breaks the linter's rule * Rename 'integration-test' to 'e2e-test' for saving keystrokes * Add comment to avoid possible confusion * Rename tests -> integration-tests Also change back the Makefile to use `make integration-test`. * Use tests/integration for now * tests/integration -> integrations Slightly flattened directory hierarchy is better. * Update Makefile accordingly * Fix a missing change in Makefile * govendor update code.gitea.io/sdk/gitea * Fix comment of struct fields * Fix conditional nonsense * Fix missing updates regarding version string changes * Make variable naming more consistent * Check http status code * Rectify error messages