Skip to content

Commit

Permalink
Release v7.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
norrland committed May 25, 2023
1 parent 5a55e23 commit a98995f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased

## [7.1.0] - 2023-05-25
### Added
- Implement user/login
- Implement DNSDomains Export
- Implement DNSDomains GenerateAuthCode

### Changed
- Tweaking http functions to work with user/login
- Update dependencies
- Update Go version for GH Actions

## [7.0.1] - 2023-03-30
- Set correct major version in go.mod

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 = "7.0.1"
const version = "7.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/7.0.1", request.Header.Get("User-Agent"), "header User-Agent is correct")
assert.Equal(t, "test-application/0.0.1 glesys-go/7.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/7.0.1", request.Header.Get("User-Agent"), "header User-Agent is correct")
assert.Equal(t, "glesys-go/7.1.0", request.Header.Get("User-Agent"), "header User-Agent is correct")
}

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

0 comments on commit a98995f

Please sign in to comment.