Commit Graph
3 Commits
Author SHA1 Message Date
Sebastian Malton 73fd09c57d special case */namespace/* in parseApi, add test (#509) 2020-06-24 09:20:28 +03:00
Sebastian MaltonandSebastian Malton c69fe250fa fix parseApi to not throw and to match apiVersion more specifically (#496)
* remove the explicit throw is new parseApi

* fix parseApi to be more consitent with the older version

- Add many more unit tests (these are exact copies of the old behaviour
  so that any changes do not change behaviour)

- Make explicit, with documentation, why certain actions are being taken
  with the parsing of the api URL parts

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-06-24 09:19:57 +03:00
Sebastian MaltonandSebastian Malton 29d6b0b989 Fix parseAPI not working with non-"namespaces" pathnames. (#450)
* fix parseApi not accepting versions that don't start with 'v'
* add unit tests

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-06-24 09:17:34 +03:00