go.ligato.io/vpp-agent/v3@v3.5.0/tests/robot/suites/sfcIPv6/test_controller_start/controller_startIPv6.robot (about)

     1  *** Settings ***
     2  Library      OperatingSystem
     3  #Library      RequestsLibrary
     4  #Library      SSHLibrary      timeout=60s
     5  #Library      String
     6  
     7  Resource     ../../../variables/${VARIABLES}_variables.robot
     8  
     9  Resource     ../../../libraries/all_libs.robot
    10  
    11  Force Tags        sfc     IPv6
    12  Suite Setup       Testsuite Setup
    13  Suite Teardown    Suite Cleanup
    14  Test Setup        TestSetup
    15  Test Teardown     TestTeardown
    16  
    17  *** Variables ***
    18  ${VARIABLES}=          common
    19  ${ENV}=                common
    20  ${FINAL_SLEEP}=        3s
    21  ${IP_2}=               fd30::1:b:0:0:10
    22  *** Test Cases ***
    23  Configure Environment
    24      [Tags]    setup
    25      Add Agent VPP Node    agent_vpp_1
    26      Add Agent VPP Node    agent_vpp_2
    27      ${DATA_FOLDER}=       Catenate     SEPARATOR=/       ${CURDIR}         ${TEST_DATA_FOLDER}
    28      Set Suite Variable          ${DATA_FOLDER}
    29      Start SFC Controller Container With Own Config    simpleIPv6.conf
    30      Sleep    15s
    31  
    32  Check Memif Interface On VPP1
    33      ${out}=    vpp_term: Show Interfaces    agent_vpp_1
    34      ${int}=    Get Interface Internal Name    agent_vpp_1    vpp1_memif1
    35      Should Contain    ${out}    ${int}
    36      ${out}=    Write To Machine    agent_vpp_1_term    show h
    37      Should Contain    ${out}    02:02:02:02:02:02
    38  
    39  Check Memif Interface On VPP2
    40      ${out}=    vpp_term: Show Interfaces    agent_vpp_2
    41      ${int}=    Get Interface Internal Name    agent_vpp_2    vpp2_memif1
    42      Should Contain    ${out}    ${int}
    43      ${out}=    Write To Machine    agent_vpp_2_term    show int addr
    44      Should Contain    ${out}    ${IP_2}
    45  
    46  Show Interfaces And Other Objects For Debug
    47      [Tags]    debug
    48      vpp_term: Show Interfaces    agent_vpp_1
    49      vpp_term: Show Interfaces    agent_vpp_2
    50      Write To Machine    agent_vpp_1_term    show int addr
    51      Write To Machine    agent_vpp_2_term    show int addr
    52      Write To Machine    agent_vpp_1_term    show h
    53      Write To Machine    agent_vpp_2_term    show h
    54      Write To Machine    agent_vpp_1_term    show err
    55      Write To Machine    agent_vpp_2_term    show err
    56  
    57  Done
    58      [Tags]    debug
    59      No Operation
    60  
    61  Final Sleep For Manual Checking
    62      [Tags]    debug
    63      Sleep   ${FINAL_SLEEP}
    64  
    65  *** Keywords ***
    66  Suite Cleanup
    67      Stop SFC Controller Container
    68      Testsuite Teardown
    69  
    70  TestSetup
    71      Make Datastore Snapshots    ${TEST_NAME}_test_setup
    72  
    73  TestTeardown
    74      Make Datastore Snapshots    ${TEST_NAME}_test_teardown