From 8465d3136969f9112e96d8eabeb89753d1314a21 Mon Sep 17 00:00:00 2001 From: Andreas Eriksson Date: Thu, 19 Sep 2024 09:27:30 +0200 Subject: [PATCH] Release v8.3.1 --- CHANGELOG.md | 2 ++ client.go | 2 +- client_test.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e4fa94..290ae6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased + +## [8.3.1] - 2024-09-19 ### Changed - Fix `privatenetwork/create` and `/details` request struct. diff --git a/client.go b/client.go index bbe7c77..eccf307 100644 --- a/client.go +++ b/client.go @@ -11,7 +11,7 @@ import ( "strings" ) -const version = "8.3.0" +const version = "8.3.1" type httpClientInterface interface { Do(*http.Request) (*http.Response, error) diff --git a/client_test.go b/client_test.go index 3b3d8c6..fb4930e 100644 --- a/client_test.go +++ b/client_test.go @@ -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.3.0", request.Header.Get("User-Agent"), "header User-Agent is correct") + assert.Equal(t, "test-application/0.0.1 glesys-go/8.3.1", request.Header.Get("User-Agent"), "header User-Agent is correct") assert.NotEmpty(t, request.Header.Get("Authorization"), "header Authorization is not empty") } @@ -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.3.0", request.Header.Get("User-Agent"), "header User-Agent is correct") + assert.Equal(t, "glesys-go/8.3.1", request.Header.Get("User-Agent"), "header User-Agent is correct") } func TestGetResponseErrorMessage(t *testing.T) {