Skip to content

Commit 854525b

Browse files
authored
Release v2.0.0 (#585)
* Update module and references * update release note to trigger release
1 parent 8ab6444 commit 854525b

File tree

177 files changed

+310
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+310
-312
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
10+
## [v2.0.0]
811
- Remove device manager option that's no longer used. [#583](https://github.com/xmidt-org/webpa-common/pull/583)
912
- Delete deprecated packages no longer used in across the XMiDT org. [#584](https://github.com/xmidt-org/webpa-common/pull/584)
1013

@@ -212,7 +215,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
212215
- The first official release. We will be better about documenting changes
213216
moving forward.
214217

215-
[Unreleased]: https://github.com/xmidt-org/webpa-common/compare/v1.11.9...HEAD
218+
[Unreleased]: https://github.com/xmidt-org/webpa-common/compare/v2.0.0...HEAD
219+
[v2.0.0]: https://github.com/xmidt-org/webpa-common/compare/v1.11.9...v2.0.0
216220
[v1.11.9]: https://github.com/xmidt-org/webpa-common/compare/v1.11.8...v1.11.9
217221
[v1.11.8]: https://github.com/xmidt-org/webpa-common/compare/v1.11.7...v1.11.8
218222
[v1.11.7]: https://github.com/xmidt-org/webpa-common/compare/v1.11.6...v1.11.7

basculechecks/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/prometheus/client_golang/prometheus"
2929
"github.com/xmidt-org/themis/xlog"
3030
themisXmetrics "github.com/xmidt-org/themis/xmetrics"
31-
"github.com/xmidt-org/webpa-common/xmetrics"
31+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
3232

3333
"go.uber.org/fx"
3434
)

basculechecks/metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222

2323
"github.com/stretchr/testify/assert"
24-
"github.com/xmidt-org/webpa-common/xmetrics"
24+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
2525
)
2626

2727
func newTestAuthCapabilityCheckMeasure() *AuthCapabilityCheckMeasures {

basculemetrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/prometheus/client_golang/prometheus"
1111
"github.com/xmidt-org/themis/xlog"
1212
themisXmetrics "github.com/xmidt-org/themis/xmetrics"
13-
"github.com/xmidt-org/webpa-common/xmetrics"
13+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
1414
"go.uber.org/fx"
1515
)
1616

basculemetrics/metrics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/assert"
7-
"github.com/xmidt-org/webpa-common/xmetrics"
7+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
88
)
99

1010
func newTestAuthValidationMeasure() *AuthValidationMeasures {

bookkeeping/bookkeeper.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ package bookkeeping
22

33
import (
44
"bytes"
5-
"github.com/xmidt-org/webpa-common/logging"
6-
"github.com/xmidt-org/webpa-common/xhttp/xcontext"
75
"net/http"
86
"time"
7+
8+
"github.com/xmidt-org/webpa-common/v2/logging"
9+
"github.com/xmidt-org/webpa-common/v2/xhttp/xcontext"
910
)
1011

1112
type CapturedResponse struct {

bookkeeping/bookkeeper_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
gokithttp "github.com/go-kit/kit/transport/http"
99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
11-
"github.com/xmidt-org/webpa-common/logging"
12-
"github.com/xmidt-org/webpa-common/logging/logginghttp"
13-
"github.com/xmidt-org/webpa-common/xhttp/xcontext"
11+
"github.com/xmidt-org/webpa-common/v2/logging"
12+
"github.com/xmidt-org/webpa-common/v2/logging/logginghttp"
13+
"github.com/xmidt-org/webpa-common/v2/xhttp/xcontext"
1414
)
1515

1616
func TestEmptyBookkeeper(t *testing.T) {

bookkeeping/requestResponse.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package bookkeeping
22

33
import (
4-
"github.com/xmidt-org/webpa-common/xhttp"
54
"io/ioutil"
65
"net/http"
76
"net/textproto"
87
"strings"
8+
9+
"github.com/xmidt-org/webpa-common/v2/xhttp"
910
)
1011

1112
func Code(response CapturedResponse) []interface{} {

capacitor/capacitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync/atomic"
66
"time"
77

8-
"github.com/xmidt-org/webpa-common/clock"
8+
"github.com/xmidt-org/webpa-common/v2/clock"
99
)
1010

1111
// DefaultDelay is the default time a capacitor waits to execute the most recently

capacitor/capacitor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/mock"
1212
"github.com/stretchr/testify/require"
13-
"github.com/xmidt-org/webpa-common/clock/clocktest"
13+
"github.com/xmidt-org/webpa-common/v2/clock/clocktest"
1414
)
1515

1616
func ExampleBasicUsage() {

capacitor/capacitortest/mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package capacitortest
22

33
import (
44
"github.com/stretchr/testify/mock"
5-
"github.com/xmidt-org/webpa-common/capacitor"
5+
"github.com/xmidt-org/webpa-common/v2/capacitor"
66
)
77

88
type Mock struct {

clock/clocktest/mocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"time"
55

66
"github.com/stretchr/testify/mock"
7-
"github.com/xmidt-org/webpa-common/clock"
7+
"github.com/xmidt-org/webpa-common/v2/clock"
88
)
99

1010
// Mock is a stretchr mock for a clock. In addition to implementing clock.Interface and supplying

convey/conveyhttp/header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"net/http"
66

7-
"github.com/xmidt-org/webpa-common/convey"
7+
"github.com/xmidt-org/webpa-common/v2/convey"
88
)
99

1010
// DefaultHeaderName is the HTTP header assumed to contain Convey data when no header is supplied

convey/conveyhttp/header_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
10-
"github.com/xmidt-org/webpa-common/convey"
10+
"github.com/xmidt-org/webpa-common/v2/convey"
1111
)
1212

1313
func testHeaderTranslatorFromHeader(t *testing.T, actualHeaderName, expectedHeaderName string, actualTranslator, expectedTranslator convey.Translator) {

convey/conveymetric/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package conveymetric
22

33
import (
44
"github.com/go-kit/kit/metrics"
5-
"github.com/xmidt-org/webpa-common/convey"
5+
"github.com/xmidt-org/webpa-common/v2/convey"
66
)
77

88
// UnknownLabelValue is a constant for when key/tag can not be found in the C JSON.

convey/conveymetric/metric_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package conveymetric
33
import (
44
"testing"
55

6-
"github.com/xmidt-org/webpa-common/convey"
7-
"github.com/xmidt-org/webpa-common/xmetrics"
8-
"github.com/xmidt-org/webpa-common/xmetrics/xmetricstest"
6+
"github.com/xmidt-org/webpa-common/v2/convey"
7+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
8+
"github.com/xmidt-org/webpa-common/v2/xmetrics/xmetricstest"
99

1010
"github.com/stretchr/testify/assert"
1111
)

device/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"time"
66

77
"github.com/gorilla/websocket"
8-
"github.com/xmidt-org/webpa-common/xmetrics"
8+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
99
)
1010

1111
// Reader represents the read behavior of a device connection

device/connection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/mock"
1212
"github.com/stretchr/testify/require"
13-
"github.com/xmidt-org/webpa-common/xmetrics"
13+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
1414
)
1515

1616
func TestNewDeadline(t *testing.T) {

device/device.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"sync/atomic"
88
"time"
99

10-
"github.com/xmidt-org/webpa-common/convey"
11-
"github.com/xmidt-org/webpa-common/convey/conveymetric"
10+
"github.com/xmidt-org/webpa-common/v2/convey"
11+
"github.com/xmidt-org/webpa-common/v2/convey/conveymetric"
1212

1313
"github.com/go-kit/kit/log"
14-
"github.com/xmidt-org/webpa-common/logging"
14+
"github.com/xmidt-org/webpa-common/v2/logging"
1515
)
1616

1717
const (

device/device_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
"github.com/stretchr/testify/assert"
1010
"github.com/stretchr/testify/require"
11-
"github.com/xmidt-org/webpa-common/logging"
11+
"github.com/xmidt-org/webpa-common/v2/logging"
1212
"github.com/xmidt-org/wrp-go/v3"
1313
)
1414

device/devicegate/filter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"sync"
66

7-
"github.com/xmidt-org/webpa-common/device"
7+
"github.com/xmidt-org/webpa-common/v2/device"
88
)
99

1010
const (

device/devicegate/filterHandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010

1111
"github.com/go-kit/kit/log"
1212
"github.com/go-kit/kit/log/level"
13-
"github.com/xmidt-org/webpa-common/logging"
14-
"github.com/xmidt-org/webpa-common/xhttp"
13+
"github.com/xmidt-org/webpa-common/v2/logging"
14+
"github.com/xmidt-org/webpa-common/v2/xhttp"
1515
)
1616

1717
// ContextKey is a custom type for setting keys in a request's context

device/devicegate/filterHandler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/mock"
12-
"github.com/xmidt-org/webpa-common/logging"
12+
"github.com/xmidt-org/webpa-common/v2/logging"
1313
)
1414

1515
func TestServeHTTPGet(t *testing.T) {

device/devicegate/filter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77

88
"github.com/stretchr/testify/assert"
9-
"github.com/xmidt-org/webpa-common/device"
9+
"github.com/xmidt-org/webpa-common/v2/device"
1010
)
1111

1212
func TestFilterGateAllowConnection(t *testing.T) {

device/devicegate/mocks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package devicegate
22

33
import (
44
"github.com/stretchr/testify/mock"
5-
"github.com/xmidt-org/webpa-common/device"
5+
"github.com/xmidt-org/webpa-common/v2/device"
66
)
77

88
type mockDeviceGate struct {

device/devicehealth/health.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package devicehealth
22

33
import (
4-
"github.com/xmidt-org/webpa-common/device"
5-
"github.com/xmidt-org/webpa-common/health"
4+
"github.com/xmidt-org/webpa-common/v2/device"
5+
"github.com/xmidt-org/webpa-common/v2/health"
66
)
77

88
const (

device/devicehealth/health_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/stretchr/testify/assert"
77
"github.com/stretchr/testify/mock"
8-
"github.com/xmidt-org/webpa-common/device"
9-
"github.com/xmidt-org/webpa-common/health"
8+
"github.com/xmidt-org/webpa-common/v2/device"
9+
"github.com/xmidt-org/webpa-common/v2/health"
1010
)
1111

1212
func testListenerOnDeviceEventConnect(t *testing.T) {

device/devicehealth/mocks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package devicehealth
22

33
import (
44
"github.com/stretchr/testify/mock"
5-
"github.com/xmidt-org/webpa-common/health"
5+
"github.com/xmidt-org/webpa-common/v2/health"
66
)
77

88
type mockDispatcher struct {

device/drain/drainer.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"github.com/go-kit/kit/log/level"
1111
"github.com/go-kit/kit/metrics/discard"
1212

13-
"github.com/xmidt-org/webpa-common/device"
14-
"github.com/xmidt-org/webpa-common/device/devicegate"
15-
"github.com/xmidt-org/webpa-common/logging"
16-
"github.com/xmidt-org/webpa-common/xmetrics"
13+
"github.com/xmidt-org/webpa-common/v2/device"
14+
"github.com/xmidt-org/webpa-common/v2/device/devicegate"
15+
"github.com/xmidt-org/webpa-common/v2/logging"
16+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
1717
)
1818

1919
var (

device/drain/drainer_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/xmidt-org/webpa-common/device"
9+
"github.com/xmidt-org/webpa-common/v2/device"
1010

1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
13-
"github.com/xmidt-org/webpa-common/device/devicegate"
14-
"github.com/xmidt-org/webpa-common/logging"
15-
"github.com/xmidt-org/webpa-common/xmetrics/xmetricstest"
13+
"github.com/xmidt-org/webpa-common/v2/device/devicegate"
14+
"github.com/xmidt-org/webpa-common/v2/logging"
15+
"github.com/xmidt-org/webpa-common/v2/xmetrics/xmetricstest"
1616
)
1717

1818
type deviceInfo struct {

device/drain/mocks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/mock"
9-
"github.com/xmidt-org/webpa-common/device"
9+
"github.com/xmidt-org/webpa-common/v2/device"
1010
)
1111

1212
type mockDrainer struct {

device/drain/start.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88

99
"github.com/go-kit/kit/log/level"
1010
"github.com/gorilla/schema"
11-
"github.com/xmidt-org/webpa-common/device/devicegate"
12-
"github.com/xmidt-org/webpa-common/logging"
13-
"github.com/xmidt-org/webpa-common/xhttp"
14-
"github.com/xmidt-org/webpa-common/xhttp/converter"
11+
"github.com/xmidt-org/webpa-common/v2/device/devicegate"
12+
"github.com/xmidt-org/webpa-common/v2/logging"
13+
"github.com/xmidt-org/webpa-common/v2/xhttp"
14+
"github.com/xmidt-org/webpa-common/v2/xhttp/converter"
1515
)
1616

1717
type Start struct {

device/drain/start_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/xmidt-org/webpa-common/device/devicegate"
12+
"github.com/xmidt-org/webpa-common/v2/device/devicegate"
1313

1414
"github.com/stretchr/testify/assert"
15-
"github.com/xmidt-org/webpa-common/logging"
15+
"github.com/xmidt-org/webpa-common/v2/logging"
1616
)
1717

1818
func testStartServeHTTPDefaultLogger(t *testing.T) {

device/drain/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"net/http"
66

7-
"github.com/xmidt-org/webpa-common/xhttp"
7+
"github.com/xmidt-org/webpa-common/v2/xhttp"
88
)
99

1010
// Status returns a JSON message describing the status of the drain job

device/drain/status_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/stretchr/testify/assert"
12-
"github.com/xmidt-org/webpa-common/device/devicegate"
12+
"github.com/xmidt-org/webpa-common/v2/device/devicegate"
1313
)
1414

1515
func testStatus(t *testing.T, active bool, j Job, p Progress, expectedJSON string) {

device/drain/tracker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"sync/atomic"
55
"time"
66

7-
"github.com/xmidt-org/webpa-common/xmetrics"
7+
"github.com/xmidt-org/webpa-common/v2/xmetrics"
88
)
99

1010
// Progress represents a snapshot of what a drain job has done so far.

0 commit comments

Comments
 (0)