[feature] add --env to dokku run
`dokku run [ --env KEY=VALUE | -e KEY=VALUE ] app command` __note__ this changes the scheduler-run trigger to expect the following arguments: scheduler_name, app_name, env_count, env_0, ..., env_n, app_arg_0, ..., app_arg_n resolves: dokku/dokku#3291
This commit is contained in:
@@ -39,6 +39,18 @@ assert_url() {
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(core) run (with --env / -e)" {
|
||||
deploy_app
|
||||
run /bin/bash -c "dokku run --env TEST=testvalue -e TEST2=testvalue2 $TEST_APP env | egrep '^TEST=testvalue'"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
|
||||
run /bin/bash -c "dokku run --env TEST=testvalue -e TEST2=testvalue2 $TEST_APP env | egrep '^TEST2=testvalue2'"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "(core) unknown command" {
|
||||
run /bin/bash -c "dokku fakecommand"
|
||||
echo "output: $output"
|
||||
|
||||
Reference in New Issue
Block a user