aboutsummaryrefslogtreecommitdiff
path: root/internal/tests/version_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2024-03-16 13:40:16 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-03-16 21:29:07 -0700
commitb68ada396a342ef6ab447c2bb98d7c96aa643178 (patch)
tree731ddd05ee3a8a9665843d89de12ab180ba566c9 /internal/tests/version_test.go
parente299e821a6752150d3c1323055bda272c1916b7a (diff)
downloadv2-b68ada396a342ef6ab447c2bb98d7c96aa643178.tar.gz
v2-b68ada396a342ef6ab447c2bb98d7c96aa643178.tar.zst
v2-b68ada396a342ef6ab447c2bb98d7c96aa643178.zip
Rewrite API integration tests without build tags
Diffstat (limited to 'internal/tests/version_test.go')
-rw-r--r--internal/tests/version_test.go49
1 files changed, 0 insertions, 49 deletions
diff --git a/internal/tests/version_test.go b/internal/tests/version_test.go
deleted file mode 100644
index ebb11aa1..00000000
--- a/internal/tests/version_test.go
+++ /dev/null
@@ -1,49 +0,0 @@
-// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
-// SPDX-License-Identifier: Apache-2.0
-
-//go:build integration
-// +build integration
-
-package tests
-
-import (
- "testing"
-
- miniflux "miniflux.app/v2/client"
-)
-
-func TestVersionEndpoint(t *testing.T) {
- client := miniflux.New(testBaseURL, testAdminUsername, testAdminPassword)
- version, err := client.Version()
- if err != nil {
- t.Fatal(err)
- }
-
- if version.Version == "" {
- t.Fatal(`Version should not be empty`)
- }
-
- if version.Commit == "" {
- t.Fatal(`Commit should not be empty`)
- }
-
- if version.BuildDate == "" {
- t.Fatal(`Build date should not be empty`)
- }
-
- if version.GoVersion == "" {
- t.Fatal(`Go version should not be empty`)
- }
-
- if version.Compiler == "" {
- t.Fatal(`Compiler should not be empty`)
- }
-
- if version.Arch == "" {
- t.Fatal(`Arch should not be empty`)
- }
-
- if version.OS == "" {
- t.Fatal(`OS should not be empty`)
- }
-}