Commit 80282fd2 authored by Najam UI Hassan's avatar Najam UI Hassan Committed by Giacomo Bernini
Browse files

bug fix added

parent 116dc06d
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ Send Post request for NFV-MANO functional entity application state change
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}
    ${template}=    Get File    jsons/ChangeStateRequest.json
    ${template}=    Get File    jsons/ChangeStateRequest.json
    ${body}=        Format String   ${template}    state=${state}     operationalStateAction=${operationalStateAction} 
    ${body}=        Format String   ${template}    state=${state}     stateAction=${stateAction} 
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/mano_entity/change_state
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/mano_entity/change_state
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}
@@ -93,7 +93,8 @@ Check entity state
    Get    ${response['headers']['Location']}
    Get    ${response['headers']['Location']}
    Log    Validate Status code
    Log    Validate Status code
    Integer    response status    200
    Integer    response status    200
    Should Be Equal As Strings    response body manoApplicationState ${state}    ${operationalStateAction} 
    ${respState} =   Catenate    SEPARATOR=  change    ${state}    StateRequest    
    Should Be Equal As Strings    response body ${respState}    ${stateAction}  
    Log    Validated
    Log    Validated
    
    
Send Get request for NFV-MANO functional entity application state change
Send Get request for NFV-MANO functional entity application state change
@@ -427,7 +428,7 @@ Send Post request for Change interface state task
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Set Headers    {"Accept": "${ACCEPT_JSON}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}   
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization": "${AUTHORIZATION}"}   
    ${template}=    Get File    jsons/ChangeStateRequest.json
    ${template}=    Get File    jsons/ChangeStateRequest.json
    ${body}=        Format String   ${template}    state=${state}     operationalStateAction=${operationalStateAction} 
    ${body}=        Format String   ${template}    state=${state}     stateAction=${stateAction}
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/mano_entity/mano_interfaces/${manoServiceInterfaceId}/change_state    ${body}
    POST    ${apiRoot}/${apiName}/${apiMajorVersion}/mano_entity/mano_interfaces/${manoServiceInterfaceId}/change_state    ${body}
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}
@@ -441,7 +442,8 @@ Check interface state
    Get    ${response['headers']['Location']}
    Get    ${response['headers']['Location']}
    Log    Validate Status code
    Log    Validate Status code
    Integer    response status    200
    Integer    response status    200
    Should Be Equal As Strings    response body interfaceState ${state}    ${operationalStateAction} 
    ${respState} =   Catenate    SEPARATOR=  change    ${state}    StateRequest    
    Should Be Equal As Strings    response body ${respState}    ${stateAction} 
    Log    Validated
    Log    Validated
    
    
Send Get request for Change interface state task
Send Get request for Change interface state task
+2 −2
Original line number Original line Diff line number Diff line
@@ -60,8 +60,8 @@ ${origResponse} {}
${name}    EntityName
${name}    EntityName
${type}    NFVO
${type}    NFVO


${state}    operationalStateChange
${state}    operational
${operationalStateAction}    START
${stateAction}    START


${retry}   2 min
${retry}   2 min
${polling}    10 sec
${polling}    10 sec
 No newline at end of file
+2 −2
Original line number Original line Diff line number Diff line
{{
{{
	"{state}":
	"{state}StateChange":
	{{
	{{
		"operationalStateAction":"{operationalStateAction}"		
		"{state}StateAction":"{stateAction}"		
	}}
	}}


}}
}}
 No newline at end of file