summaryrefslogtreecommitdiff
path: root/yarns/000.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-28 08:00:28 +0300
committerLars Wirzenius <liw@liw.fi>2019-07-05 20:59:10 +0300
commit1fc41ad97411b435c512ba3a0de63929eda9c33d (patch)
tree753b342e70c5ac2bf64eb619e95f815d47588e0b /yarns/000.yarn
parent1c6d50edf9041055f4804a1ba21a4fc5499bb0a9 (diff)
downloadick2-1fc41ad97411b435c512ba3a0de63929eda9c33d.tar.gz
Change: make yarns run against a remote Ick instance, not local
Diffstat (limited to 'yarns/000.yarn')
-rw-r--r--yarns/000.yarn33
1 files changed, 14 insertions, 19 deletions
diff --git a/yarns/000.yarn b/yarns/000.yarn
index d5db1a1..12bdea2 100644
--- a/yarns/000.yarn
+++ b/yarns/000.yarn
@@ -1,6 +1,6 @@
<!--
-Copyright 2017 Lars Wirzenius
+Copyright 2017,2019 Lars Wirzenius
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
@@ -34,30 +34,25 @@ system. Written for execution by [yarn][].
## Running this test suite
-This test suite tests an Ick2 controller, and can either run in a
-local or remote mode. In local mode, each test scenario starts and
-stops a local instance, and runs tests against that. In remote mode,
-an existing, running controller instance is assumed, and tests are run
-against that.
+This test suite tests a deployed Ick2 controller and other components of Ick,
+but not the workers. The deployed Ick2 must not have any workers, and
+must be "empty", meaning, no project, pipelines, etc, must be defined.
+The test suit deletes everything.
-The `./check` script runs the tests. By default it runs in local mode.
-Local mode can be specified explicitly with the `local` parameter:
+The `./check` script runs the tests. It can run only local tests,
+which are mainly unit tests and code health.
EXAMPLE running the test suite in local mode
./check
- ./check local
- ./check local -v --tempdir tmp --snapshot
`./check` can be given extra arguments, which it will pass on to
-`yarn`.
-
-To run the tests in remote mode, give the controller URL:
+`yarn` to test a remote Ick instance, which may not have workers. The
+first argument is the controller URL:
EXAMPLE running the test suite in local mode
- ./check https://ick-controller --env ICK_PRIVATE_KEY=~/tmp/ick.key
- ./check https://ick-controller --env ICK_PRIVATE_KEY=~/tmp/ick.key \
- -v --tempdir tmp --snapshot
+ ./check https://ick-controller
+ ./check https://ick-controller -v --tempdir tmp --snapshot
-The URL **must** be an `https` URL. Additionally, the environment
-variable `ICK_PRIVATE_KEY` must be given a path to the *private* key
-for signing tokens, so that a new token can be generated.
+The URL **must** be an `https` URL. `qvisqvetool` must be configured
+to suppot the given Ick instance, so that test clients for API use can
+be managed by yarn automatically.