-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
contrib/bruno/miniflux/Get version and build information.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
meta { | ||
name: Get version and build information | ||
type: http | ||
seq: 42 | ||
} | ||
|
||
get { | ||
url: {{minifluxBaseURL}}/v1/version | ||
body: none | ||
auth: basic | ||
} | ||
|
||
auth:basic { | ||
username: {{minifluxUsername}} | ||
password: {{minifluxPassword}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// 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`) | ||
} | ||
} |