python-aws-sam-translator/skip-tests-require-network.patch

27 lines
1.3 KiB
Diff
Raw Normal View History

Accepting request 1004975 from home:glaubitz:branches:devel:languages:python:aws - Update to 1.51.0 * chore: Add missing import and add partition into base test for integration test by @qingchm in #2463 * Release 1.49.0 (to develop) by @aws-sam-cli-bot in #2465 * Revert "chore: Add missing import and add partition into base test for integration test" by @qingchm in #2466 * Update methods in Metrics class to accept timestamp by @hawflau in #2470 * Release 1.50.0 (to develop) by @aws-sam-cli-bot in #2471 * feat: Add State Property to Schedule EventSource in StateMachine by @konoui in #2468 * Test: Upgrade integration test cases lambda resources runtimes to nodejs14.x by @moelasmar in #2474 * Add validation for S3 NotificationConfiguration in Serverless Functin… by @hawflau in #2473 * chore: Change FeatureToggleAppConfigConfigProvider to accept AppConfig client, so SAM-T can send a monitored client. by @moelasmar in #2480 * chore: Add basic mypy check (no behavior change) by @aahung in #2488 * chore: Integration test improvements with ApiKey skips and retry time by @qingchm in #2487 - from version 1.50.0 * chore: Skip self managed kafka tests by @qingchm in #2461 * chore: Add required skipifs for integration tests by @qingchm in #2462 * feat: Support ConsumerGroupId for Kafka events - from version 1.49.0 * Fix EventSource Schedule passes Enabled to State by @lightpriest in #1666 * chore: Add capability to disable S3 Events integration test cases. by @moelasmar in #2454 * chore: Add region skip condition and retry for http test by @qingchm in #2455 * Add validation for swagger security when ApiKeyRequired OBS-URL: https://build.opensuse.org/request/show/1004975 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-aws-sam-translator?expand=0&rev=32
2022-09-24 09:22:57 +00:00
diff -Nru serverless-application-model-1.51.0.orig/tests/plugins/application/test_serverless_app_plugin.py serverless-application-model-1.51.0/tests/plugins/application/test_serverless_app_plugin.py
--- serverless-application-model-1.51.0.orig/tests/plugins/application/test_serverless_app_plugin.py 2022-09-13 20:17:17.000000000 +0200
+++ serverless-application-model-1.51.0/tests/plugins/application/test_serverless_app_plugin.py 2022-09-20 15:15:16.316869823 +0200
@@ -1,5 +1,6 @@
import boto3
import itertools
+import unittest
from botocore.exceptions import ClientError
from unittest.mock import Mock, patch
@@ -99,6 +100,7 @@
self.assertEqual(self.plugin._parameters, parameters)
+@unittest.skip("Skip tests that requires network")
class TestServerlessAppPlugin_on_before_transform_template_translate(TestCase):
def setUp(self):
client = boto3.client("serverlessrepo", region_name="us-east-1")
@@ -440,6 +442,7 @@
self.assertEqual(plugin._get_sleep_time_sec.call_count, 1) # make sure we slept once
+@unittest.skip("Skip tests that requires network")
class TestServerlessAppPlugin_on_before_and_on_after_transform_template(TestCase):
@patch("samtranslator.plugins.application.serverless_app_plugin.SamTemplate")
def test_time_limit_exceeds_between_combined_sar_calls(self, SamTemplateMock):