Skip to content

Commit ac8bcc0

Browse files
committed
rename extension from aws-replicator to aws-proxy
1 parent b4576b4 commit ac8bcc0

47 files changed

Lines changed: 75 additions & 89 deletions

Some content is hidden

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

.github/workflows/aws-replicator.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: LocalStack AWS Replicator Extension Tests
1+
name: LocalStack AWS Proxy Extension Tests
22

33
on:
44
push:
55
paths:
6-
- aws-replicator/**
6+
- aws-proxy/**
77
branches:
88
- main
99
pull_request:
1010
paths:
11-
- .github/workflows/aws-replicator.yml
12-
- aws-replicator/**
11+
- .github/workflows/aws-proxy.yml
12+
- aws-proxy/**
1313
workflow_dispatch:
1414

1515
jobs:
@@ -49,7 +49,7 @@ jobs:
4949
# build and install extension
5050
localstack extensions init
5151
(
52-
cd aws-replicator
52+
cd aws-proxy
5353
make install
5454
. .venv/bin/activate
5555
pip install --upgrade --pre localstack localstack-ext
@@ -68,7 +68,7 @@ jobs:
6868
6969
- name: Run linter
7070
run: |
71-
cd aws-replicator
71+
cd aws-proxy
7272
(. .venv/bin/activate; pip install --upgrade --pre localstack localstack-ext)
7373
make lint
7474
@@ -78,7 +78,7 @@ jobs:
7878
AWS_ACCESS_KEY_ID: ${{ secrets.TEST_AWS_ACCESS_KEY_ID }}
7979
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
8080
run: |
81-
cd aws-replicator
81+
cd aws-proxy
8282
make test
8383
8484
- name: Deploy and test sample app
@@ -88,7 +88,7 @@ jobs:
8888
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_AWS_SECRET_ACCESS_KEY }}
8989
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
9090
run: |
91-
cd aws-replicator/example
91+
cd aws-proxy/example
9292
make test
9393
9494
- name: Print LocalStack logs

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
### Extensions ###
1313
######################
1414

15-
/aws-replicator/ @whummer
15+
/aws-proxy/ @whummer @nik-localstack
1616
/diagnosis-viewer/ @thrau @silv-io
1717
/hello-world/ @lukqw @thrau
1818
/http-bin/ @thrau @dominikschubert

README.md

Lines changed: 9 additions & 9 deletions

aws-proxy/MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
recursive-include aws_proxy *.html
2+
recursive-include aws_proxy *.js
3+
recursive-include aws_proxy *.png
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ dist: venv
4040

4141
build: ## Build the extension
4242
mkdir -p build
43-
cp -r setup.py setup.cfg README.md aws_replicator build/
43+
cp -r setup.py setup.cfg README.md aws_proxy build/
4444
(cd build && python setup.py sdist)
4545

46-
enable: $(wildcard ./build/dist/localstack_extension_aws_replicator-*.tar.gz) ## Enable the extension in LocalStack
46+
enable: $(wildcard ./build/dist/localstack_extension_aws_proxy-*.tar.gz) ## Enable the extension in LocalStack
4747
$(VENV_RUN); \
48-
pip uninstall --yes localstack-extension-aws-replicator; \
48+
pip uninstall --yes localstack-extension-aws-proxy; \
4949
localstack extensions -v install file://$?
5050

5151
publish: clean-dist venv dist
Lines changed: 5 additions & 5 deletions

aws-proxy/aws_proxy/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name = "aws-proxy"
File renamed without changes.

aws-replicator/aws_replicator/client/auth_proxy.py renamed to aws-proxy/aws_proxy/client/auth_proxy.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
from localstack.utils.strings import short_uid, to_bytes, to_str, truncate
3030
from requests import Response
3131

32-
from aws_replicator import config as repl_config
33-
from aws_replicator.client.utils import truncate_content
34-
from aws_replicator.config import HANDLER_PATH_PROXIES
35-
from aws_replicator.shared.constants import HEADER_HOST_ORIGINAL
36-
from aws_replicator.shared.models import AddProxyRequest, ProxyConfig
32+
from aws_proxy import config as repl_config
33+
from aws_proxy.client.utils import truncate_content
34+
from aws_proxy.config import HANDLER_PATH_PROXIES
35+
from aws_proxy.shared.constants import HEADER_HOST_ORIGINAL
36+
from aws_proxy.shared.models import AddProxyRequest, ProxyConfig
3737

3838
from .http2_server import run_server
3939

@@ -55,9 +55,9 @@
5555
LOG.setLevel(logging.DEBUG)
5656

5757
# TODO make configurable
58-
CLI_PIP_PACKAGE = "localstack-extension-aws-replicator"
58+
CLI_PIP_PACKAGE = "localstack-extension-aws-proxy"
5959
# note: enable the line below temporarily for testing:
60-
# CLI_PIP_PACKAGE = "git+https://github.com/localstack/localstack-extensions/@branch#egg=localstack-extension-aws-replicator&subdirectory=aws-replicator"
60+
# CLI_PIP_PACKAGE = "git+https://github.com/localstack/localstack-extensions/@branch#egg=localstack-extension-aws-proxy&subdirectory=aws-proxy"
6161

6262
CONTAINER_NAME_PREFIX = "ls-aws-proxy-"
6363
CONTAINER_CONFIG_FILE = "/tmp/ls.aws.proxy.yml"

0 commit comments

Comments
 (0)