Skip to content

Commit 6527875

Browse files
committed
Update to mq-golang v5.0.0 for Go Modules
1 parent c399759 commit 6527875

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ go test -run TestSampleSendReceiveWithErrorHandling
133133
The IBM MQ client on which this library depends is supported on Linux and Windows, and is [now available for development use on MacOS](https://developer.ibm.com/messaging/2019/02/05/ibm-mq-macos-toolkit-for-developers/)).
134134

135135
1. Install Golang
136-
- This library has been validated with Golang v1.11.4 and v1.12.9. If you don't have Golang installed on your system you can [download it here](https://golang.org/doc/install) for MacOS, Linux or Windows
136+
- This library has been validated with Golang v1.13.11. If you don't have Golang installed on your system you can [download it here](https://golang.org/doc/install) for MacOS, Linux or Windows
137137

138138
3. Install the MQ Client library
139139
- If you have a full MQ server with a queue manager installed on your machine then you already have the client library

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module github.com/ibm-messaging/mq-golang-jms20
22

3-
go 1.11
3+
go 1.13
44

55
require (
6-
github.com/davecgh/go-spew v1.1.1 // indirect
7-
github.com/ibm-messaging/mq-golang v1.0.1-0.20190820103725-19b946c185a8
6+
github.com/ibm-messaging/mq-golang/v5 v5.0.0
87
github.com/stretchr/testify v1.4.0
98
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2-
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3-
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
42
github.com/ibm-messaging/mq-golang v1.0.1-0.20190820103725-19b946c185a8 h1:kUwSXeftVen12FRnShG+Ykhb2Kd6Cd/DbpWwbYal7j0=
53
github.com/ibm-messaging/mq-golang v1.0.1-0.20190820103725-19b946c185a8/go.mod h1:qjsZDb7m1oKnbPeDma2JVJTKgyCA91I4bcJ1qHY+gcA=
4+
github.com/ibm-messaging/mq-golang/v5 v5.0.0 h1:9J8bsDoCo60rbSgB7ZAURPG3L5Kpr+F8dYNOwQ7Qnnk=
5+
github.com/ibm-messaging/mq-golang/v5 v5.0.0/go.mod h1:ywCwmYbJOU/E0rl+z4GiNoxVMty68O+LVO39a1VMXrE=
66
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
77
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
88
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

mqjms/ConnectionFactoryImpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package mqjms
1111

1212
import (
1313
"github.com/ibm-messaging/mq-golang-jms20/jms20subset"
14-
"github.com/ibm-messaging/mq-golang/ibmmq"
14+
ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
1515
"strconv"
1616
)
1717

mqjms/ConsumerImpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package mqjms
1212
import (
1313
"errors"
1414
"github.com/ibm-messaging/mq-golang-jms20/jms20subset"
15-
"github.com/ibm-messaging/mq-golang/ibmmq"
15+
ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
1616
"strconv"
1717
"strings"
1818
)

mqjms/ContextImpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package mqjms
1111

1212
import (
1313
"github.com/ibm-messaging/mq-golang-jms20/jms20subset"
14-
"github.com/ibm-messaging/mq-golang/ibmmq"
14+
ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
1515
"strconv"
1616
)
1717

mqjms/ProducerImpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package mqjms
1212
import (
1313
"fmt"
1414
"github.com/ibm-messaging/mq-golang-jms20/jms20subset"
15-
"github.com/ibm-messaging/mq-golang/ibmmq"
15+
ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
1616
"log"
1717
"strconv"
1818
)

mqjms/TextMessageImpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"encoding/hex"
1414
"fmt"
1515
"github.com/ibm-messaging/mq-golang-jms20/jms20subset"
16-
"github.com/ibm-messaging/mq-golang/ibmmq"
16+
ibmmq "github.com/ibm-messaging/mq-golang/v5/ibmmq"
1717
"log"
1818
"strconv"
1919
"strings"

tls_connections_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ func TestAnonymousTLSConnection(t *testing.T) {
4848
defer context.Close()
4949
}
5050

51-
if errCtx != nil && errCtx.GetReason() == "MQRC_UNKNOWN_CHANNEL_NAME" {
51+
if errCtx != nil && (errCtx.GetReason() == "MQRC_UNKNOWN_CHANNEL_NAME" ||
52+
errCtx.GetReason() == "MQRC_CHANNEL_CONFIG_ERROR") {
5253
// See ./tls-samples/README.md for details on how to configure the required channel.
5354
fmt.Println("Skipping TestAnonymousTLSConnection as required channel is not defined.")
5455
return
@@ -92,7 +93,8 @@ func TestMutualTLSConnection(t *testing.T) {
9293
defer context.Close()
9394
}
9495

95-
if errCtx != nil && errCtx.GetReason() == "MQRC_UNKNOWN_CHANNEL_NAME" {
96+
if errCtx != nil && (errCtx.GetReason() == "MQRC_UNKNOWN_CHANNEL_NAME" ||
97+
errCtx.GetReason() == "MQRC_CHANNEL_CONFIG_ERROR") {
9698
// See ./tls-samples/README.md for details on how to configure the required channel.
9799
fmt.Println("Skipping TestMutualTLSConnection as required channel is not defined.")
98100
return

0 commit comments

Comments
 (0)