Skip to content

Commit 7afc4c4

Browse files
authored
Rename test directory (#21)
* Rename top-level test → tests
1 parent c1c9b29 commit 7afc4c4

30 files changed

+33
-33
lines changed

.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
**/node_modules/
55
**/dist/
66

7-
test/integration/*
8-
!test/integration/resources/
9-
!test/integration/test-handlers/
7+
tests/integration/*
8+
!tests/integration/resources/
9+
!tests/integration/test-handlers/

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
generated.docker-compose.*.yml
22

3-
test/integration/resources/init
3+
tests/integration/resources/init
44

55
node_modules/
66
*.tsbuildinfo

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ init:
99

1010
.PHONY: test
1111
test: check-format
12-
pytest --cov awslambdaric --cov-report term-missing --cov-fail-under 90 test
12+
pytest --cov awslambdaric --cov-report term-missing --cov-fail-under 90 tests
1313

1414
.PHONY: setup-codebuild-agent
1515
setup-codebuild-agent:
16-
docker build -t codebuild-agent - < test/integration/codebuild-local/Dockerfile.agent
16+
docker build -t codebuild-agent - < tests/integration/codebuild-local/Dockerfile.agent
1717

1818
.PHONY: test-smoke
1919
test-smoke: setup-codebuild-agent
20-
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.12 3.8
20+
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_one.sh tests/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.12 3.8
2121

2222
.PHONY: test-integ
2323
test-integ: setup-codebuild-agent
24-
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_all.sh test/integration/codebuild/.
24+
CODEBUILD_IMAGE_TAG=codebuild-agent tests/integration/codebuild-local/test_all.sh tests/integration/codebuild/.
2525

2626
.PHONY: check-security
2727
check-security:
2828
bandit -r awslambdaric
2929

3030
.PHONY: format
3131
format:
32-
black setup.py awslambdaric/ test/
32+
black setup.py awslambdaric/ tests/
3333

3434
.PHONY: check-format
3535
check-format:
36-
black --check setup.py awslambdaric/ test/
36+
black --check setup.py awslambdaric/ tests/
3737

3838
# Command to run everytime you make changes to verify everything works
3939
.PHONY: dev
File renamed without changes.

test/integration/codebuild/buildspec.os.alpine.1.yml renamed to tests/integration/codebuild/buildspec.os.alpine.1.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ phases:
2727
- echo "Extracting and including the Runtime Interface Emulator"
2828
- SCRATCH_DIR=".scratch"
2929
- mkdir "${SCRATCH_DIR}"
30-
- tar -xvf test/integration/resources/aws-lambda-rie.tar.gz --directory "${SCRATCH_DIR}"
30+
- tar -xvf tests/integration/resources/aws-lambda-rie.tar.gz --directory "${SCRATCH_DIR}"
3131
- >
32-
cp "test/integration/docker/Dockerfile.echo.${OS_DISTRIBUTION}" \
32+
cp "tests/integration/docker/Dockerfile.echo.${OS_DISTRIBUTION}" \
3333
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
3434
- >
3535
echo "RUN apk add curl" >> \

test/integration/codebuild/buildspec.os.alpine.2.yml renamed to tests/integration/codebuild/buildspec.os.alpine.2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ phases:
2929
- echo "Extracting and including the Runtime Interface Emulator"
3030
- SCRATCH_DIR=".scratch"
3131
- mkdir "${SCRATCH_DIR}"
32-
- tar -xvf test/integration/resources/aws-lambda-rie.tar.gz --directory "${SCRATCH_DIR}"
32+
- tar -xvf tests/integration/resources/aws-lambda-rie.tar.gz --directory "${SCRATCH_DIR}"
3333
- >
34-
cp "test/integration/docker/Dockerfile.echo.${OS_DISTRIBUTION}" \
34+
cp "tests/integration/docker/Dockerfile.echo.${OS_DISTRIBUTION}" \
3535
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
3636
- >
3737
echo "RUN apk add curl" >> \

0 commit comments

Comments
 (0)