Skip to content

Commit

Permalink
Merge pull request #12 from cloudblue/LITE-28012-add-upload-files-fun…
Browse files Browse the repository at this point in the history
…ctionality

LITE-28012 Add upload files functionality
  • Loading branch information
d3rky authored Jul 11, 2023
2 parents ec334a8 + e933473 commit 884aae7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connect_ext_ppr/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from connect.client import ConnectClient
from connect.eaas.core.decorators import (
module_pages,
proxied_connect_api,
router,
web_app,
)
Expand Down Expand Up @@ -38,6 +39,11 @@
label='Deployments',
url='/static/index.html',
)
@proxied_connect_api(
{
'/public/v1/media': 'edit',
},
)
class ConnectExtensionXvsWebApplication(WebApplicationBase):

@router.get(
Expand Down
11 changes: 11 additions & 0 deletions tests/api/test_deployments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
from connect.eaas.core.constants import PROXIED_CONNECT_API_ATTR_NAME


def test_proxied_connect_endpoints(api_client):
proxied = getattr(api_client._webapp_class, PROXIED_CONNECT_API_ATTR_NAME)
assert isinstance(proxied, dict)
assert proxied == {
'/public/v1/media': 'edit',
}


def test_get_deployments(
mocker,
deployment,
Expand Down

0 comments on commit 884aae7

Please sign in to comment.