Commit ff098324 authored by Eisha Ayaz's avatar Eisha Ayaz Committed by Giacomo Bernini
Browse files

[test-new][SOL025][DATA-ANALYTICS][v5.2.1][12.3.1.3.x Test-IDs] Implement new...

[test-new][SOL025][DATA-ANALYTICS][v5.2.1][12.3.1.3.x Test-IDs] Implement new test cases for resource: Individual Telco-cloud data Analytics report
parent ecb994d9
Loading
Loading
Loading
Loading
+122 −0
Original line number Diff line number Diff line
*** Settings ***
Resource    environment/variables.txt
Resource    DataAnalyticsOperationKeywords.robot
Library     REST
...         ${TCDAS_SCHEMA}://${TCDAS_HOST}:${TCDAS_PORT}
...         ssl_verify=false
Library     OperatingSystem
Library     JSONLibrary
Library     JSONSchemaLibrary    schemas/

*** Test Cases ***
POST Individual Telco-Cloud data Analytics report - Method not implemented
    [Documentation]    Test ID: 12.3.1.3.1
    ...    Test title: POST Individual Telco-Cloud data Analytics report - Method not implemented
    ...    Test objective: The objective is to test that POST method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.1  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST Individual Telco-Cloud data Analytics report
    Check HTTP Response Status Code Is    405
Get Individual Telco-Cloud data Analytics report
    [Documentation]    Test ID: 12.3.1.3.2
    ...    Test title: Get Individual Telco-Cloud data Analytics report
    ...    Test objective: The objective is to test the retrieval of an individual Telco-Cloud data Analytics report and perform a JSON schema validation of the collected report data structure
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.2  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Telco-Cloud data Analytics report
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   telcoCloudAnalyticsReport

GET Individual Telco-Cloud data Analytics report - Not Found
    [Documentation]    Test ID: 12.3.1.3.3
    ...    Test title: GET Individual Telco-Cloud data Analytics report - Not Found
    ...    Test objective: The objective is to test the retrieval of information about an "Individual Telco-Cloud data Analytics report" resource fails when the resource is not present.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.2  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Telco-Cloud data Analytics report - Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails

Get Individual Telco-Cloud data Analytics report with permited authorization scope
    [Documentation]    Test ID: 12.3.1.3.4
    ...    Test title: Get Individual Telco-Cloud data Analytics report with permited authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual Telco-Cloud data Analytics report and perform a JSON schema validation of the collected report data structure with permited authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.2  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Telco-Cloud data Analytics report with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   telcoCloudAnalyticsReport

Get Individual Telco-Cloud data Analytics report with not permited authorization scope
    [Documentation]    Test ID: 12.3.1.3.5
    ...    Test title: Get Individual Telco-Cloud data Analytics report with not permited authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual Telco-Cloud data Analytics report and perform a JSON schema validation of the collected report data structure with not permited authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.2  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Telco-Cloud data Analytics report with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails

GET Information about an Individual Telco-Cloud data Analytics report - Unauthorized
    [Documentation]    Test ID:  12.3.1.3.6
    ...    Test title: GET Information about an Individual Telco-Cloud data Analytics report without authorization
    ...    Test objective: The objective is to GET Information about an Individual Telco-Cloud data Analytics report without authprization
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.2  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual Telco-Cloud data Analytics report - Unauthorized
    Check HTTP Response Status Code Is    401
    Check HTTP Response Body Json Schema Is    ProblemDetails

PUT Individual Telco-Cloud data Analytics report - Method not implemented
    [Documentation]    Test ID: 12.3.1.3.7
    ...    Test title: PUT Individual Telco-Cloud data Analytics report - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.3  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    PUT Individual Telco-Cloud data Analytics report
    Check HTTP Response Status Code Is    405

PATCH Individual Telco-Cloud data Analytics report - Method not implemented
    [Documentation]    Test ID: 12.3.1.3.8
    ...    Test title: PATCH Individual Telco-Cloud data Analytics report - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.4  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    PATCH Individual Telco-Cloud data Analytics report
    Check HTTP Response Status Code Is    405

DELETE Individual Telco-Cloud data Analytics report - Method not implemented
    [Documentation]    Test ID: 12.3.1.3.9
    ...    Test title: DELETE Individual Telco-Cloud data Analytics report - Method not implemented
    ...    Test objective: The objective is to test that DELETE method is not implemented
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.5.3.5  - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    DELETE Individual Telco-Cloud data Analytics report
    Check HTTP Response Status Code Is    405
 No newline at end of file
+155 −0
Original line number Diff line number Diff line
{
  "description": "This type represents a Telco-cloud data analytics report.\nNOTE: This attribute shall be present if the data analytics output represents the results of a successful data analytics process.\n",
  "type": "object",
  "required": [
    "tcdaType"
  ],
  "properties": {
    "tcdaType": {
      "description": "INCIDENT_ANALYSIS: The type of a Telco-cloud data analytics is incident analysis. HEALTH_ANALYSIS: The type of a Telco-cloud data analytics is health analysis. RESOURCE_UTILIZATION_ANALYSIS: The type of a Telco-cloud data analytics is resource utilization analysis.\n",
      "type": "string",
      "enum": [
        "INCIDENT_ANALYSIS",
        "HEALTH_ANALYSIS",
        "RESOURCE_UTILIZATION_ANALYSIS"
      ]
    },
    "reportGenerationTime": {
      "description": "Date-time stamp. Representation: String formatted according toas defined by the date-time production in IETF RFC 3339.\n",
      "format": "date-time"
    },
    "outputPerTcdaType": {
      "description": "This type represents the output contained in a Telco-cloud data analytics report.\n",
      "type": "object",
      "properties": {
        "outputForIncidentAnalysis": {
          "description": "This type represents the specific output contained in a Telco-cloud data analytics report  when the value of “tcdaType” in TelcoCloudAnalytics is INCIDENT_ANALYSIS. To enable Telco-cloud data analytics with type INCIDENT_ANALYSIS,  the enabling data may be used by Telco-cloud DAF are provided in table A.2.\n",
          "type": "object",
          "required": [
            "incidentSourceObjects",
            "eventTime",
            "issueId",
            "perceivedSeverity"
          ],
          "properties": {
            "incidentSourceObjects": {
              "description": "Indicates the identifier of the object instance(s) managed by NFV-MANO  which are the root cause of the identified incident.\n",
              "type": "array",
              "items": {
                "description": "An identifier with the intention of being globally unique\n",
                "type": "string"
              }
            },
            "faultType": {
              "description": "Indicates the type of source fault that has caused the incident.  Valid values map to “Event type” values or \"Alarm definition identifier\" values of the Alarm  as defined in ETSI GS NFV-IFA 045.          \n",
              "type": "string"
            },
            "eventTime": {
              "description": "Date-time stamp. Representation: String formatted according toas defined by the date-time production in IETF RFC 3339.\n",
              "format": "date-time"
            },
            "issueId": {
              "description": "Holds the identifier of the reported incident.\n",
              "type": "string"
            },
            "perceivedSeverity": {
              "description": "This field holds the value to indicate relative level of urgency for operator attention. Valid values map to \"Perceived severity\" values of the Alarm  as defined in ETSI GS NFV-IFA 045.\n",
              "type": "string"
            }
          }
        },
        "outputForHealthAnalysis": {
          "description": "This type represents the specific output contained in a Telco-cloud data analytics report  when the value of tcdaType in TelcoCloudAnalytics is HEALTH_ANALYSIS. To enable Telco-cloud data analytics with type HEALTH_ANALYSIS,  the enabling data may be used by Telco-cloud DAF are provided in table A.3.\n",
          "type": "object",
          "required": [
            "healthStatus"
          ],
          "properties": {
            "healthStatus": {
              "description": "Indicates the health status of the analysed object instance. Permitted values: -\tHEALTHY: The analysed object instance is running in a healthy statues. -\tSUB_HEALTHY:  The analysed object instance is running in a sub healthy statues, e.g. over loaded may cause failure.  -\tNOT_HEALTHY: The analysed object instance is running in a not healthy statues, e.g. heavy loaded for long time, the probability of failure is high.  \n",
              "type": "string",
              "enum": [
                "HEALTHY",
                "SUB_HEALTHY",
                "NOT_HEALTHY"
              ]
            },
            "analyticsStatistics": {
              "description": "Indicates the processed and computed statistics by Telco-cloud DAF,  of certain performance data associated to this data analytics process in a time period,  e.g. Percentage of times when incoming/outgoing bytes (or packages) of a SAP exceeds  a certain threshold in the last 24 hours for the analysed object instance.  \n",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "unhealthyObjectInfos": {
              "description": "Indicates the constituent objects which are in SUB_HEALTHY or NOT_HEALTHY status  in case the analysed object is a NS instance.\n",
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "objectInstanceId"
                ],
                "properties": {
                  "objectInstanceId": {
                    "description": "An identifier with the intention of being globally unique\n",
                    "type": "string"
                  },
                  "unhealthCause": {
                    "description": "Indicates the analysed cause(s) for respective unhealthy object, e.g. over loaded.\n",
                    "type": "string"
                  },
                  "recommendedAction": {
                    "description": "Indicates the recommended action to recover unhealthy object,  e.g. to scale or heal constituent VNF instances of the NS instance. \n",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "outputForResourceUtilizationAnalysis": {
          "description": "This type represents the specific output contained in a Telco-cloud data analytics report  when the value of tcdaType in TelcoCloudAnalytics is RESOURCE_UTILIZATION_ANALYSIS. To enable Telco-cloud data analytics with type RESOURCE_UTILIZATION_ANALYSIS,  the enabling data may be used by Telco-cloud DAF are provided in table A.4.\n",
          "type": "object",
          "required": [
            "resourceUtilizationStatus",
            "resourceTypes"
          ],
          "properties": {
            "resourceUtilizationStatus": {
              "description": "Indicates the resource utilization status of the analysed object instance. Permitted values: -\tNORMAL: The resource been used is in a normal statues. -\tUNDER_UTILIZED:  The resource been used is in an under-utilized statues. -\tOVER_UTILIZED: The resource been used is in an over-utilized statues.\n",
              "type": "string",
              "enum": [
                "NORMAL",
                "UNDER_UTILIZED",
                "OVER_UTILIZED"
              ]
            },
            "resourceTypes": {
              "description": "Indicates the resource type associated to resourceUtilizationStatus. Permitted values: -\tCOMPUTE: The resource type is compute. -\tSTORAGE: The resource type is storage. -\tNETWORK: The resource type is network.\n",
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "COMPUTE",
                  "STORAGE",
                  "NETWORK"
                ]
              }
            },
            "analyticsStatistics": {
              "description": "Indicates the processed and computed statistics by Telco-cloud DAF,  of certain performance data associated to this data analytics process in a time period,  e.g. Percentage of times when the CPU usage exceeds a certain threshold in the last 24 hours for the analysed object instance.  \n",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "recommendedActions": {
              "description": "Indicates the recommended actions to resolve the resource utilization issues,  e.g. to scale the NS instance or update corresponding NFV-MANO policies impacted  by NS instance resource utilization issues. \n",
              "type": "string"
            }
          }
        }
      }
    }
  }
}
 No newline at end of file