Commit 13b80be3 authored by Mudassar Khan's avatar Mudassar Khan Committed by Giacomo Bernini
Browse files

editorial change of upadting OAuth Test case title, objective and log

parent 5a1bde99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ POST Change deployment flavour of a vnfInstance with permited authorization scop

POST Change deployment flavour of a vnfInstance with not permited authorization scope
    [Documentation]    Test ID: 6.3.5.6.9
    ...    Test title: POST Change deployment flavour of a vnfInstance
    ...    Test title: POST Change deployment flavour of a vnfInstance with not permited authorization scope
    ...    Test objective: The objective is to test that POST method trigger a change in VNF deployment flavour with not permited authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.7.3.1 - ETSI GS NFV-SOL 002 [2] v4.5.1
+13 −13
Original line number Diff line number Diff line
@@ -1945,7 +1945,7 @@ POST Scale vnfInstance to level with instantiationLevelId and permitted authoriz
	Set Global Variable    ${response}    ${outputResponse}

POST Scale vnfInstance to level with instantiationLevelId and not permitted authorization scope
    Log    Trying to scale a vnf Instance to level using OAuth Token with permited scopes
    Log    Trying to scale a vnf Instance to level using OAuth Token with not permited scopes
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
@@ -2299,7 +2299,7 @@ Post Rollback operation with not permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
Post Fail operation with permitted authorization scope
    Log    mark as Failed a VNF lifecycle operation if that operation has experienced a failure
    Log    mark as Failed a VNF lifecycle operation if that operation has experienced a failure with permitted authorization scope
    ${scope_value}=    Create Dictionary    scopeValue=${OPERATION_OCCURANCE_SCOPE}
    ${authorizationToken}=    JWT Encode    payload=${scope_value}    key=''    algorithm=${OAUTH_Encryption_ALGORITHM}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${authorizationToken}"}
@@ -2308,7 +2308,7 @@ Post Fail operation with permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
Post Fail operation with not permitted authorization scope
    Log    mark as Failed a VNF lifecycle operation if that operation has experienced a failure
    Log    mark as Failed a VNF lifecycle operation if that operation has experienced a failure with not permitted authorization scope
    ${scope_value}=    Create Dictionary    scopeValue=${NEG_SCOPE}
    ${authorizationToken}=    JWT Encode    payload=${scope_value}    key=''    algorithm=${OAUTH_Encryption_ALGORITHM}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${authorizationToken}"}
@@ -2317,7 +2317,7 @@ Post Fail operation with not permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
POST Cancel operation task with permitted authorization scope
    Log    Cancel an ongoing VNF lifecycle operation
    Log    Cancel an ongoing VNF lifecycle operation with permitted authorization scope.
    ${scope_value}=    Create Dictionary    scopeValue=${OPERATION_OCCURANCE_SCOPE}
    ${authorizationToken}=    JWT Encode    payload=${scope_value}    key=''    algorithm=${OAUTH_Encryption_ALGORITHM}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${authorizationToken}"}
@@ -2331,13 +2331,13 @@ POST Cancel operation task with not permitted authorization scope
    ${scope_value}=    Create Dictionary    scopeValue=${NEG_SCOPE}
    ${authorizationToken}=    JWT Encode    payload=${scope_value}    key=''    algorithm=${OAUTH_Encryption_ALGORITHM}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${authorizationToken}"}
    Log    Cancel a VNF lifecycle operation
    Log    Cancel a VNF lifecycle operation with not permitted authorization scope
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}/cancel    ${CancelMode}
    Log    Validate Status code
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
Post Create subscription with permitted authorization scope
    Log    Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
    Log    Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions with permitted authorization scope
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
@@ -2356,7 +2356,7 @@ Post Create subscription with permitted authorization scope
	Set Global Variable    ${response}    ${outputResponse}
	Clear Requests    ${callback_endpoint}
Post Create subscription with not permitted authorization scope
    Log    Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions
    Log    Create subscription instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/subscriptions with not permitted authorization scope
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
@@ -2375,7 +2375,7 @@ Post Create subscription with not permitted authorization scope
	Set Global Variable    ${response}    ${outputResponse}
	Clear Requests    ${callback_endpoint}
GET individual VNF Snapshot with permitted authorization scope
    log    Trying to get information about an individual VNF snapshot
    log    Trying to get information about an individual VNF snapshot with permitted authorization scope
    Set Headers    {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Set Headers    {"Content-Type": "${CONTENT_TYPE}"}
@@ -2386,7 +2386,7 @@ GET individual VNF Snapshot with permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}     
GET individual VNF Snapshot with not permitted authorization scope
    log    Trying to get information about an individual VNF snapshot
    log    Trying to get information about an individual VNF snapshot with not permitted authorization scope
    Set Headers    {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Set Headers    {"Content-Type": "${CONTENT_TYPE}"}
@@ -2397,7 +2397,7 @@ GET individual VNF Snapshot with not permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}  
Get Individual subscription with permitted authorization scope
    log    Trying to get information about an individual subscription
    log    Trying to get information about an individual subscription with permitted authorization scope
    Set Headers    {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Set Headers    {"Content-Type": "${CONTENT_TYPE}"}
@@ -2408,7 +2408,7 @@ Get Individual subscription with permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	
Get Individual subscription with not permitted authorization scope
    log    Trying to get information about an individual subscription
    log    Trying to get information about an individual subscription with not permitted authorization scope
    Set Headers    {"Accept":"${ACCEPT}"}
    Set Headers    {"Version": "${API_VERSION}"}  
    Set Headers    {"Content-Type": "${CONTENT_TYPE}"}
@@ -2419,7 +2419,7 @@ Get Individual subscription with not permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}	
POST Create a new VNF Snapshot with permitted authorization scope
    Log    Create VNF snapshot by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots
    Log    Create VNF snapshot by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots with permitted authorization scope
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
@@ -2432,7 +2432,7 @@ POST Create a new VNF Snapshot with permitted authorization scope
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 	
POST Create a new VNF Snapshot with not permitted authorization scope
    Log    Create VNF snapshot by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots
    Log    Create VNF snapshot by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_snapshots with not permitted authorization scope
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}