Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit e738348

Browse files
authored
Update amqp and other dependencies (#153)
* update dependencies switched pack.ag/amqp to github.com/Azure/go-amqp updated azure-amqp-common-go to v3 update Go SDK dependencies to latest versions * fix test output, ignore .vscode directory * update release notes and version info
1 parent e8de306 commit e738348

26 files changed

+94
-178
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ terraform.tfvars
2727
.idea
2828

2929
vendor/
30+
31+
.vscode/

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ If you need to install Go, follow [the official instructions](https://golang.org
3232

3333
Find up-to-date examples and documentation on [godoc.org](https://godoc.org/github.com/Azure/azure-service-bus-go#pkg-examples).
3434

35+
### Running tests
36+
37+
Most tests require a properly configured service bus in Azure. The easiest way to set this up is to use the [Terraform](https://www.terraform.io/) deployment script.
38+
Running the integration tests will take longer than the default 10 mintues, please use a larger timeout `go test -timeout 30m`.
39+
3540
### Have questions?
3641

3742
The developers of this library are all active on the [Gopher Slack](https://gophers.slack.com), it is likely easiest to

batch.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package servicebus
22

33
import (
4-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
5-
"pack.ag/amqp"
4+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
5+
"github.com/Azure/go-amqp"
66
)
77

88
type (

batch_disposition.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"fmt"
66

7-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
7+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
88
)
99

1010
type (

batch_disposition_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"testing"
77

8-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
8+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
99
"github.com/stretchr/testify/assert"
1010
)
1111

changelog.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Change Log
22

3-
## `head`
3+
## `v0.10.0`
44
- add retry when Sender fails to recover
5+
- update settlement mode on sender
6+
- added support for creating a namespace via MSI
7+
- replace pack.am/amqp with github.com/Azure/go-amqp
8+
- bump common to version v3.0.0
59

610
## `v0.9.1`
711
- bump common version to v2.1.0

duplicate_detection_example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"time"
88

9-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
9+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
1010

1111
"github.com/Azure/azure-service-bus-go"
1212
)

errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/Azure/azure-amqp-common-go/v2/rpc"
7+
"github.com/Azure/azure-amqp-common-go/v3/rpc"
88
)
99

1010
type (

go.mod

+8-12
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@ module github.com/Azure/azure-service-bus-go
33
go 1.12
44

55
require (
6-
github.com/Azure/azure-amqp-common-go/v2 v2.1.0
7-
github.com/Azure/azure-sdk-for-go v30.1.0+incompatible
8-
github.com/Azure/go-autorest v12.0.0+incompatible
6+
github.com/Azure/azure-amqp-common-go/v3 v3.0.0
7+
github.com/Azure/azure-sdk-for-go v37.1.0+incompatible
8+
github.com/Azure/go-amqp v0.12.6
9+
github.com/Azure/go-autorest/autorest v0.9.3
10+
github.com/Azure/go-autorest/autorest/adal v0.8.1
11+
github.com/Azure/go-autorest/autorest/date v0.2.0
12+
github.com/Azure/go-autorest/autorest/to v0.3.0
13+
github.com/Azure/go-autorest/autorest/validation v0.2.0 // indirect
914
github.com/devigned/tab v0.1.1
10-
github.com/fortytw2/leaktest v1.3.0 // indirect
11-
github.com/grpc-ecosystem/grpc-gateway v1.9.2 // indirect
1215
github.com/joho/godotenv v1.3.0
1316
github.com/mitchellh/mapstructure v1.1.2
14-
github.com/pkg/errors v0.8.1 // indirect
1517
github.com/stretchr/objx v0.2.0 // indirect
1618
github.com/stretchr/testify v1.3.0
17-
go.opencensus.io v0.22.0 // indirect
1819
golang.org/x/net v0.0.0-20190619014844-b5b0513f8c1b
19-
golang.org/x/sys v0.0.0-20190620070143-6f217b454f45 // indirect
20-
google.golang.org/api v0.6.0 // indirect
21-
google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601 // indirect
22-
google.golang.org/grpc v1.21.1 // indirect
23-
pack.ag/amqp v0.12.1
2420
)

go.sum

+35-127
Large diffs are not rendered by default.

internal/test/test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"os"
3030
"time"
3131

32-
"github.com/Azure/azure-amqp-common-go/v2/conn"
32+
"github.com/Azure/azure-amqp-common-go/v3/conn"
3333
rm "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2017-05-10/resources"
3434
sbmgmt "github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2017-04-01/servicebus"
3535
"github.com/Azure/go-autorest/autorest"
@@ -75,7 +75,7 @@ func (suite *BaseSuite) SetupSuite() {
7575
setFromEnv := func(key string, target *string) {
7676
v := os.Getenv(key)
7777
if v == "" {
78-
suite.FailNowf("Environment variable %q required for integration tests.", key)
78+
suite.FailNowf("missing environment variable", "%q required for integration tests.", key)
7979
}
8080

8181
*target = v

message.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929
"strings"
3030
"time"
3131

32-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
32+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3333
"github.com/devigned/tab"
3434
"github.com/mitchellh/mapstructure"
35-
"pack.ag/amqp"
35+
"github.com/Azure/go-amqp"
3636
)
3737

3838
type (

message_session.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"sync"
88
"time"
99

10-
"github.com/Azure/azure-amqp-common-go/v2/rpc"
10+
"github.com/Azure/azure-amqp-common-go/v3/rpc"
1111
"github.com/devigned/tab"
12-
"pack.ag/amqp"
12+
"github.com/Azure/go-amqp"
1313
)
1414

1515
// MessageSession represents and allows for interaction with a Service Bus Session.

message_session_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
8+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
1111
)

message_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package servicebus
33
import (
44
"time"
55

6-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
6+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
77
"github.com/Azure/go-autorest/autorest/to"
88
"github.com/mitchellh/mapstructure"
9-
"pack.ag/amqp"
9+
"github.com/Azure/go-amqp"
1010
)
1111

1212
func (suite *serviceBusSuite) TestMapStructureEncode() {

mgmt.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"strings"
3535
"time"
3636

37-
"github.com/Azure/azure-amqp-common-go/v2/auth"
37+
"github.com/Azure/azure-amqp-common-go/v3/auth"
3838
"github.com/devigned/tab"
3939
)
4040

namespace.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import (
2929
"runtime"
3030
"strings"
3131

32-
"github.com/Azure/azure-amqp-common-go/v2/aad"
33-
"github.com/Azure/azure-amqp-common-go/v2/auth"
34-
"github.com/Azure/azure-amqp-common-go/v2/cbs"
35-
"github.com/Azure/azure-amqp-common-go/v2/conn"
36-
"github.com/Azure/azure-amqp-common-go/v2/sas"
32+
"github.com/Azure/azure-amqp-common-go/v3/aad"
33+
"github.com/Azure/azure-amqp-common-go/v3/auth"
34+
"github.com/Azure/azure-amqp-common-go/v3/cbs"
35+
"github.com/Azure/azure-amqp-common-go/v3/conn"
36+
"github.com/Azure/azure-amqp-common-go/v3/sas"
37+
"github.com/Azure/go-amqp"
3738
"github.com/Azure/go-autorest/autorest/azure"
3839
"golang.org/x/net/websocket"
39-
"pack.ag/amqp"
4040
)
4141

4242
const (
@@ -49,7 +49,7 @@ const (
4949
//`
5050

5151
// Version is the semantic version number
52-
Version = "0.9.1"
52+
Version = "0.10.0"
5353

5454
rootUserAgent = "/golang-service-bus"
5555
)

queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"strings"
3030
"sync"
3131

32-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
32+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3333
"github.com/Azure/go-autorest/autorest/date"
3434
"github.com/devigned/tab"
3535
)

queue_examples_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"time"
1010

11-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
11+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
1212
"github.com/Azure/azure-service-bus-go"
1313
"github.com/joho/godotenv"
1414
)

receiver.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727
"sync"
2828
"time"
2929

30-
"github.com/Azure/azure-amqp-common-go/v2"
30+
"github.com/Azure/azure-amqp-common-go/v3"
3131
"github.com/devigned/tab"
32-
"pack.ag/amqp"
32+
"github.com/Azure/go-amqp"
3333
)
3434

3535
type (

rpc.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ import (
3030
"sync"
3131
"time"
3232

33-
"github.com/Azure/azure-amqp-common-go/v2/rpc"
34-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
33+
"github.com/Azure/azure-amqp-common-go/v3/rpc"
34+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3535
"github.com/devigned/tab"
36-
"pack.ag/amqp"
36+
"github.com/Azure/go-amqp"
3737
)
3838

3939
type (

scheduled_message_examples_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package servicebus_test
33
import (
44
"context"
55
"fmt"
6-
"github.com/Azure/azure-service-bus-go"
76
"os"
87
"time"
8+
9+
"github.com/Azure/azure-service-bus-go"
910
)
1011

1112
func Example_scheduledMessage() {

sender.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ package servicebus
2424

2525
import (
2626
"context"
27-
common "github.com/Azure/azure-amqp-common-go/v2"
27+
common "github.com/Azure/azure-amqp-common-go/v3"
2828
"sync"
2929
"time"
3030

31-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
31+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3232
"github.com/devigned/tab"
33-
"pack.ag/amqp"
33+
"github.com/Azure/go-amqp"
3434
)
3535

3636
type (

session.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727
"sync"
2828
"sync/atomic"
2929

30-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
30+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3131
"github.com/devigned/tab"
32-
"pack.ag/amqp"
32+
"github.com/Azure/go-amqp"
3333
)
3434

3535
type (

subscription_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"testing"
3232
"time"
3333

34-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
34+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3535
"github.com/Azure/azure-sdk-for-go/services/servicebus/mgmt/2015-08-01/servicebus"
3636
"github.com/stretchr/testify/assert"
3737
"github.com/stretchr/testify/require"

topic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"strings"
3030
"sync"
3131

32-
"github.com/Azure/azure-amqp-common-go/v2/uuid"
32+
"github.com/Azure/azure-amqp-common-go/v3/uuid"
3333
"github.com/Azure/go-autorest/autorest/date"
3434
"github.com/devigned/tab"
3535
)

0 commit comments

Comments
 (0)