2023-07-05 12:16:14 +00:00
|
|
|
diff -Nru serverless-application-model-1.68.0.orig/tests/plugins/application/test_serverless_app_plugin.py serverless-application-model-1.68.0/tests/plugins/application/test_serverless_app_plugin.py
|
|
|
|
--- serverless-application-model-1.68.0.orig/tests/plugins/application/test_serverless_app_plugin.py 2023-05-25 20:47:48.000000000 +0200
|
|
|
|
+++ serverless-application-model-1.68.0/tests/plugins/application/test_serverless_app_plugin.py 2023-06-15 16:12:56.049114662 +0200
|
2022-09-24 09:22:57 +00:00
|
|
|
@@ -1,5 +1,6 @@
|
2023-07-05 12:16:14 +00:00
|
|
|
from unittest import TestCase
|
2022-09-24 09:22:57 +00:00
|
|
|
from unittest.mock import Mock, patch
|
2023-07-05 12:16:14 +00:00
|
|
|
+import unittest
|
2022-09-24 09:22:57 +00:00
|
|
|
|
2023-07-05 12:16:14 +00:00
|
|
|
import boto3
|
|
|
|
from botocore.exceptions import ClientError
|
|
|
|
@@ -114,7 +115,7 @@
|
|
|
|
self.assertEqual(plugin._sar_client, sar_client)
|
|
|
|
self.client_mock.assert_not_called()
|
2022-09-24 09:22:57 +00:00
|
|
|
|
2023-07-05 12:16:14 +00:00
|
|
|
-
|
2022-09-24 09:22:57 +00:00
|
|
|
+@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")
|
2023-07-05 12:16:14 +00:00
|
|
|
@@ -453,7 +454,7 @@
|
|
|
|
self.assertEqual(client.get_cloud_formation_template.call_count, 2)
|
2022-09-24 09:22:57 +00:00
|
|
|
self.assertEqual(plugin._get_sleep_time_sec.call_count, 1) # make sure we slept once
|
|
|
|
|
2023-07-05 12:16:14 +00:00
|
|
|
-
|
2022-09-24 09:22:57 +00:00
|
|
|
+@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):
|