/AWS1/IF_REV=>UPDATETEST()¶
About UpdateTest¶
Updates the configuration of an existing test.
Method Signature¶
METHODS /AWS1/IF_REV~UPDATETEST
IMPORTING
!IV_TESTID TYPE /AWS1/REVTESTID OPTIONAL
!IV_SERVICEARN TYPE /AWS1/REVARN OPTIONAL
!IO_LOGGINGCONFIGURATION TYPE REF TO /AWS1/CL_REVLOGGINGCONF OPTIONAL
!IT_STOPCONDITIONS TYPE /AWS1/CL_REVSTOPCONDITION=>TT_STOPCONDITIONLIST OPTIONAL
!IV_ROLENAME TYPE /AWS1/REVENTITYNAME OPTIONAL
!IT_PARAMETERS TYPE /AWS1/CL_REVSTRINGLIST_W=>TT_TESTPARAMETERS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_revupdatetestresponse
RAISING
/AWS1/CX_REVACCESSDENIEDEX
/AWS1/CX_REVCONFLICTEXCEPTION
/AWS1/CX_REVINTERNALSERVEREX
/AWS1/CX_REVRESOURCENOTFOUNDEX
/AWS1/CX_REVVLDTNEXCEPTION
/AWS1/CX_REVCLIENTEXC
/AWS1/CX_REVSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_testid TYPE /AWS1/REVTESTID /AWS1/REVTESTID¶
The identifier of the test to update.
iv_servicearn TYPE /AWS1/REVARN /AWS1/REVARN¶
The ARN of the service the test belongs to.
Optional arguments:¶
io_loggingconfiguration TYPE REF TO /AWS1/CL_REVLOGGINGCONF /AWS1/CL_REVLOGGINGCONF¶
The updated logging configuration for the test.
it_stopconditions TYPE /AWS1/CL_REVSTOPCONDITION=>TT_STOPCONDITIONLIST TT_STOPCONDITIONLIST¶
The updated stop conditions for the test.
iv_rolename TYPE /AWS1/REVENTITYNAME /AWS1/REVENTITYNAME¶
The updated IAM execution role name.
it_parameters TYPE /AWS1/CL_REVSTRINGLIST_W=>TT_TESTPARAMETERS TT_TESTPARAMETERS¶
The updated parameter values for the test.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_revupdatetestresponse /AWS1/CL_REVUPDATETESTRESPONSE¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatetest(
io_loggingconfiguration = new /aws1/cl_revloggingconf(
iv_cloudwatchloggrouparn = |string|
iv_logschemaversion = |string|
iv_s3bucketname = |string|
)
it_parameters = VALUE /aws1/cl_revstringlist_w=>tt_testparameters(
(
VALUE /aws1/cl_revstringlist_w=>ts_testparameters_maprow(
key = |string|
value = VALUE /aws1/cl_revstringlist_w=>tt_stringlist(
( new /aws1/cl_revstringlist_w( |string| ) )
)
)
)
)
it_stopconditions = VALUE /aws1/cl_revstopcondition=>tt_stopconditionlist(
(
new /aws1/cl_revstopcondition(
iv_source = |string|
iv_value = |string|
)
)
)
iv_rolename = |string|
iv_servicearn = |string|
iv_testid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_test = lo_result->get_test( ).
IF lo_test IS NOT INITIAL.
lv_testid = lo_test->get_testid( ).
lv_serviceownedarn = lo_test->get_testtemplatearn( ).
lv_arn = lo_test->get_servicearn( ).
lv_string = lo_test->get_name( ).
LOOP AT lo_test->get_actions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_actionid( ).
lv_string = lo_row_1->get_description( ).
lv_string = lo_row_1->get_resourcetype( ).
ENDIF.
ENDLOOP.
lo_loggingconfiguration = lo_test->get_loggingconfiguration( ).
IF lo_loggingconfiguration IS NOT INITIAL.
lv_string = lo_loggingconfiguration->get_s3bucketname( ).
lv_arn = lo_loggingconfiguration->get_cloudwatchloggrouparn( ).
lv_string = lo_loggingconfiguration->get_logschemaversion( ).
ENDIF.
LOOP AT lo_test->get_stopconditions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_stopconditionsource = lo_row_3->get_source( ).
lv_string = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_entityname = lo_test->get_rolename( ).
LOOP AT lo_test->get_parameters( ) into ls_row_4.
lv_key = ls_row_4-key.
LOOP AT ls_row_4-value into lo_row_5.
lo_row_6 = lo_row_5.
IF lo_row_6 IS NOT INITIAL.
lv_parametervalue = lo_row_6->get_value( ).
ENDIF.
ENDLOOP.
ENDLOOP.
lv_integer = lo_test->get_totaltestruns( ).
lv_integer = lo_test->get_successfultestruns( ).
lv_timestamp = lo_test->get_creationtime( ).
ENDIF.
ENDIF.