39 Commits
Author SHA1 Message Date
FUJITA Tomonori e3b99e3f47 delete unmaintained jenkins script for testing
who still uses jenkins?

Signed-off-by: FUJITA Tomonori <[email protected]>
2021-12-09 12:40:27 +00:00
Franza CavalcanteandFUJITA Tomonori 8c90684b27 Python3 support to gobgp tests
This PR removes dependencies on old Fabric version, as it's not
supported by Python3.

The current Fabric versions don't support the colors and indent
used previously, so we found substitute methods from other
libraries and defined these in the library files.

The local function from fabric is now just a wrapper to invoke's
run function. All the files were processed through 2to3 command.

All the tests were executed and we don't see any difference on
the outputs when running Python2 or Python3.

The creation of gobgp container is removed from base.py into
fabfile.py, in order to comply with Fabric2 changes and simplify
dependencies.
2019-06-22 19:53:11 +09:00
IWASE YusukeandFUJITA Tomonori 92793f371d travis: Update .travis.yml
For scenario_test, Python build environment is more suitable rather than
Go build environment, because scenario_test is written in Python and the
building source codes will be done on Docker containers.

This patch fixes scenario_test to use Python build environment and
reduces "sudo" executions in order to use interpreter of virtualenv.

Note: On Travis-Ci, the Python interpreter of sudoer is older version,
and when install packages with "sudo pip", InsecurePlatformWarning will
be displayed. So it is better to use the newer interpreter of virtualenv.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-11-07 10:19:17 +09:00
FUJITA Tomonori 97063ee76d update travis-ci for dep
libraries are installed into vendor directory so we can't build go code outside.

Signed-off-by: FUJITA Tomonori <[email protected]>
2017-08-04 06:13:04 +09:00
FUJITA Tomonori c2e7632397 Revert "test/lib/gobgp: Use local GoBGP executables in contaier"
This reverts commit 47ab84e34c.

using the same binaries on a host and inside a container isn't always
feasible (by default, not statically linked binary).

Signed-off-by: FUJITA Tomonori <[email protected]>
2017-04-18 23:28:00 +09:00
IWASE YusukeandFUJITA Tomonori 47ab84e34c test/lib/gobgp: Use local GoBGP executables in contaier
Currently, to reflect the modification of the local source code or to
switch the base image for GoBGP container, it is required to re-build
the GoBGP container image, and this take a long time to test or debug
with the scenario tests.

This patch fixes to use the local GoBGP executables (gobgp and gobgpd)
in container, and enables to reflect the changes without rebuidling
container image.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-04-17 23:05:59 +09:00
IWASE Yusuke 0f102be986 scenario_test: pep8 and pylint improvements
Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-16 16:14:20 +09:00
IWASE Yusuke 2b86b42c7f scenario_test: "--force" option to remove directories
To avoid the intractive prompt before removals, this patch adds
"--force" option to remove directories.
Also, fixes "--recursive" to "--force" option when removing xml
files (not directories).

Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-16 15:25:07 +09:00
IWASE Yusuke 5d3fba4293 jenkins-build-script: Add shebang line
Signed-off-by: IWASE Yusuke <[email protected]>
2017-03-16 15:25:07 +09:00
Wataru IshidaandFUJITA Tomonori 251c32ae0f test: add scenario test for zapi v3
Signed-off-by: Wataru Ishida <[email protected]>
2016-10-03 17:04:53 -07:00
Wataru IshidaandFUJITA Tomonori 22f888766a travis: divide scenario tests to multiple travis jobs
Signed-off-by: Wataru Ishida <[email protected]>
2016-09-14 11:32:45 +09:00
Wataru IshidaandFUJITA Tomonori 83b6f07be7 test: test monitor feature in unit test instead of scenario test
Signed-off-by: Wataru Ishida <[email protected]>
2016-09-12 23:08:18 -07:00
Wataru IshidaandFUJITA Tomonori 585acb5888 test: run policy test sequencially
for stable test on travis-ci

Signed-off-by: Wataru Ishida <[email protected]>
2016-09-12 23:08:14 -07:00
FUJITA Tomonori c2d0ee36c3 test: use shorter device names
Don't be over 16 bytes.

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-09-12 23:05:02 -07:00
ISHIDA WataruandFUJITA Tomonori 53577ad056 Revert "test: disable monitoring tests for now"
This reverts commit d4b8a85829.

workaround commit: 10d13783c6
2016-08-15 18:53:03 +09:00
FUJITA Tomonori d4b8a85829 test: disable monitoring tests for now
docker-py's exec_start stream fails often somehow.
2016-08-12 11:47:21 +09:00
FUJITA Tomonori e8a596e4cd test: fix travis-build-script.sh to honor unit test results
Fix the bug introduced by the following commit:

commit 835d1f38e7
Author: ISHIDA Wataru <[email protected]>
Date:   Tue May 31 06:53:40 2016 +0000

    test: test go example embeded in document

Signed-off-by: FUJITA Tomonori <[email protected]>
2016-06-15 12:40:08 +09:00
ISHIDA WataruandFUJITA Tomonori 3d567b9fd8 test: add a test to check soft-reset-in behavior
test ec4e7a755f

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-02 17:44:16 +09:00
ISHIDA WataruandFUJITA Tomonori 835d1f38e7 test: test go example embeded in document
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-06-01 10:36:03 +09:00
ISHIDA Wataru 63befebdf8 test: check (*Path).Equal() is working correctly
test ebb2c9727a

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-31 04:39:53 +00:00
ISHIDA WataruandFUJITA Tomonori f580bd8fdb test: enhance route server test
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-05-14 01:48:33 +09:00
ISHIDA WataruandFUJITA Tomonori f6c909b619 test: reduce concurrency
Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-05 22:15:19 +09:00
ISHIDA WataruandFUJITA Tomonori a5b81ba381 server: add missing broadcastBests when dropping peer's routes
fix regression introduced by e6682c52ba

also add a test to check the behavior.

Signed-off-by: ISHIDA Wataru <[email protected]>
2016-04-05 22:15:19 +09:00
Hiroshi Yokoi 483fc497ac scenario_test: run scenario test on travis
Signed-off-by: Hiroshi Yokoi <[email protected]>
2016-03-14 15:14:18 +09:00
FUJITA Tomonori f140536c8e test: check error about building gobgp docker image
Signed-off-by: FUJITA Tomonori <[email protected]>
2015-11-29 16:22:54 -08:00
ISHIDA Wataru f2e50bf070 test: fix jenkins script
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-11-30 07:03:22 +09:00
Hiroshi Yokoi a76bdc8bf6 scenario_test: preserve test logs
Signed-off-by: Hiroshi Yokoi <[email protected]>
2015-09-15 13:52:16 +09:00
ISHIDA Wataru 1787dfcd74 test: remove old test result before executing test
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-09-11 12:42:48 +09:00
ISHIDA Wataru aa252a18b9 test: increse the number of concurrent test execution
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-08-26 19:18:02 +09:00
ISHIDA Wataru 7ba78e831c test: add a script for local scenario testing
NOTE: This script doesn't make a gobgp docker image for testing.
Type the command below to make/update the image.

$ fab -f ./lib/base.py make_gobgp_ctn --set tag=gobgp

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-08-18 19:09:10 +09:00
ISHIDA WataruandFUJITA Tomonori 5099fbe54d test: add flowspec scenario test
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-08-12 08:04:31 +09:00
ISHIDA WataruandFUJITA Tomonori c059eb0f88 test: add scenario test for evpn
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-08-05 17:24:36 +09:00
ISHIDA WataruandFUJITA Tomonori 27ba012b41 test: parallel execution of bgp_router_test and ibgp_router_test
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-07-27 11:26:10 +09:00
ISHIDA Wataru bcf1314bf6 test: fix missing sudo to remove useless docker images correctly
Tested-by: Hiroshi Yokoi <[email protected]>
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-07-24 14:37:18 +09:00
ISHIDA Wataru 4390dfea9a test: build docker image once, use it for all tests
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-07-24 11:48:09 +09:00
ISHIDA WataruandFUJITA Tomonori 1bf1652c08 server/table: support iBGP behavior
also added scenario_test

Signed-off-by: ISHIDA Wataru <[email protected]>
2015-07-13 08:56:08 +09:00
ISHIDA WataruandFUJITA Tomonori c922dd575a test: run pip install in jenkins script
Signed-off-by: ISHIDA Wataru <[email protected]>
2015-07-03 06:29:07 +09:00
Hiroshi YokoiandFUJITA Tomonori 5ad1a802bc scenario_test: clean up GOPATH and add route_server policy test 2015-05-11 20:57:18 +09:00
Naoto Hanaue f0a4e91418 scerio_test: add build script of jenkins 2015-04-08 14:12:30 +09:00