Skip to content

Commit b608d76

Browse files
committed
fix tests
1 parent 10271de commit b608d76

File tree

2 files changed

+2
-31
lines changed

2 files changed

+2
-31
lines changed

airbyte-ci/connectors/pipelines/pipelines/actions/environments.py

+1-31
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from typing import TYPE_CHECKING, Callable, List, Optional
1515

1616
import toml
17-
from dagger import CacheSharingMode, CacheVolume, Client, Container, DaggerError, Directory, File, Platform, Secret
17+
from dagger import CacheVolume, Client, Container, DaggerError, Directory, File, Platform, Secret
1818
from dagger.engine._version import CLI_VERSION as dagger_engine_version
1919
from pipelines import consts
2020
from pipelines.consts import (
@@ -365,36 +365,6 @@ def with_python_connector_source(context: ConnectorContext) -> Container:
365365
return with_python_package(context, testing_environment, connector_source_path)
366366

367367

368-
async def with_python_connector_installed(context: ConnectorContext) -> Container:
369-
"""Install an airbyte connector python package in a testing environment.
370-
371-
Args:
372-
context (ConnectorContext): The current test context, providing the repository directory from which the connector sources will be pulled.
373-
Returns:
374-
Container: A python environment container (with the connector installed).
375-
"""
376-
connector_source_path = str(context.connector.code_directory)
377-
testing_environment: Container = with_testing_dependencies(context)
378-
exclude = [
379-
f"{context.connector.code_directory}/{item}"
380-
for item in [
381-
"secrets",
382-
"metadata.yaml",
383-
"bootstrap.md",
384-
"icon.svg",
385-
"README.md",
386-
"Dockerfile",
387-
"acceptance-test-docker.sh",
388-
"build.gradle",
389-
".hypothesis",
390-
".dockerignore",
391-
]
392-
]
393-
return await with_installed_python_package(
394-
context, testing_environment, connector_source_path, additional_dependency_groups=["dev", "tests", "main"], exclude=exclude
395-
)
396-
397-
398368
async def with_ci_credentials(context: PipelineContext, gsm_secret: Secret) -> Container:
399369
"""Install the ci_credentials package in a python environment.
400370

airbyte-ci/connectors/pipelines/pipelines/tests/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class AcceptanceTests(Step):
180180
title = "Acceptance tests"
181181
CONTAINER_TEST_INPUT_DIRECTORY = "/test_input"
182182
CONTAINER_SECRETS_DIRECTORY = "/test_input/secrets"
183+
skipped_exit_code = 5
183184

184185
@property
185186
def base_cat_command(self) -> List[str]:

0 commit comments

Comments
 (0)