Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8.1.0 #104

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased

## [8.1.0] - 2024-01-15
### Added
- ServerDisks - Implement `/serverdisk` endpoint.

Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
)

const version = "8.0.0"
const version = "8.1.0"

type httpClientInterface interface {
Do(*http.Request) (*http.Response, error)
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestRequestHasCorrectHeaders(t *testing.T) {
assert.NoError(t, err)

assert.Equal(t, "application/json", request.Header.Get("Content-Type"), "header Content-Type is correct")
assert.Equal(t, "test-application/0.0.1 glesys-go/8.0.0", request.Header.Get("User-Agent"), "header User-Agent is correct")
assert.Equal(t, "test-application/0.0.1 glesys-go/8.1.0", request.Header.Get("User-Agent"), "header User-Agent is correct")

assert.NotEmpty(t, request.Header.Get("Authorization"), "header Authorization is not empty")
}
Expand All @@ -43,7 +43,7 @@ func TestEmptyUserAgent(t *testing.T) {

request, err := client.newRequest(context.Background(), "GET", "/", nil)
assert.NoError(t, err)
assert.Equal(t, "glesys-go/8.0.0", request.Header.Get("User-Agent"), "header User-Agent is correct")
assert.Equal(t, "glesys-go/8.1.0", request.Header.Get("User-Agent"), "header User-Agent is correct")
}

func TestGetResponseErrorMessage(t *testing.T) {
Expand Down