Repository: goblet/goblet (language: python)

Issue:
[Python] support for 3.11
Add test coverage for python 3.11


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 05754d6c..3bd2b630 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,7 +33,7 @@ jobs:
     needs: Lint
     strategy:
       matrix:
-        python-version: ['3.8', '3.9', '3.10']
+        python-version: ["3.8", "3.9", "3.10", "3.11"]
     name: Test Python ${{ matrix.python-version }}
     steps:
       - uses: actions/checkout@v2
diff --git a/requirements.txt b/requirements.txt
index 3779d7d5..8461ed50 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,7 +5,7 @@ marshmallow==3.15.0
 pydantic==1.10.2
 PyYAML==6.0
 markupsafe==2.0.1
-google-cloud-logging==3.1.2
-google-api-python-client==2.55.0
-goblet-gcp-client==0.1.3
+google-cloud-logging==3.5.0
+google-cloud-appengine-logging==1.3.0
+goblet-gcp-client==0.1.4
 protobuf==3.20.3
\ No newline at end of file


Test patch:
diff --git a/goblet/tests/test_vpcconnector.py b/goblet/tests/test_vpcconnector.py
index 01b002e6..d164698c 100644
--- a/goblet/tests/test_vpcconnector.py
+++ b/goblet/tests/test_vpcconnector.py
@@ -3,10 +3,7 @@
 from pytest import raises
 from goblet_gcp_client import get_response, get_responses
 
-# from goblet.infrastructures.vpcconnector import VPCConnector
-# from goblet.resources.http import HTTP
-
-# TODO revisit VPC Connector deploy once Discovery Document is updated
+from goblet.infrastructures.vpcconnector import VPCConnector
 
 
 class TestVPCConnector:
@@ -37,11 +34,11 @@ def test_deploy_vpcconnector(self, monkeypatch):
         )
         app.vpcconnector(name="vpc-test")
 
-        # app.deploy(
-        #     force=True,
-        #     skip_backend=True,
-        #     skip_resources=True,
-        # )
+        app.deploy(
+            force=True,
+            skip_backend=True,
+            skip_resources=True,
+        )
 
         vpc_conn = get_response(
             "vpcconnector-deploy",
@@ -57,8 +54,8 @@ def test_destroy_vpcconnector(self, monkeypatch):
         monkeypatch.setenv("G_TEST_NAME", "vpcconnector-destroy")
         monkeypatch.setenv("G_HTTP_TEST", "REPLAY")
 
-        # vpc = VPCConnector("goblet-vpc", resource={"name": "vpc-test"))
-        # vpc.destroy()
+        vpc = VPCConnector("goblet-vpc", resource={"name": "vpc-test"})
+        vpc.destroy()
 
         responses = get_responses("vpcconnector-destroy")
         assert len(responses) == 2
@@ -82,13 +79,13 @@ def test_deploy_cloudrun(self, monkeypatch):
         app.handlers["http"].register("", dummy_function, {})
 
         app.vpcconnector(name="vpc-test")
-        # app.deploy(
-        #     skip_infra=True,
-        #     skip_resources=True,
-        #     force=True,
-        # )
+        app.deploy(
+            skip_infra=True,
+            skip_resources=True,
+            force=True,
+        )
 
-        # app.destroy(skip_infra=True)
+        app.destroy(skip_infra=True)
         response = get_response(
             "vpcconnector-deploy-cloudrun",
             "post-v2-projects-goblet-locations-us-central1-services_1.json",
@@ -116,13 +113,13 @@ def test_deploy_cloudfunction(self, monkeypatch):
         app.handlers["http"].register("", dummy_function, {})
 
         app.vpcconnector(name="vpc-test")
-        # app.deploy(
-        #     skip_resources=True,
-        #     skip_infra=True,
-        #     force=True,
-        # )
+        app.deploy(
+            skip_resources=True,
+            skip_infra=True,
+            force=True,
+        )
 
-        # app.destroy(skip_infra=True)
+        app.destroy(skip_infra=True)
         response = get_response(
             "vpcconnector-deploy-function",
             "post-v1-projects-goblet-locations-us-central1-functions_1.json",
@@ -148,13 +145,13 @@ def test_deploy_cloudfunctionv2(self, monkeypatch):
         app.handlers["http"].register("", dummy_function, {})
 
         app.vpcconnector(name="vpc-test")
-        # app.deploy(
-        #     skip_resources=True,
-        #     skip_infra=True,
-        #     force=True,
-        # )
+        app.deploy(
+            skip_resources=True,
+            skip_infra=True,
+            force=True,
+        )
 
-        # app.destroy(skip_infra=True)
+        app.destroy(skip_infra=True)
         response = get_response(
             "vpcconnector-deploy-functionv2",
             "get-v2-projects-goblet-locations-us-central1-operations-operation-1664907376650-5ea3974c4e78a-ad732159-2582b07a_1.json",