From b8e6f333d5f5e377b27ad561c8681d8a678e18ce Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 24 Sep 2017 15:06:51 +0300 Subject: Add: copyright license declaration to all files Also, ./check verifies it's in all files. --- yarns/000.yarn | 15 +++++++++++++++ yarns/100-projects.yarn | 27 +++++++++++++++++++++------ yarns/900-implements.yarn | 19 +++++++++++++++++-- yarns/lib.py | 13 +++++++++++++ 4 files changed, 66 insertions(+), 8 deletions(-) (limited to 'yarns') diff --git a/yarns/000.yarn b/yarns/000.yarn index 8267fcc..39022bf 100644 --- a/yarns/000.yarn +++ b/yarns/000.yarn @@ -1,5 +1,20 @@ --- diff --git a/yarns/100-projects.yarn b/yarns/100-projects.yarn index 31e1441..d0d72d5 100644 --- a/yarns/100-projects.yarn +++ b/yarns/100-projects.yarn @@ -1,5 +1,20 @@ # Controller project management @@ -36,7 +51,7 @@ building them. We start by starting an instance of the controller. SCENARIO managing projects GIVEN an RSA key pair for token signing - AND an access token for scopes + AND an access token for scopes ... uapi_projects_get ... uapi_projects_post ... uapi_projects_id_get @@ -59,7 +74,7 @@ building them. We start by starting an instance of the controller. ... ] ... } THEN result has status code 201 - AND body matches + AND body matches ... { ... "project": "website", ... "shell_steps": [ @@ -72,7 +87,7 @@ building them. We start by starting an instance of the controller. WHEN user makes request GET /projects THEN result has status code 200 - AND body matches + AND body matches ... { ... "projects": [ ... { @@ -90,7 +105,7 @@ building them. We start by starting an instance of the controller. GIVEN a running ick controller WHEN user makes request GET /projects/website THEN result has status code 200 - AND body matches + AND body matches ... { ... "project": "website", ... "shell_steps": [ @@ -108,7 +123,7 @@ building them. We start by starting an instance of the controller. ... ] ... } THEN result has status code 200 - AND body matches + AND body matches ... { ... "project": "website", ... "shell_steps": [ @@ -119,7 +134,7 @@ building them. We start by starting an instance of the controller. WHEN user makes request GET /projects/website THEN result has status code 200 - AND body matches + AND body matches ... { ... "project": "website", ... "shell_steps": [ diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index 3866668..9e5732a 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -1,5 +1,20 @@ # Scenario step implementations @@ -66,11 +81,11 @@ Copyright 2017 Lars Wirzenius cliapp.runcmd(argv, env=env) vars['pid'] = int(cat('pid')) wait_for_port(vars['port']) - + IMPLEMENTS WHEN user stops ick controller import os, signal os.kill(vars['pid'], signal.SIGTERM) - + IMPLEMENTS FINALLY stop ick controller import os, signal os.kill(vars['pid'], signal.SIGTERM) diff --git a/yarns/lib.py b/yarns/lib.py index 32f33ad..960f2f7 100644 --- a/yarns/lib.py +++ b/yarns/lib.py @@ -1,4 +1,17 @@ # Copyright 2017 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 +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . import errno import json -- cgit v1.2.1