- 04 Jun, 2021 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 29 Mar, 2021 1 commit
-
-
Jérome Perrin authored
slapos.cookbook recipe tests sometimes manipulate buildout eggs working set, which will install packages from pypi. makeRecipe utilty function was guessing buildout egg folders by parsing builout.cfg, but since a33844a2 (slapos-testing, slapos-sr-testing: Don't duplicate instance.cfg prologue that is already provided by stack/nxdtest/instance.cfg, 2021-03-22), these are defined in an extended profile, so this stopped working. Instead of this fragile pattern, make the test software release pass the eggs directories with an explicit environment variable.
-
- 24 Feb, 2021 1 commit
-
-
Jérome Perrin authored
use six for python3 compatibility
-
- 22 Feb, 2021 1 commit
-
-
Jérome Perrin authored
So that the test fail if they are missing.
-
- 02 Dec, 2020 1 commit
-
-
Léo-Paul Géneau authored
-
- 26 Nov, 2020 1 commit
-
-
Jérome Perrin authored
-
- 24 Apr, 2020 1 commit
-
-
Thomas Gambier authored
See !739
-
- 08 Apr, 2020 2 commits
-
-
Jérome Perrin authored
If for example the ip changed, this recipe needs to re-generate configuration files.
-
Jérome Perrin authored
-
- 30 Aug, 2019 2 commits
-
-
Bryton Lacquement authored
-
Jérome Perrin authored
unlike what I assumed, env argument of ConfigParser.get does not work as dict.get, it has priority. This broke the case of SLAPOS-EGG-TEST Rewrite this using ConfigParser.has_option
-
- 28 Aug, 2019 1 commit
-
-
Jérome Perrin authored
Now that we also run slapos.cookbook tests from SLAPOS-SR-TEST we cannot simply examine buildout.cfg, because unlike SLAPOS-EGG-TEST this repository is now checked out in parts of the software folder, not the instance folder. So that trick of looking up the egg directories in buildout does not work, because this is a software buildout.cfg ... instead, we assume that the standard eggs and develop-eggs directories are used.
-
- 02 Aug, 2019 1 commit
-
-
Thomas Gambier authored
-
- 20 Feb, 2019 1 commit
-
-
Alain Takoudjou authored
-
- 18 Feb, 2019 1 commit
-
-
Alain Takoudjou authored
Use json.dumps/.loads to generate promise plugin code. This is safe as it will correctly escape sring and prevent code injection from untrustable parameters. Add 'import' parameter to simplify parameters used to generate the script instead of passing full import code. When import parameter is set, promise will be loaded from that import path and parameter `content` is ignored. /reviewed-on !515
-
- 27 Dec, 2018 1 commit
-
-
Łukasz Nowak authored
/reviewed-on !480
-
- 26 Nov, 2018 1 commit
-
-
Jérome Perrin authored
Using https://python-jsonschema.readthedocs.io/en/latest/validate/#versioned-validators instead of a local copy of json schema
-
- 03 Sep, 2018 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
-
- 31 Aug, 2018 2 commits
-
-
Łukasz Nowak authored
It is combination of requestoptional and serialised.
-
Łukasz Nowak authored
In order to avoid needless inheritance create JSONCodec and use it, also with renaming Serialised to RequestJSONEncoded. Also provide a test asserting that important log is seen in case if no expected return is set. Add testfixtures module to catch logging.
-
- 27 Apr, 2018 1 commit
-
-
Jérome Perrin authored
To be compatible with buildout (and not only `slapos.recipe.template:jinja2`) See [#20180416-1138FFA](https://nexedi.erp5.net/bug_module/20180416-1138FFA/) --- Running this buildout: ``` [buildout] parts=x [userinfo] recipe = slapos.cookbook:userinfo [x] recipe = plone.recipe.command command = echo "Hello user id ${userinfo:pw-uid}" ``` In a slapos patched buildout it outputs: `"Hello user id !py!991"` (which means it's not usable for references directly in other buildout parts) In a "non patched" buildout fail with error: ``` While: Installing. Getting section x. Initializing section x. Getting option x:command. Getting section userinfo. Initializing section userinfo. An internal error occurred due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 2127, in main getattr(buildout, command)(args) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 681, in install [self[part]['recipe'] for part in install_parts] File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__ options._initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1376, in _initialize self._dosub(k, v) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1431, in _dosub v = '$$'.join([self._sub(s, seen) for s in v.split('$$')]) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1495, in _sub v = self.buildout[section].get(option, None, seen) File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1278, in __getitem__ options._initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1386, in _initialize self.initialize() File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1395, in initialize self.recipe = recipe_class(buildout, name, self) File "/tmp/x/eggs/slapos.cookbook-1.0.62-py2.7.egg/slapos/recipe/userinfo.py", line 13, in __init__ options['pw-uid'] = pinfo.pw_uid File "/tmp/x/env/lib/python2.7/site-packages/zc/buildout/buildout.py", line 1520, in __setitem__ raise TypeError('Option values must be strings', value) TypeError: ('Option values must be strings', 991) ``` /cc @Nicolas @alain.takoudjou @vpelletier /reviewed-on !321
-
- 04 Apr, 2018 1 commit
-
-
Jérome Perrin authored
This function factorize the code to instanciate a recipe in a fake buildout. The new feature is that if running in a buildout directory, the recipe will reuse the eggs from this buildout instead of trying to install eggs again.
-
- 12 Mar, 2018 1 commit
-
-
Boris Kocherov authored
thx @jerome
-
- 13 Feb, 2018 1 commit
-
-
Julien Muchembled authored
-
- 14 Nov, 2017 1 commit
-
-
Julien Muchembled authored
inotifyx does not support Python 3.
-
- 02 Oct, 2017 2 commits
-
-
Jérome Perrin authored
Test will fail if /tmp/instance_test_resourcefile already exists
-
Jérome Perrin authored
All tests from `slapos.test.recipe` module were executed twice since f8de4cc4 when running as `python setup.py test` `python setup.py test --test-suite slapos.test.test_recipe.additional_tests` still runs only tests for recipes and `python setup.py test` runs tests for recipe and static tests for software releases (for now json schema). @rafael @katomaso /reviewed-on !234
-
- 13 Jun, 2017 2 commits
-
-
Tomáš Peterka authored
-
Tomáš Peterka authored
-
- 21 Mar, 2017 1 commit
-
-
Rafael Monnerat authored
* db-path was removed from command parameter * Only a single command is generated now, instead several wrappers. * Wrapper to registry is not generated from recipe anymore, it is geneated by a normal section.
-
- 24 Jan, 2017 2 commits
-
-
Tristan Cavelier authored
-
Tristan Cavelier authored
-
- 30 Dec, 2016 1 commit
-
-
Alain Takoudjou authored
-
- 15 Nov, 2016 1 commit
-
-
Nicolas Wavrant authored
This reverts commit 2b0c61d9.
-
- 21 Oct, 2016 1 commit
-
-
Nicolas Wavrant authored
-
- 17 Oct, 2016 1 commit
-
-
Nicolas Wavrant authored
-
- 29 Sep, 2016 1 commit
-
-
Nicolas Wavrant authored
/reviewed-on !101
-
- 27 Sep, 2016 1 commit
-
-
Nicolas Wavrant authored
-