GithubHelp home page GithubHelp logo

psmdb-dcos-test's Introduction

PSMDB Mesosphere DCOS test repo

How to use:

  1. Create DCOS AWS stack via cli or web interface
  2. Update CONFIG file with all needed info for the cluster that is currently under test
  3. Install dcos cli command via utils/install-dcos-cli.sh
  4. Run ssh-agent:
$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-7fwywErizl/agent.25571; export SSH_AUTH_SOCK;
SSH_AGENT_PID=21432; export SSH_AGENT_PID;
echo Agent pid 12518;
  1. Add AWS key to ssh-agent:
$ ssh-add .ssh/tomislav-percona-aws-ireland.pem
  1. Start DCOS vpn tunnel:
sudo SSH_AUTH_SOCK=/tmp/ssh-7fwywErizl/agent.25571 dcos tunnel vpn
  1. Add vpn DNS servers (198.51.100.1 198.51.100.2 198.51.100.3) to /etc/systemd/resolved.conf as DNS and FallbackDNS
  2. Run tests and play around

Test run might look something like this:

~/psmdb-dcos-test/tests$ ./durability-test.bats
 - create new service (skipped)
 - setup and check connection to mongo (skipped)
 ✓ load data in usertable1
 ✓ check master pod redeploy
 ✓ load data in usertable2
 ✓ check slave pod redeploy
 ✓ load data in usertable3
 ✓ check master pod restart
 ✓ load data in usertable4
 ✓ check slave pod restart
 ✓ load data in usertable5
 - check issuing kill -9 on master (skipped: Not implemented yet.)
 ✓ load data in usertable6
 - check issuing kill -9 on slave (skipped: Not implemented yet.)
 ✓ load data in usertable7
 - check updating configuration (skipped: Not implemented yet.)
 ✓ load data in usertable8
 - check scaling up to 5 instances (skipped: Issue: https://github.com/mesosphere/dcos-mongo/issues/258)
 ✓ load data in usertable9
 - check scaling down to 3 instances (skipped: Issue: https://github.com/mesosphere/dcos-mongo/issues/258)
 - destroy service (skipped: Disabled because of https://github.com/mesosphere/dcos-mongo/issues/249)
 ✓ env cleanup

22 tests, 0 failures, 8 skipped

psmdb-dcos-test's People

Contributors

tplavcic avatar

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.