aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/config
AgeCommit message (Expand)AuthorFilesLines
2019-04-09Refactor SimulatorFactory in PnfSimulatorbiniek1-24/+24
2019-03-14Revert removal of ipaddress from configbiniek1-0/+2
2019-03-13Update pnfsimulator configbiniek1-23/+30
2018-10-12PNF Simulator - fix fileFormatTypeMarcin Migdal1-1/+1
2018-09-13Extracting configs and schema for notificationsMarcin Migdal1-10/+31
2018-08-20update according to new schemamicdzied1-9/+10
2018-08-16Use values according to Nokia proposalMarcin Migdal1-5/+5
2018-08-02Preparing simulator for INT-607Marcin Migdal1-1/+1
2018-06-15Add netconf support to pnfsimulator.Pawel Kadlubanski2-0/+28
ghlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
#!/bin/bash

source /var/onap_tests/_test_base
source /var/onap/robot

covered_functions=(
"clone_robot_repos" "compile_robot_repos" "get_robot_images" "install_robot"
)

# test_clone_robot_repos() - Verify that Robot repositories are cloned properly
function test_clone_robot_repos {
    clone_repos "robot" "testsuite"

    asserts_file_exist ${src_folders[robot]}/LICENSE.TXT
    asserts_file_exist ${src_folders[robot]}/heatbridge/pom.xml
    asserts_file_exist ${src_folders[robot]}/properties/LICENSE.TXT
    asserts_file_exist ${src_folders[robot]}/python-testing-utils/LICENSE.TXT
}

# test_compile_robot_repos() - Verify that Robot source code can be compiled properly
function test_compile_robot_repos {
    clone_repos "robot" "testsuite"
    compile_repos "robot"

    #asserts_file_exist $testsuite_src_folder/heatbridge/target/maven-python/dist/heatbridge-0.3.0.dev0-py2-none-any.whl
}

# test_get_robot_images() - Verify that Robot Docker images are retrieved
function test_get_robot_images {
    get_robot_images

    asserts_image $nexus_docker_repo/onap/testsuite
}

# test_install_robot() - Verify the built and start of Robot services
function test_install_robot {
    clone_repos "robot" "testsuite"
    get_robot_images
    install_robot

    asserts_image_running $nexus_docker_repo/onap/testsuite
}

if [ "$1" != '*' ]; then
    unset covered_functions
    covered_functions=$1
fi
main "${covered_functions[@]}"