Merge 5.3.1-dev-SOL023 into 5.3.1-dev

Merge request reports

Loading
+24 −0
Changes for SOL023/CertificateManagement-API/environment/variables.txt: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
*** Variables ***
${CM_SCHEMA}    https
${CM_HOST}      localhost   
${CM_PORT}      8080    
${apiRoot}        /
${apiName}        nfv-cert
${apiMajorVersion}    v1

${ACCEPT}         application/json
${ACCEPT_JSON}     application/json
${CONTENT_TYPE}    application/json
${CONTENT_TYPE_PATCH}    application/merge-patch+json
${AUTHORIZATION_HEADER}    Authorization
${AUTHORIZATION_TOKEN}    Bearer 0b79bab50daca910b000d4f1a2b675d604257e42
${AUTH_USAGE}     1
${OAUTH_Encryption_ALGORITHM}   HS256
${API_VERSION}         1.0.0
${response}=    httpresponse
${SUBJECTS_SCOPE}   cert:v1:subject
${NEG_SCOPE}    cert:v1:invalid
${requested_fields}    subjectId
${subjectId}        SubjectId
${subject_Id_In_Use}         subject_Id_In_Use
${notExistantsubjectId}        notExistantsubjectId
 No newline at end of file
+10 −0
Changes for SOL023/CertificateManagement-API/jsons/RegistrationRequest.json: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
{{
    "certType": "VNFCI certificate",
    "subjectId": {
      "subjectId": "vnfci-1234",
      "certificateData": {
        "subjectAlternateName": "vnfci-1234.example.com"
      }
    },
    "typeOfVnfcCertHandling": "delegation_mode"
}}
 No newline at end of file
+32 −0
Changes for SOL023/CertificateManagement-API/schemas/ProblemDetails.schema.json: 32 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
  "description": "The definition of the general \"ProblemDetails\" data structure from IETF RFC 7807 is reproduced in this structure. Compared to the general framework defined in IETF RFC 7807, the \"status\" and \"details\" attributes are mandated to be included, to ensure that the response contains additional textual information about an  error. IETF RFC 7807 foresees extensibility of the \"ProblemDetails\"  type. It is possible that particular RESTful NFV-MANO API, or  particular implementations, specify extensions to define additional attributes that provide more information about the error.\n",
  "type": "object",
  "required": [
    "status",
    "detail"
  ],
  "properties": {
    "type": {
      "description": "A URI reference according to IETF RFC 3986 that identifies the problem type. It is encouraged that the URI provides human-readable documentation for the problem (e.g. using HTML) when dereferenced. When this member is not present, its value is assumed to be \"about:blank\".\n",
      "type": "string",
      "format": "URI"
    },
    "title": {
      "description": "A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. If type is given and other than \"about:blank\", this attribute shall also be provided.\n",
      "type": "string"
    },
    "status": {
      "description": "The HTTP status code for this occurrence of the problem.\n",
      "type": "integer"
    },
    "detail": {
      "description": "A human-readable explanation specific to this occurrence of the problem.\n",
      "type": "string"
    },
    "instance": {
      "description": "A URI reference that identifies the specific occurrence of the problem. It may yield further information if dereferenced.\n",
      "type": "string",
      "format": "URI"
    }
  }
}
+113 −0
Changes for SOL023/CertificateManagement-API/schemas/SubjectInstance.schema.json: 113 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
    "description": "This type represents a subject instance.\nNOTE 1: \tRegistration of target certificates of type 'MANO certificate' is not covered in this version of the present document.\nNOTE 2:\tAt least one overriding attributes shall be present, otherwise shall be absent.\n",
    "type": "object",
    "required": [
      "id",
      "certType",
      "subjectId",
      "typeOfVnfcCertHandling",
      "_links"
    ],
    "properties": {
      "id": {
        "description": "An identifier with the intention of being globally unique.\n",
        "type": "string"
      },
      "certType": {
        "description": "Indicate the type of target certificate. The possible values are (see note 1):\n  -\tMANO_certificate\n  -\tVNFCI_certificate\n  -\tVNF_OAM_certificate\n",
        "type": "string",
        "enum": [
          "MANO_certificate",
          "VNFCI_certificate",
          "VNF_OAM_certificate"
        ]
      },
      "subjectId": {
        "description": "Data about subjects and their certificates that need to be registered. This attribute shall be present only if certType is VNFCI certificate or VNF OAM certificate.\n",
        "type": "object",
        "required": [
          "subjectId",
          "certificateData"
        ],
        "properties": {
          "subjectId": {
            "description": "The value of the Identifier of the certificate target VNFCI as subject ID if this operation is used for the VNFCI certificate or VNF OAM certificate.\n",
            "type": "string"
          },
          "certificateData": {
            "description": "Data related to certificates for the target VNFCI.\n",
            "type": "object",
            "required": [
              "subjectAlternateName"
            ],
            "properties": {
              "subjectName": {
                "description": "This type provides input information related to subject of certificate.\nNOTE:\tAt least one overriding attributes shall be present, otherwise shall be absent.\n",
                "type": "object",
                "properties": {
                  "commonName": {
                    "description": "Information of certification target subject FQDN. Can be set empty when this certificate is used for encrypted communication using IP address. See note.\n",
                    "type": "string"
                  },
                  "organization": {
                    "description": "Information of certification target subject Organization. See note.\n",
                    "type": "string"
                  },
                  "country": {
                    "description": "Information of certification target subject Country. See note.\n",
                    "type": "string"
                  },
                  "state": {
                    "description": "Information of certification target subject State. See note.\n",
                    "type": "string"
                  },
                  "locality": {
                    "description": "Information of certification target subject Locality. See note.\n",
                    "type": "string"
                  },
                  "emailAddress": {
                    "description": "Information of certification contact email address. See note.\n",
                    "type": "string"
                  }
                }
              },
              "subjectAlternateName": {
                "description": "Subject alternate names of VNFCI certificates.\n",
                "type": "string"
              }
            }
          }
        }
      },
      "typeOfVnfcCertHandling": {
        "description": "This parameter shall be present only if certType is VNFCI certificate or VNF OAM certificate. It indicates the mode of certificate management for the target entity. The possible values are:\n  -\tdirect_mode\n  -\tdelegation_mode\nSee note 2.\n",
        "type": "string",
        "enum": [
          "direct_mode",
          "delegation_mode"
        ]
      },
      "_links": {
        "description": "Links to resources related to this resource.\n",
        "type": "object",
        "required": [
          "self"
        ],
        "properties": {
          "self": {
            "description": "This type represents a link to a resource using an absolute URI.\n",
            "type": "object",
            "required": [
              "href"
            ],
            "properties": {
              "href": {
                "description": "String formatted according to IETF RFC 3986.\n",
                "type": "string"
              }
            }
          }
        }
      }
    }
}
+116 −0
Changes for SOL023/CertificateManagement-API/schemas/SubjectInstances.schema.json: 116 added lines, 0 removed lines.
Original line number Diff line number Diff line
{
    "type": "array",
    "items": {
            "description": "This type represents a subject instance.\nNOTE 1: \tRegistration of target certificates of type 'MANO certificate' is not covered in this version of the present document.\nNOTE 2:\tAt least one overriding attributes shall be present, otherwise shall be absent.\n",
            "type": "object",
            "required": [
                "id",
                "certType",
                "subjectId",
                "typeOfVnfcCertHandling",
                "_links"
            ],
            "properties": {
                "id": {
                    "description": "An identifier with the intention of being globally unique.\n",
                    "type": "string"
                },
                "certType": {
                    "description": "Indicate the type of target certificate. The possible values are (see note 1):\n  -\tMANO_certificate\n  -\tVNFCI_certificate\n  -\tVNF_OAM_certificate\n",
                    "type": "string",
                    "enum": [
                        "MANO_certificate",
                        "VNFCI_certificate",
                        "VNF_OAM_certificate"
                    ]
                },
                "subjectId": {
                    "description": "Data about subjects and their certificates that need to be registered. This attribute shall be present only if certType is VNFCI certificate or VNF OAM certificate.\n",
                    "type": "object",
                    "required": [
                        "subjectId",
                        "certificateData"
                    ],
                    "properties": {
                        "subjectId": {
                            "description": "The value of the Identifier of the certificate target VNFCI as subject ID if this operation is used for the VNFCI certificate or VNF OAM certificate.\n",
                            "type": "string"
                        },
                        "certificateData": {
                            "description": "Data related to certificates for the target VNFCI.\n",
                            "type": "object",
                            "required": [
                                "subjectAlternateName"
                            ],
                            "properties": {
                                "subjectName": {
                                    "description": "This type provides input information related to subject of certificate.\nNOTE:\tAt least one overriding attributes shall be present, otherwise shall be absent.\n",
                                    "type": "object",
                                    "properties": {
                                        "commonName": {
                                            "description": "Information of certification target subject FQDN. Can be set empty when this certificate is used for encrypted communication using IP address. See note.\n",
                                            "type": "string"
                                        },
                                        "organization": {
                                            "description": "Information of certification target subject Organization. See note.\n",
                                            "type": "string"
                                        },
                                        "country": {
                                            "description": "Information of certification target subject Country. See note.\n",
                                            "type": "string"
                                        },
                                        "state": {
                                            "description": "Information of certification target subject State. See note.\n",
                                            "type": "string"
                                        },
                                        "locality": {
                                            "description": "Information of certification target subject Locality. See note.\n",
                                            "type": "string"
                                        },
                                        "emailAddress": {
                                            "description": "Information of certification contact email address. See note.\n",
                                            "type": "string"
                                        }
                                    }
                                },
                                "subjectAlternateName": {
                                    "description": "Subject alternate names of VNFCI certificates.\n",
                                    "type": "string"
                                }
                            }
                        }
                    }
                },
                "typeOfVnfcCertHandling": {
                    "description": "This parameter shall be present only if certType is VNFCI certificate or VNF OAM certificate. It indicates the mode of certificate management for the target entity. The possible values are:\n  -\tdirect_mode\n  -\tdelegation_mode\nSee note 2.\n",
                    "type": "string",
                    "enum": [
                        "direct_mode",
                        "delegation_mode"
                    ]
                },
                "_links": {
                    "description": "Links to resources related to this resource.\n",
                    "type": "object",
                    "required": [
                        "self"
                    ],
                    "properties": {
                        "self": {
                            "description": "This type represents a link to a resource using an absolute URI.\n",
                            "type": "object",
                            "required": [
                                "href"
                            ],
                            "properties": {
                                "href": {
                                    "description": "String formatted according to IETF RFC 3986.\n",
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
Loading
Loading