Skip to content

removed create appsync fixtures #12572

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions localstack-core/localstack/testing/pytest/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2179,29 +2179,6 @@ def _create_apigateway_function(**kwargs):
apigateway_client.delete_rest_api(restApiId=rest_api_id)


@pytest.fixture
def appsync_create_api(aws_client):
graphql_apis = []

def factory(**kwargs):
if "name" not in kwargs:
kwargs["name"] = f"graphql-api-testing-name-{short_uid()}"
if not kwargs.get("authenticationType"):
kwargs["authenticationType"] = "API_KEY"

result = aws_client.appsync.create_graphql_api(**kwargs)["graphqlApi"]
graphql_apis.append(result["apiId"])
return result

yield factory

for api in graphql_apis:
try:
aws_client.appsync.delete_graphql_api(apiId=api)
except Exception as e:
LOG.debug("Error cleaning up AppSync API: %s, %s", api, e)


@pytest.fixture
def assert_host_customisation(monkeypatch):
localstack_host = "foo.bar"
Expand Down
Loading