summaryrefslogtreecommitdiffhomepage
path: root/test/unit/applications/lang/go.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-1/+1
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-1/+1
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-3/+3
Class usage came from the unittest framework and it was always redundant after migration to the pytest. This commit removes classes from files containing tests to make them more readable and understandable.
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-17/+15
Previously, it was necessary to support older versions of Python for compatibility. F-strings were released in Python 3.6. Python 3.5 was marked as unsupported by the end of 2020, so now it's possible to start using f-strings safely for better readability and performance.
2022-12-12Tests: pretty output.Andrei Zeliankou1-2/+4
Hide expected alerts by default. Silence succesfull "go build" information.
2022-06-30Tests: minor improvements.Andrei Zeliankou1-0/+5
Added "go" availability check before trying to build an application. update_action() method used were possible and fixed bug with the relative path determination in test_static_chroot.py. Templates optimization and style fixes.
2022-04-11Tests: style.Andrei Zeliankou1-3/+4
2022-01-10Tests: using modules in Go.Max Romanov1-11/+32
2021-11-15Tests: refactored working with processes.Andrei Zeliankou1-3/+2
2021-05-25Go: fixing tests for Go 1.16.Max Romanov1-0/+1
In Go 1.16, the module-aware mode is enabled by default; to fall back to previous behavior, the GO111MODULE environment variable should be set to 'auto'. Details: https://golang.org/doc/go1.16
2020-12-21Tests: introduced a separate cache directory for Go builds.Tiago Natel de Moura1-0/+1
The Go compiler can't detect changes to C header files when compiling CGO applications, and then this leads to Go test samples being linked with wrong libunit. This patch creates a new cache directory reused throughout the test suite.
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov1-0/+6
KeyboardInterrupt re-raised.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-5/+5
2020-10-07Tests: minor fixes.Andrei Zeliankou1-1/+1
2020-10-01Tests: minor fixes.Andrei Zeliankou1-15/+1
Fixed temporary dir removing. Fixed printing path to log. Module checks moved to the separate file.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-11/+12
2020-05-28Tests: Added rootfs tests.Tiago Natel de Moura1-29/+46
2020-05-15Tests: style.Andrei Zeliankou1-0/+1
2020-03-10Tests: redirect tests output to the stdout.Andrei Zeliankou1-2/+3
2019-12-24Go: installing go module for tests into build directory.Max Romanov1-1/+1
2019-11-11Tests: added support for testing "user" and "group".Tiago Natel1-2/+3
2019-09-25Tests: fixed hanging of Go tests.Andrey Zelenkov1-12/+18
This closes #319 issue on GitHub.
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-0/+13
2019-09-16Tests: prepare_env() introduced.Andrey Zelenkov1-8/+13
2019-04-26Tests: check application configuration loading.Andrey Zelenkov1-1/+1
2019-04-22Tests: using "pass" option instead of deprecated "application".Valentin Bartenev1-1/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-0/+40