Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrades #655

Merged
merged 17 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

- name: Starting service
run: |
docker ps -a
go build .
nohup ./service &
working-directory: ./examples/service
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: CI on Go ${{ matrix.go-image-version}}
strategy:
matrix:
go-image-version: ["1.20"]
go-image-version: ["1.21"]
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ matrix.go-image-version }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The entry point of the framework is the `Service`. The `Service` uses `Component
- logging

`Patron` provides the same defaults for making the usage as simple as possible.
`Patron` needs Go 1.20 as a minimum.
`Patron` needs Go 1.21 as a minimum.

## Table of Contents

Expand Down
2 changes: 1 addition & 1 deletion client/kafka/async_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"fmt"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
patronerrors "github.com/beatlabs/patron/errors"
"github.com/beatlabs/patron/trace"
"github.com/opentracing/opentracing-go"
Expand Down
2 changes: 1 addition & 1 deletion client/kafka/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"testing"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
"github.com/opentracing/opentracing-go/mocktracer"
Expand Down
2 changes: 1 addition & 1 deletion client/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"os"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/correlation"
patronerrors "github.com/beatlabs/patron/errors"
"github.com/beatlabs/patron/internal/validation"
Expand Down
2 changes: 1 addition & 1 deletion client/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/correlation"
"github.com/beatlabs/patron/trace"
"github.com/opentracing/opentracing-go"
Expand Down
2 changes: 1 addition & 1 deletion client/kafka/sync_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
patronerrors "github.com/beatlabs/patron/errors"
"github.com/beatlabs/patron/trace"
"github.com/opentracing/opentracing-go"
Expand Down
7 changes: 5 additions & 2 deletions client/mqtt/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ func createSubscriber(t *testing.T, u *url.URL, router paho.Router) (*autopaho.C
ConnectTimeout: 1 * time.Second,
OnConnectionUp: func(cm *autopaho.ConnectionManager, _ *paho.Connack) {
_, err := cm.Subscribe(context.Background(), &paho.Subscribe{
Subscriptions: map[string]paho.SubscribeOptions{
testTopic: {QoS: 1},
Subscriptions: []paho.SubscribeOptions{
{
Topic: testTopic,
QoS: 1,
},
},
})
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/group/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"strings"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/component/async/kafka"
"github.com/beatlabs/patron/internal/validation"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/group/group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/component/async/kafka"
kafkacmp "github.com/beatlabs/patron/component/kafka"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/group/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/component/async/kafka"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/correlation"
"github.com/beatlabs/patron/encoding"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/correlation"
"github.com/beatlabs/patron/encoding"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/encoding"
"github.com/beatlabs/patron/encoding/json"
)
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/encoding"
"github.com/beatlabs/patron/encoding/json"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/simple/duration_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/simple/duration_kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
)

type outOfRangeOffsetError struct {
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/simple/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async/kafka"
kafkacmp "github.com/beatlabs/patron/component/kafka"
testkafka "github.com/beatlabs/patron/test/kafka"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async"
"github.com/beatlabs/patron/component/async/kafka"
"github.com/beatlabs/patron/internal/validation"
Expand Down
2 changes: 1 addition & 1 deletion component/async/kafka/simple/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/component/async/kafka"
kafkacmp "github.com/beatlabs/patron/component/kafka"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/correlation"
patronErrors "github.com/beatlabs/patron/errors"
"github.com/beatlabs/patron/internal/validation"
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/component_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/correlation"
"github.com/beatlabs/patron/encoding"
"github.com/beatlabs/patron/encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
kafkaclient "github.com/beatlabs/patron/client/kafka"
"github.com/beatlabs/patron/correlation"
testkafka "github.com/beatlabs/patron/test/kafka"
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"os"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/opentracing/opentracing-go"
)

Expand Down
2 changes: 1 addition & 1 deletion component/kafka/kafka_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron/correlation"
"github.com/opentracing/opentracing-go/mocktracer"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion component/kafka/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"golang.org/x/exp/slog"
)

Expand Down
2 changes: 1 addition & 1 deletion component/kafka/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/stretchr/testify/assert"
)

Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
depends_on:
- zookeeper
rabbitmq:
image: docker.io/bitnami/rabbitmq:3.9
image: docker.io/bitnami/rabbitmq:latest
ports:
- '4369:4369'
- '5551:5551'
Expand All @@ -47,7 +47,7 @@ services:
expose:
- '3306'
volumes:
- mysql-db:/var/lib/mysql
- mysql_data:/var/lib/mysql
redis:
image: docker.io/bitnami/redis:6.2
environment:
Expand All @@ -57,7 +57,7 @@ services:
volumes:
- 'redis_data:/bitnami/redis/data'
localstack:
image: localstack/localstack:2.1
image: localstack/localstack:2.3.2
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
Expand Down Expand Up @@ -97,6 +97,7 @@ services:
volumes:
rabbitmq_data:
driver: local
mysql-db:
mysql_data:
driver: local
redis_data:
driver: local
2 changes: 1 addition & 1 deletion examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/sqs"
patronamqp "github.com/beatlabs/patron/client/amqp"
Expand Down
4 changes: 2 additions & 2 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2.1'

services:
rabbitmq:
image: docker.io/bitnami/rabbitmq:3.9
image: docker.io/bitnami/rabbitmq:latest
ports:
- '4369:4369'
- '5551:5551'
Expand Down Expand Up @@ -35,7 +35,7 @@ services:
depends_on:
- zookeeper
localstack:
image: localstack/localstack:2.1
image: localstack/localstack:2.3.2
ports:
- "127.0.0.1:4566:4566" # LocalStack Gateway
- "127.0.0.1:4510-4559:4510-4559" # external services port range
Expand Down
2 changes: 1 addition & 1 deletion examples/service/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"time"

"github.com/Shopify/sarama"
"github.com/IBM/sarama"
"github.com/beatlabs/patron"
"github.com/beatlabs/patron/component/kafka"
"github.com/beatlabs/patron/examples"
Expand Down
Loading
Loading