summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-31 18:33:27 +0200
committerLars Wirzenius <liw@liw.fi>2017-10-31 18:33:27 +0200
commit4b9774a416f917e6d8048c9260b232fc6718a11e (patch)
treeb9659eb044ce8b1a8ce426dd32bb7e100c2a9a26 /yarns
parent5173ddc34c3d644f1e05482a678eea12042319c4 (diff)
downloadick2-4b9774a416f917e6d8048c9260b232fc6718a11e.tar.gz
Add: stub IMPLEMENTS for new scenario steps
These will need to be implemented for real, but at least it's clear now what needs to be implemented.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900-implements.yarn8
-rw-r--r--yarns/900-local.yarn3
-rw-r--r--yarns/900-remote.yarn3
3 files changed, 14 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 3bb694e..49c68b2 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -63,6 +63,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
vars['content_type'] = content_type
vars['body'] = body
+ IMPLEMENTS WHEN worker-manager makes request POST (/\S+) (.+)
+ assert 0
+
+ IMPLEMENTS WHEN worker-manager makes request GET (/\S+)
+ assert 0
## HTTP response inspection
@@ -85,3 +90,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
setup_py = os.path.join(srcdir, 'setup.py')
wanted = cliapp.runcmd(['python3', setup_py, '--version']).strip()
assertTrue(wanted.startswith(actual))
+
+ IMPLEMENTS THEN result has header (\S+): (\S+)
+ assert 0
diff --git a/yarns/900-local.yarn b/yarns/900-local.yarn
index 2bc4e0e..18bf056 100644
--- a/yarns/900-local.yarn
+++ b/yarns/900-local.yarn
@@ -40,6 +40,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
vars['issuer'] = 'localhost'
vars['audience'] = 'localhost'
+ IMPLEMENTS GIVEN an access token for (\S+) with scopes (.+)
+ assert 0
+
## Controller configuration
IMPLEMENTS GIVEN controller config uses (\S+) at the state directory
diff --git a/yarns/900-remote.yarn b/yarns/900-remote.yarn
index 0a28c81..2d013a6 100644
--- a/yarns/900-remote.yarn
+++ b/yarns/900-remote.yarn
@@ -37,6 +37,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
vars['issuer'] = 'localhost'
vars['audience'] = 'localhost'
+ IMPLEMENTS GIVEN an access token for (\S+) with scopes (.+)
+ assert 0
+
## Controller configuration
IMPLEMENTS GIVEN controller config uses (\S+) at the state directory