-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
SAT: verify AIRBYTE_ENTRYPOINT
is defined
#4478
Merged
vovavovavovavova
merged 26 commits into
master
from
valdemar/#4262_assert_airbyte_entrypoint_env_defined
Jul 7, 2021
Merged
Changes from 10 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
69aa7a6
save changes required for work; TODO locate all places that need to b…
vovavovavovavova fd4db49
Merge remote-tracking branch 'origin/master' into valdemar/#4262_asse…
vovavovavovavova 1da955d
move new test inside test_spec
vovavovavovavova 075a044
apply suggestions
vovavovavovavova 9b66d50
change return type + add check env = space_joined_entrypoint
vovavovavovavova ad4274a
requested
vovavovavovavova 472ad1a
add check entrypoint with env
vovavovavovavova b62ae92
bump SAT --version && changelog update
vovavovavovavova 62f84d5
Merge remote-tracking branch 'origin/master' into valdemar/#4262_asse…
vovavovavovavova a2ba9b6
merge && fix changelog
vovavovavovavova b143ad5
changes
vovavovavovavova b74e6ff
add dynamic docker runner creator + test having properties
vovavovavovavova 076d31e
update the names
vovavovavovavova d5da978
change names
vovavovavovavova 28505cc
make fixtures
vovavovavovavova 7ab4c81
Merge remote-tracking branch 'origin/master' into valdemar/#4262_asse…
vovavovavovavova 214209b
upd text
vovavovavovavova d4b6d4f
Update airbyte-integrations/bases/source-acceptance-test/unit_tests/t…
vovavovavovavova 770b508
requested changes
vovavovavovavova 6f52aed
Update airbyte-integrations/bases/source-acceptance-test/unit_tests/t…
vovavovavovavova b9991f1
Update airbyte-integrations/bases/source-acceptance-test/unit_tests/t…
vovavovavovavova 387493c
apply requested changes
vovavovavovavova 36f76f9
change names (requested)
vovavovavovavova c6e2bd4
move binary strings to standard with convertation in builder
vovavovavovavova 045c749
fixing merge-conflict side effect
vovavovavovavova 64a811b
resolve new conflict (both)
vovavovavovavova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ Add test whether PKs present and not None if `source_defined_primary_key` define | |
|
||
## 0.1.5 | ||
Add configurable timeout for the acceptance tests: https://github.com/airbytehq/airbyte/pull/4296 | ||
|
||
## 0.1.7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be in reverse chrono order |
||
Add: `test_spec` additionally checks if Dockerfile has `ENV AIRBYTE_ENTRYPOINT` defined | ||
and equal to space_joined `ENTRYPOINT` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,11 @@ def test_spec(self, connector_spec: ConnectorSpecification, docker_runner: Conne | |
if connector_spec: | ||
assert spec_messages[0].spec == connector_spec, "Spec should be equal to the one in spec.json file" | ||
|
||
assert docker_runner.env_variables.get("AIRBYTE_ENTRYPOINT"), "AIRBYTE_ENTRYPOINT must be set in dockerfile" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💪🏼 |
||
assert docker_runner.env_variables.get("AIRBYTE_ENTRYPOINT") == " ".join( | ||
docker_runner.entry_point | ||
), "env should be equal to space-joined entrypoint" | ||
|
||
|
||
@pytest.mark.default_timeout(30) | ||
class TestConnection(BaseTest): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you correct these version headers?