Skip to content

Commit

Permalink
SAT: migrate to CDK (#3640)
Browse files Browse the repository at this point in the history
* move SAT to CDK and fix image tag

* fix publish

Co-authored-by: Eugene Kulak <kulak.eugene@gmail.com>
  • Loading branch information
keu and eugene-kulak committed May 28, 2021
1 parent 7b4b804 commit c61fc3d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY setup.py ./
COPY pytest.ini ./
RUN pip install .

LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.version=0.1.2
LABEL io.airbyte.name=airbyte/source-acceptance-test

ENTRYPOINT ["python", "-m", "pytest", "-p", "source_acceptance_test.plugin"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ airbytePython {
moduleDirectory 'source_acceptance_test'
}


dependencies {
implementation files(project(':airbyte-integrations:bases:base-python').airbyteDocker.outputs)
}

installReqs.dependsOn(":airbyte-integrations:bases:airbyte-protocol:installReqs")
// no-op integration test task to allow build script to succeed. TODO fix build script to not require a task with this name.
task("integrationTest")
22 changes: 11 additions & 11 deletions airbyte-integrations/bases/source-acceptance-test/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
import setuptools

MAIN_REQUIREMENTS = [
"airbyte-cdk==0.1.3",
"docker==4.4.4",
"PyYAML==5.4.0",
"inflection==0.5.1",
"icdiff==1.9.1",
"pendulum==1.2.0",
"pydantic==1.6.2",
"pytest==6.1.2",
"pytest-sugar==0.9.4",
"pytest-timeout==1.4.2",
"pprintpp==0.4.0",
"airbyte-cdk~=0.1",
"docker~=4.4",
"PyYAML~=5.4",
"inflection~=0.5",
"icdiff~=1.9",
"pendulum~=1.2",
"pydantic~=1.6",
"pytest~=6.1",
"pytest-sugar~=0.9",
"pytest-timeout~=1.4",
"pprintpp~=0.4",
]

setuptools.setup(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
-v $(pwd):/test_input \
airbyte/source-acceptance-test:dev \
airbyte/source-acceptance-test \
--acceptance-test-config /test_input
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
-v $(pwd):/test_input \
airbyte/source-acceptance-test:dev \
airbyte/source-acceptance-test \
--acceptance-test-config /test_input
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
-v $(pwd):/test_input \
airbyte/source-acceptance-test:dev \
airbyte/source-acceptance-test \
--acceptance-test-config /test_input
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AirbyteSourceAcceptanceTestPlugin implements Plugin<Project> {
// mount the project dir. all provided input paths must be relative to that dir.
'-v', "${project.projectDir.absolutePath}:${targetMountDirectory}",
'-w', "$targetMountDirectory",
'airbyte/source-acceptance-test:dev',
'airbyte/source-acceptance-test',
'-p', 'integration_tests.acceptance',
]
commandLine args
Expand Down

0 comments on commit c61fc3d

Please sign in to comment.