fix: fix listing the components using CRD approach - closes #491
app
appsservice
components.py +17 -0
dao.py +8 -4
tests
files/apps/test-org
test-org.app1.v1.2.3.yml +12 -3
test-org.app1.yml +13 -4
test_component.py +32 -0
test_dao.py +48 -17
+ 17
- 0
@@ -24,6 +24,23 @@ component_model = api.model(
+ 8
- 4
@@ -118,15 +118,19 @@ class AppsDao(object):
@@ -12,27 +12,36 @@ spec:
@@ -11,27 +11,36 @@ spec:
+ 32
- 0
@@ -89,3 +89,35 @@ def test_components_add_wrong_org(client):
+ 48
- 17
@@ -25,9 +25,13 @@ def test_get_app(app):
@@ -39,9 +43,13 @@ def test_get_app(app):
@@ -53,9 +61,13 @@ def test_get_app(app):
@@ -81,9 +93,13 @@ def test_get_app_version(app):
@@ -95,9 +111,13 @@ def test_get_app_version(app):
@@ -109,9 +129,13 @@ def test_get_app_version(app):
@@ -270,9 +294,13 @@ def test_delete_component(app):
@@ -284,9 +312,13 @@ def test_delete_component(app):
@@ -341,7 +373,6 @@ def test_get_component(app):