Commit 4e2ee4dc authored by JorgeEcheva26's avatar JorgeEcheva26
Browse files

test changes

parent 0be41346
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,5 +38,5 @@
        "publisher_apf_id":"APF73e3458fb483c3c65f2f7e126ec851",
        "publisher_aefs_ids":["AEF07a01ccd74a160c195e69b4f116d66","AEFb5c206b46fc68c192aed6870899ea1"]
    },
    "api_description_path":"/Users/IDB0128/git_repos/pesp_capif_sdk/samples/provider_api_description_sample.json"
    "api_description_path":"/Users/IDB0128/git_repos/pesp_capif_sdk/test/netapp-provider-api-spec.json"
}
 No newline at end of file
+1 −2
Original line number Diff line number Diff line
from sdk import CAPIFInvokerConnector, ServiceDiscoverer
import sys
import os

@@ -7,7 +6,7 @@ import os
script_dir = os.path.dirname(os.path.abspath(__file__))  # Directorio actual del script
sdk_path = os.path.join(script_dir, '..', '..', 'sdk')  # Subir dos niveles y apuntar a 'sdk'
sys.path.insert(0, sdk_path)

from sdk import CAPIFInvokerConnector, ServiceDiscoverer
capif_sdk_config_path = "/Users/dgs/Downloads/capif_sdk/invoker/config.json"
capif_sdk_config_path = "/Users/IDB0128/git_repos/pesp_capif_sdk/netapp-samples/netapp-invoker-sample/capif-sdk-config-sample.json"

+4 −4
Original line number Diff line number Diff line
@@ -34,11 +34,11 @@
        "service-kpis": ""
    },
    "publish_req": {
        "service_api_id": "475efe88f362be86e6818967a1b1c2",
        "publisher_apf_id": "APF69c4e696697fcd7815ccddb36cf730",
        "service_api_id": "b975bc7437732c3b503de8a76e50a8",
        "publisher_apf_id": "APFb7a2e035e70e8a8928ae3b811ae083",
        "publisher_aefs_ids": [
            "AEF295be601e3fad4886d0207f2371493",
            "AEF6cc62d5779ca43df0e95c7908524f2"
            "AEF95f7fd34d9163a8d4e64694bd0f9c1",
            "AEF5d3bde7bacba44152076162b10ece7"
        ]
    },
    "api_description_path": "./netapp-provider-api-spec.json"
+214 −0
Original line number Diff line number Diff line
{
    "apiName": "Test-2",
    "aefProfiles": [
        {
            "aefId": "AEF9a7601d5ceb912131057165215b0fc",
            "versions": [
                {
                    "apiVersion": "v1",
                    "expiry": "2100-11-30T10:32:02.004Z",
                    "resources": [
                        {
                            "resourceName": "MONITORING_SUBSCRIPTIONS",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions",
                            "custOpName": "http_post",
                            "operations": [
                                "GET",
                                "POST"
                            ],
                            "description": "Endpoint to manage monitoring subscriptions"
                        },
                        {
                            "resourceName": "MONITORING_SUBSCRIPTION_SINGLE",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions/{subscriptionId}",
                            "custOpName": "http_get",
                            "operations": [
                                "GET",
                                "PUT",
                                "DELETE"
                            ],
                            "description": "Endpoint to manage single subscription"
                        }
                    ],
                    "custOperations": [
                        {
                            "commType": "REQUEST_RESPONSE",
                            "custOpName": "string",
                            "operations": [
                                "POST"
                            ],
                            "description": "string"
                        }
                    ]
                }
            ],
            "protocol": "HTTP_1_1",
            "dataFormat": "JSON",
            "securityMethods": [
                "Oauth",
                "PSK"
            ],
            "interfaceDescriptions": [
                {
                    "ipv4Addr": "127.0.0.1",
                    "port": 8888,
                    "securityMethods": [
                        "Oauth"
                    ]
                }
            ]
        },
        {
            "aefId": "AEF5b81eb7ab85703209c1dac2002793f",
            "versions": [
                {
                    "apiVersion": "v1",
                    "expiry": "2100-11-30T10:32:02.004Z",
                    "resources": [
                        {
                            "resourceName": "TSN_LIST_PROFILES",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/profile",
                            "custOpName": "http_get",
                            "operations": [
                                "GET"
                            ],
                            "description": "Endpoint for retrieving the list of available TSN profiles"
                        },
                        {
                            "resourceName": "TSN_DETAIL_PROFILE",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/profile?name={profileName}",
                            "custOpName": "http_get",
                            "operations": [
                                "GET"
                            ],
                            "description": "Endpoint for retrieving information about a single TSN profile"
                        },
                        {
                            "resourceName": "TSN_APPLY_CONFIGURATION",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/apply",
                            "custOpName": "http_post",
                            "operations": [
                                "POST"
                            ],
                            "description": "Endpoint for configuring TSN connection parameters"
                        },
                        {
                            "resourceName": "TSN_CLEAR_CONFIGURATION",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/clear",
                            "custOpName": "http_post",
                            "operations": [
                                "POST"
                            ],
                            "description": "Endpoint for removing a previous TSN connection configuration"
                        }
                    ],
                    "custOperations": [
                        {
                            "commType": "REQUEST_RESPONSE",
                            "custOpName": "string",
                            "operations": [
                                "POST"
                            ],
                            "description": "string"
                        }
                    ]
                }
            ],
            "protocol": "HTTP_1_1",
            "dataFormat": "JSON",
            "securityMethods": [
                "Oauth"
            ],
            "interfaceDescriptions": [
                {
                    "ipv4Addr": "127.0.0.1",
                    "port": 8899,
                    "securityMethods": [
                        "Oauth"
                    ]
                }
            ]
        },
        {
            "aefId": "AEF81595f00c76092899d538992a3f60d",
            "versions": [
                {
                    "apiVersion": "v1",
                    "expiry": "2100-11-30T10:32:02.004Z",
                    "resources": [
                        {
                            "resourceName": "MONITORING_SUBSCRIPTIONS",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions",
                            "custOpName": "http_post",
                            "operations": [
                                "GET",
                                "POST"
                            ],
                            "description": "Endpoint to manage monitoring subscriptions"
                        },
                        {
                            "resourceName": "MONITORING_SUBSCRIPTION_SINGLE",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions/{subscriptionId}",
                            "custOpName": "http_get",
                            "operations": [
                                "GET",
                                "PUT",
                                "DELETE"
                            ],
                            "description": "Endpoint to manage single subscription"
                        }
                    ],
                    "custOperations": [
                        {
                            "commType": "REQUEST_RESPONSE",
                            "custOpName": "string",
                            "operations": [
                                "POST"
                            ],
                            "description": "string"
                        }
                    ]
                }
            ],
            "protocol": "HTTP_1_1",
            "dataFormat": "JSON",
            "securityMethods": [
                "Oauth",
                "PSK"
            ],
            "interfaceDescriptions": [
                {
                    "ipv4Addr": "127.0.0.1",
                    "port": 8888,
                    "securityMethods": [
                        "Oauth"
                    ]
                }
            ]
        }
    ],
    "description": "API of dummy netapp to test",
    "supportedFeatures": "fffff",
    "shareableInfo": {
        "isShareable": true,
        "capifProvDoms": [
            "string"
        ]
    },
    "serviceAPICategory": "string",
    "apiSuppFeats": "fffff",
    "pubApiPath": {
        "ccfIds": [
            "string"
        ]
    },
    "ccfId": "string"
}
 No newline at end of file
+155 −0
Original line number Diff line number Diff line
{
    "apiName": "Test-3",
    "aefProfiles": [
        {
            "aefId": "AEFc125f6f9dd5739a73b94c3e0fb6dd1",
            "versions": [
                {
                    "apiVersion": "v1",
                    "expiry": "2100-11-30T10:32:02.004Z",
                    "resources": [
                        {
                            "resourceName": "MONITORING_SUBSCRIPTIONS",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions",
                            "custOpName": "http_post",
                            "operations": [
                                "GET",
                                "POST"
                            ],
                            "description": "Endpoint to manage monitoring subscriptions"
                        },
                        {
                            "resourceName": "MONITORING_SUBSCRIPTION_SINGLE",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/{scsAsId}/subscriptions/{subscriptionId}",
                            "custOpName": "http_get",
                            "operations": [
                                "GET",
                                "PUT",
                                "DELETE"
                            ],
                            "description": "Endpoint to manage single subscription"
                        }
                    ],
                    "custOperations": [
                        {
                            "commType": "REQUEST_RESPONSE",
                            "custOpName": "string",
                            "operations": [
                                "POST"
                            ],
                            "description": "string"
                        }
                    ]
                }
            ],
            "protocol": "HTTP_1_1",
            "dataFormat": "JSON",
            "securityMethods": [
                "Oauth",
                "PSK"
            ],
            "interfaceDescriptions": [
                {
                    "ipv4Addr": "127.0.0.1",
                    "port": 8888,
                    "securityMethods": [
                        "Oauth"
                    ]
                }
            ]
        },
        {
            "aefId": "AEFb1a2a317fff0d10f08676431ae4a68",
            "versions": [
                {
                    "apiVersion": "v1",
                    "expiry": "2100-11-30T10:32:02.004Z",
                    "resources": [
                        {
                            "resourceName": "TSN_LIST_PROFILES",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/profile",
                            "custOpName": "http_get",
                            "operations": [
                                "GET"
                            ],
                            "description": "Endpoint for retrieving the list of available TSN profiles"
                        },
                        {
                            "resourceName": "TSN_DETAIL_PROFILE",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/profile?name={profileName}",
                            "custOpName": "http_get",
                            "operations": [
                                "GET"
                            ],
                            "description": "Endpoint for retrieving information about a single TSN profile"
                        },
                        {
                            "resourceName": "TSN_APPLY_CONFIGURATION",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/apply",
                            "custOpName": "http_post",
                            "operations": [
                                "POST"
                            ],
                            "description": "Endpoint for configuring TSN connection parameters"
                        },
                        {
                            "resourceName": "TSN_CLEAR_CONFIGURATION",
                            "commType": " SUBSCRIBE_NOTIFY",
                            "uri": "/clear",
                            "custOpName": "http_post",
                            "operations": [
                                "POST"
                            ],
                            "description": "Endpoint for removing a previous TSN connection configuration"
                        }
                    ],
                    "custOperations": [
                        {
                            "commType": "REQUEST_RESPONSE",
                            "custOpName": "string",
                            "operations": [
                                "POST"
                            ],
                            "description": "string"
                        }
                    ]
                }
            ],
            "protocol": "HTTP_1_1",
            "dataFormat": "JSON",
            "securityMethods": [
                "Oauth"
            ],
            "interfaceDescriptions": [
                {
                    "ipv4Addr": "127.0.0.1",
                    "port": 8899,
                    "securityMethods": [
                        "Oauth"
                    ]
                }
            ]
        }
    ],
    "description": "API of dummy netapp to test",
    "supportedFeatures": "fffff",
    "shareableInfo": {
        "isShareable": true,
        "capifProvDoms": [
            "string"
        ]
    },
    "serviceAPICategory": "string",
    "apiSuppFeats": "fffff",
    "pubApiPath": {
        "ccfIds": [
            "string"
        ]
    },
    "ccfId": "string"
}
 No newline at end of file
Loading