Jose Diaz-Gonzalez
009e37d840
refactor: remove ps command
...
`ps` should be replaced by `enter` with a specified container id.
2020-02-22 00:42:19 -05:00
Jose Diaz-Gonzalez
e19b52442b
fix: remove deprecated egrep calls from codebase
2020-02-17 05:59:52 -05:00
Jose Diaz-Gonzalez
4264380e15
feat: disable scaling if app contains DOKKU_SCALE file
...
A DOKKU_SCALE file will always be used for managing the scale count for an app if it exists in a repository. As such, ps:scale usage should be disabled in those cases. This commit makes that more apparent.
Also document how to build a specific core plugin for testing purposes.
Closes #3544
2019-05-18 15:24:59 -07:00
Jose Diaz-Gonzalez
7ed7202c67
tests: switch to bats-core
...
This switches from the older, unmaintained version of bats to one that _is_ maintained. In particular, this fork of the community version - bats-core/bats-core - adds junit timing support, which can be used to track down slow tests.
Once the bats-core/bats-core repository merges junit support, we will switch back to upstream.
Note that tests on OS X will still run using a version that _does not_ have junit timing support.
2018-12-29 05:09:30 -05:00
Jose Diaz-Gonzalez
2fc51bcf53
fix: wrap all output and status variables in quotes
...
This will ensure newlines are replaced when these variables are output for debugging tests
2018-12-27 09:02:39 -05:00
Jose Diaz-Gonzalez
3656651cb9
refactor: wrap all 'run dokku' calls in /bin/bash calls
2018-12-27 09:02:26 -05:00
Jose Diaz-Gonzalez
fd8d27d837
revert: permission and trace
2018-10-14 00:19:24 -04:00
Jose Diaz-Gonzalez
059d3dc159
fix: call run in order to override globals
2018-10-13 23:31:11 -04:00
Jose Diaz-Gonzalez
f992156dcf
fix: use run for testing failed deploy_app
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
aee8b8b659
fix: use correct app when testing scaling of non-existent process types
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
cb0ad13278
fix: proc check only works when there is Procfile available
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
d63f1cc158
fix: expand variables
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
64c6437e4e
hack: pull procfile if possible when setting ps:scale
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
2ec99bc853
hack: create the application after it gets destroyed
2018-10-11 20:19:57 -04:00
Jose Diaz-Gonzalez
01a4440f39
fix: use correct test app
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
afd101034d
feat: verify that a process exists before scaling it
...
Refs #2582
Refs #3196
2018-10-11 20:19:56 -04:00
Jose Diaz-Gonzalez
2db8f93507
feat: error out on Procfile extraction if the procfile is invalid
...
Refs #2991
Refs #3196
2018-10-11 20:19:56 -04:00
Michael Hobbs
e23e491967
fail rest of bats file on first test failure
2016-08-25 09:27:06 -07:00
Michael Hobbs
9d387fd666
add ps:restart-policy tests
2016-07-17 15:56:55 -07:00
Paul McLanahan
6a01abb905
Fix #1564 : Use Procfile for process types in Dockerfile apps
...
* Document new Procfile feature
* Add and update tests
* Fix a typo in generate_scale_file (ref #1923 )
2016-02-18 21:22:26 -05:00
Michael Hobbs
76ad65b715
don't run app deploy tests and spread out unit tests to 4 containers. closes #1787
2015-12-21 10:18:16 -08:00