juju-solutions / matrix

Automatic testing of big software deployments under various failure conditions
Other
8 stars 9 forks source link

how to use a conjure-up spell? #117

Closed adam-stokes closed 7 years ago

adam-stokes commented 7 years ago

Im sure im doing something stupid but running:

ubuntu@tupac:~/spells$ juju matrix -c conjure-up-localhost-d11 -m hai -p ./canonical-kubernetes
usage: juju-matrix [-h] [-c CONTROLLER] [-m MODEL] [-M MODEL_PREFIX] [-k]
                   [-l LOG_LEVEL] [-L [LOG_NAME [LOG_NAME ...]]]
                   [-f [LOG_FILTER [LOG_FILTER ...]]] [-d OUTPUT_DIR]
                   [-s {tui,raw}] [-x FILENAME] [-F] [-i INTERVAL] [-p PATH]
                   [-D] [-B] [-t [TEST_PATTERN [TEST_PATTERN ...]]]
                   [-g CHAOS_PLAN] [-n CHAOS_NUM] [-o CHAOS_OUTPUT]
                   [-z TIMEOUT] [-H]
                   [additional_suites [additional_suites ...]]
juju-matrix: error: Invalid bundle directory: canonical-kubernetes
ubuntu@tupac:~/spells$ ls canonical-kubernetes/
metadata.yaml  readme.md  steps  tests

This is with the snap version of juju-matrix

ubuntu@tupac:~/spells$ snap info juju-matrix
name:      juju-matrix
summary:   "Automatic testing of big software deployments under various failure conditions"
publisher: lutostag
contact:   https://github.com/juju-solutions/matrix/issues
description: |
  This is a test engine designed to validate proper function of real-world
  software solutions under a variety of adverse conditions. While this system
  can run in a way very similar to bundletester this engine is designed to a
  different model. The idea here is to bring up a running deployment, set of a
  pattern of application level tests and ensure that the system functions after
  operations modelled with Juju are performed. In addition the system supports
  large scale failure injection such a removal of units or machines while tests
  are executing.

commands:
  - juju-matrix
tracking:  edge
installed: 0.9.0 (8) 9MB classic
refreshed: 2017-03-30 19:48:27 +0000 UTC
channels:            
  edge:    0.9.0 (8) 9MB classic

Please let me know if im missing anything, thanks

pengale commented 7 years ago

@battlemidget Right now, matrix assumes that you have a bundle.yaml in your bundle/spell directory. if you can have a valid spell without having a bundle.yaml, I probably need to change that :-)

I just need to change a check that checks for bundle.yaml to check for bundle.yaml or metadata.yaml -- I 'll try to push a fix for it today. In the meantime, I think that you can unblock yourself by just temporarily adding a blank bundle.yaml to the directory.

pengale commented 7 years ago

PR here: https://github.com/juju-solutions/matrix/pull/119

pengale commented 7 years ago

This should be working now. @battlemidget: feel free to re-open if it's not.