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

feat: add localstack module #800

Merged
merged 60 commits into from
Feb 14, 2023
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3fab103
chore: add localstack basic example
mdelapenya Jan 30, 2023
6074b03
chore: add wait for log
mdelapenya Jan 30, 2023
21493cb
chore: add Docker socket binding
mdelapenya Jan 30, 2023
5461f69
chore: support defining legacy mode
mdelapenya Jan 30, 2023
a477156
chore: support passing services and configuring them
mdelapenya Feb 1, 2023
c8b67e5
chore: simplify the creation of a localstack container request
mdelapenya Feb 1, 2023
a0eaf50
chore: support configuring the AWS region
mdelapenya Feb 1, 2023
59b8cd7
chore: expose localstack container
mdelapenya Feb 1, 2023
5013670
chore: support for retrieving the endpoint of a given service
mdelapenya Feb 1, 2023
595f73c
chore: store enabled services in the localstack container
mdelapenya Feb 1, 2023
6eab52d
chore: store the region in the localstack container
mdelapenya Feb 1, 2023
3b59457
chore: apply default region when needed
mdelapenya Feb 1, 2023
de6fea7
chore: support passing version and legacyMode as functional options
mdelapenya Feb 1, 2023
4c863d9
chore: support for overriding the container request with a functional…
mdelapenya Feb 2, 2023
902869b
chore: remove useless method for retrieving the internal endpoint of …
mdelapenya Feb 2, 2023
f3c1754
chore: simplify unit tests
mdelapenya Feb 2, 2023
5ed9cc5
chore: create aws session using v1
mdelapenya Feb 2, 2023
bffe24a
chore: add S3 tests
mdelapenya Feb 2, 2023
c94594f
chore: rename start localstack function
mdelapenya Feb 2, 2023
6c83776
chore: define default functions as vars
mdelapenya Feb 2, 2023
fa939b9
chore: add tests for legacy mode
mdelapenya Feb 2, 2023
6e131ba
chore: move the Session code to the tests
mdelapenya Feb 2, 2023
900b825
docs: use S3 in the docs
mdelapenya Feb 2, 2023
1adcfa2
Merge branch 'main' into localstack-module
mdelapenya Feb 7, 2023
5bd4138
fix: read the expected daemon host from the provider
mdelapenya Feb 7, 2023
ddb3f83
chore: move v1 tests to its own test package
mdelapenya Feb 7, 2023
0f90131
feat: add example test for S3 using v2
mdelapenya Feb 7, 2023
178b9e9
chore: store localstack credentials in a struct
mdelapenya Feb 7, 2023
23d553c
feat: create a functional opt for passing the AWS credentials
mdelapenya Feb 7, 2023
2db880d
chore: define defaults for the AWS credentials
mdelapenya Feb 7, 2023
c9c551b
chore: include a test for overriding the image
mdelapenya Feb 8, 2023
87ec202
chore: remove withCredentials
mdelapenya Feb 8, 2023
11a6da9
chore: remove withRegion
mdelapenya Feb 8, 2023
767a073
chore: remove withVersion
mdelapenya Feb 8, 2023
4d70f27
chore: rename configure method
mdelapenya Feb 8, 2023
6d51794
chore: reorder container configuration
mdelapenya Feb 8, 2023
a79b3d2
chore: move to types
mdelapenya Feb 8, 2023
2639aa5
chor: export structs
mdelapenya Feb 8, 2023
8cbf21b
docs: document exported functions
mdelapenya Feb 8, 2023
7be6c70
docs: document how to create localstack container
mdelapenya Feb 8, 2023
91139cf
docs: reorder
mdelapenya Feb 8, 2023
55ce21c
docs: document containerRequest override
mdelapenya Feb 8, 2023
97abda8
docs: document the container functional opts
mdelapenya Feb 8, 2023
dfee950
chore: be more explicit in comment
mdelapenya Feb 9, 2023
8f1a256
chore: convert into real module
mdelapenya Feb 10, 2023
9f01c71
chore: remove support for legacy mode
mdelapenya Feb 10, 2023
4a435a3
chore: move tests
mdelapenya Feb 10, 2023
40e4f65
fix: update module paths
mdelapenya Feb 10, 2023
5ce1ce6
fix: update tests after moving an example to modules
mdelapenya Feb 10, 2023
bb4e2a8
chore: bump default version to 1.3.1
mdelapenya Feb 13, 2023
f2026e9
chore: remove Port from the Service struct
mdelapenya Feb 13, 2023
f3da875
fix: wrong relative path to the docs
mdelapenya Feb 14, 2023
cca2a3b
chore: remove any code to Services
mdelapenya Feb 14, 2023
87b2021
chore: adjust unit tests
mdelapenya Feb 14, 2023
c7a7896
docs: include tests
mdelapenya Feb 14, 2023
a6b26dd
chore: use waitFor HTTP health
mdelapenya Feb 14, 2023
6ccfb56
Merge branch 'main' into localstack-module
mdelapenya Feb 14, 2023
8bba30b
chore: bump to latest version
mdelapenya Feb 14, 2023
4894746
chore: go mod examples
mdelapenya Feb 14, 2023
b325ffc
chore: rename GH action workflow file
mdelapenya Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove useless method for retrieving the internal endpoint of …
…a service
  • Loading branch information
mdelapenya committed Feb 2, 2023
commit 902869b10c52f45d1ae20e7dfcb61476ef1b0fa5
10 changes: 0 additions & 10 deletions examples/localstack/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package localstack

import (
"context"
"fmt"
"strings"

@@ -30,15 +29,6 @@ type Service struct {
port int
}

func (s Service) endpoint(ctx context.Context, provider *testcontainers.DockerProvider) (string, error) {
host, err := provider.DaemonHost(ctx)
if err != nil {
return "", err
}

return fmt.Sprintf("%s:%d", host, s.servicePort()), nil
}

// Name returns the name of the service
func (s Service) Name() string {
return s.name