summaryrefslogtreecommitdiff
path: root/yarns.webapp
Commit message (Collapse)AuthorAgeFilesLines
* STATEDB: Generalise 'troves' table to allow more Upstream Host typesBen Hutchings2020-06-011-1/+1
| | | | | | | | | | | | | | | | | | We need to store different parameters for different upstream host types. Currently the troves table has a 'gitlab_token' column for GitLab upstreams, but in general we might need to have arbitrary parameters. That column's value is also how we determine the host type(!). * Add an explicit 'type' column * Replace the 'gitlab_token' column with a 'type_params' column that is a JSON dictionary of type-specific parameters While we're at it, and since it makes the migration simpler: * Replace 'troves' table with 'hosts' table Closes #10.
* Update terminology for hosts in internal APIs and web templatesBen Hutchings2020-06-013-28/+28
| | | | | | | | | | | | | | | | This is intended to replace all uses of "Trove" that should really be "Downstream Host" or "Upstream Host", except in the database schema and the REST API (which will probably change later). * ARCH: Update example code to reflect API name change * yarns.webapp: Update test descriptions and uses of internal APIs * units: Update and rename the ls-troves units (although they still use the ls-troves endpoint for now) Some references that really are specific to Trove integration are retained. Related to #3.
* Update to python3Pedro Alvarez2019-11-273-23/+24
|
* Add support for YAML lorriesAdam Coldrick2016-10-061-1/+1
| | | | | | | | | | | This commit makes lorry-controller understand YAML lorry files. If the file cannot be parsed as YAML then we fall back to attempting to load it as JSON, before giving up on loading it completely. The test for broken JSON is modified to use a string which is invalid for both YAML and JSON. Change-Id: If83e2e44b38e6fb63dbf0b857e143fdcabab78ac
* Remove trailing whitespaceBen Brown2015-12-153-14/+14
| | | | | | While we're here, seeing as Adam mentioned it. Change-Id: I5ddb86c70d76a84cf12fbd4eb91f3802e490d745
* Add tests for 'ignore' and 'globs' validationBen Brown2015-12-151-0/+24
| | | | | | | * Does not explicitely test 'globs' validation. * Also verifies a missing 'ignore' field does not result in error. Change-Id: I8140185a485cccdf7086533d3afcc6b7fc5f121b
* Add IMPLEMENTS for the removal of a field in a `troves` sectionBen Brown2015-12-151-0/+21
| | | | Change-Id: I42fbb8a2f2150cfbc48e07340ecedea76f41639a
* Add and make use of small python library for yarnsBen Brown2015-12-152-58/+81
| | | | | | | | Due to an unwillingness to add another IMPLEMENTS that copypasta'd the same "MATCH_n = os.environ['MATCH_n']", add this small library in an attempt to reduce the amount of repitition. Change-Id: I64dc67ad7bd4c0d7572906168c72b0628a7574db
* Match whitespace in 'Set a specific field' for json stringBen Brown2015-12-151-1/+1
| | | | Change-Id: I363b73c897b6728d9938b474f352a11d8554d669
* Fix MATCH_ assignment in 'Set a specific field for a `trove` section'Ben Brown2015-12-151-2/+2
| | | | Change-Id: I218d4b23fb27526674f96b2f2566bb9ff526f688
* 'ignore' field is no longer treated as if it were mandatoryBen Brown2015-12-151-1/+0
| | | | | | | | The README lists 'ignore' in the group of optional keys for trove specifications, yet any attempt to read the configuration without the key being present would result in a KeyError. Change-Id: I05121535b970c6d7382def46ffa720209f794633
* Merge remote-tracking branch 'origin/baserock/liw/lc-list-failed-jobs'Sam Thursfield2014-11-171-3/+54
|\ | | | | | | | | Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
| * Add tests for jobs, failed_jobs attributes in lorry specsLars Wirzenius2014-09-091-3/+54
| | | | | | | | | | | | | | | | | | | | When getting information about a lorry spec from WEBAPP (/1.0/lorry/PATH), we now need it to return two lists of job ids: one for all jobs for that lorry spec, one with failed jobs only. We test here the version of the request that returns JSON. The version that returns HTML is similar (or so we assume), but it's harder to test the HTML output so we're happy with this.
* | Add scenario for automatically removing old jobsLars Wirzenius2014-10-222-0/+69
|/
* Add yarn tests for removing ghost jobsLars Wirzenius2014-09-031-0/+79
|
* Merge branch 'liw/move-error-msgs'Lars Wirzenius2014-07-071-0/+12
|\ | | | | | | | | Reviewed-by: Sam Thursfield Reviewed-by: Richard Maw
| * Improve move-to-top/bottom API call error messagesliw/move-error-msgsLars Wirzenius2014-06-231-0/+12
| |
* | Forget "kill_job" flag for future runs of a lorryliw/anti-exterminateLars Wirzenius2014-06-231-7/+6
| | | | | | | | | | | | | | | | | | We do this by moving the "kill_job" column from the lorries table to the jobs table, renaming it to "kill" in the process. It makes no sense to have the flag to kill a specific job in the lorries table. This avoids the need to reset the flag, since it affects only a specific job, instead of all jobs of a lorry.
* | Add test cases for running killed jobs againLars Wirzenius2014-06-231-0/+23
|/ | | | | | | These tests expose a bug: when a job is killed, the flag that Lorry Controller keeps (kill_job in the lorries table) to remember that a job is to be killed is never reset, so all future attempts at running a job for the lorry kill the job at once.
* Add scenario for testing that loading broken lorries is OKbaserock/liw/new-lc-2Lars Wirzenius2014-04-221-0/+47
|
* Fix copyright yearLars Wirzenius2014-04-221-1/+1
|
* Remove extra space from method callLars Wirzenius2014-04-221-1/+1
|
* Fix an AND to be THEN for clarityLars Wirzenius2014-04-221-1/+1
|
* Fix wording of titleLars Wirzenius2014-04-221-2/+2
|
* Replace second WHEN in a row with ANDLars Wirzenius2014-04-221-1/+1
|
* Fix spelloLars Wirzenius2014-04-221-1/+1
|
* Provie step to pdo a a body-less POST requestLars Wirzenius2014-04-226-44/+57
|
* Add a "WHEN" variant of "GIVEN a running WEBAPP"Lars Wirzenius2014-04-223-35/+46
|
* Add new Lorry ControllerLars Wirzenius2014-04-158-0/+1276