Giter VIP home page Giter VIP logo

system-test's Introduction

Vespa system tests framework

Build Status

The Vespa system test framework is an automatic testing tool for creating and running system tests. It is loosely based upon the methodology used in JUnit and similar unit test frameworks, but it has added functionality for testing at system level using multiple nodes. It is written in pure Ruby.

Table of Contents

Background

Repo layout: Library files that contain the framework itself are in lib/, the tests are in tests/ and utilities and automatic runners are in bin/.

Multinode testing is well supported since the framework is largely based upon RPC calls using DRb (distributed ruby). Methods for feeding data, checking an online index or doing a query and so on are executed in the context of one of the nodes in the Vespa installation. Each of the nodes must be running a ruby process called node_server.rb that acts as a server for the RPC calls.

Install

Before running system tests, build and install Vespa following the steps in the development guide: Vespa development on CentOS Stream 8.

Usage

Vespa development

Follow the run system tests section of the development guide.

System test development

Developed system tests can be tested locally using Docker Swarm.

Initialize Docker Swarm if not done previously:

$ docker swarm init

Build Docker image with updated files and execute:

$ docker build --file docker/Dockerfile --tag ${USER}-systemtests .
$ bin/run-tests-on-swarm.sh --consoleoutput --image ${USER}-systemtests --nodes 1 --file search/basicsearch/basic_search.rb

For information about the capabilities of run-tests-on-swarm.sh:

$ bin/run-tests-on-swarm.sh --help

Contribute

We welcome contributions - see contributing

License

Code licensed under the Apache 2.0 license. See LICENSE for terms.

system-test's People

Contributors

aressem avatar arnej27959 avatar baldersheim avatar bjormel avatar bjorncs avatar bratseth avatar chunnoo avatar dependabot[bot] avatar ean avatar freva avatar frodelu avatar geirst avatar gjoranv avatar hakonhall avatar havardpe avatar hmusum avatar jobergum avatar jonmv avatar kkraune avatar lesters avatar mpolden avatar olaaun avatar olemagnusnorum avatar ollivir avatar r-andrew-dev avatar renovate[bot] avatar tokle avatar toregge avatar vekterli avatar yngveaasheim avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

system-test's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update dependency org.apache.maven.plugins:maven-jar-plugin to v3.4.1

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

dockerfile
docker/Dockerfile.almalinux8
  • docker.io/almalinux 8
docker/Dockerfile.base
docker/Dockerfile.systemtest
maven
tests/cloudconfig/config_class_plugin/app/pom.xml
tests/cloudconfig/config_proxy/simplebundle/pom.xml
tests/cloudconfig/integrationtests/config_test/pom.xml
tests/cloudconfig/supermodel/supermodelbundle/pom.xml
tests/container/assemble_container_plugin/project1/pom.xml
tests/container/assemble_container_plugin/project2/pom.xml
tests/container/jdischandler_logger/logging-bundle/pom.xml
tests/container/onnx/onnx_bundle/pom.xml
tests/container/zk_reconfig/zookeeper_test/pom.xml
tests/performance/configserver/defbundle/pom.xml
tests/performance/programmatic_feed_client/java-feed-client/pom.xml
tests/pom.xml
  • org.apache.maven.plugins:maven-compiler-plugin 3.13.0
  • org.codehaus.mojo:exec-maven-plugin 3.2.0
  • org.apache.maven.plugins:maven-assembly-plugin 3.7.1
  • org.apache.maven.plugins:maven-surefire-plugin 3.2.5
  • org.apache.maven.plugins:maven-javadoc-plugin 3.6.3
  • org.apache.maven.plugins:maven-dependency-plugin 3.6.1
  • org.apache.maven.plugins:maven-install-plugin 3.1.1
  • org.apache.maven.plugins:maven-jar-plugin 3.3.0
  • org.apache.maven.plugins:maven-resources-plugin 3.3.1
tests/search/concretedocs/concretedocs/pom.xml
tests/search/concretedocs/concretedocs2/pom.xml
tests/search/documentapi/project/pom.xml
tests/search/event-loggging/project/pom.xml
tests/search/struct_and_map_types/inherited_struct/concretedocs/pom.xml
tests/search/wasfound/project/pom.xml

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.