open-nomad/command
Seth Hoenig 87be8c4c4b consul: correctly check consul acl token namespace when using consul oss
This PR fixes the Nomad Object Namespace <-> Consul ACL Token relationship
check when using Consul OSS (or Consul ENT without namespace support).

Nomad v1.1.0 introduced a regression where Nomad would fail the validation
when submitting Connect jobs and allow_unauthenticated set to true, with
Consul OSS - because it would do the namespace check against the Consul ACL
token assuming the "default" namespace, which does not work because Consul OSS
does not have namespaces.

Instead of making the bad assumption, expand the namespace check to handle
each special case explicitly.

Fixes #10718
2021-06-08 13:55:57 -05:00
..
agent consul: correctly check consul acl token namespace when using consul oss 2021-06-08 13:55:57 -05:00
assets command: bump connect examples to v3 2021-01-10 16:54:31 -06:00
raft_tools add helper commands for debugging state 2020-08-31 08:45:59 -04:00
test-resources
acl.go
acl_bootstrap.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_bootstrap_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_policy.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
acl_policy_apply.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_apply_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_policy_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_delete_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_policy_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
acl_policy_info_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_policy_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_policy_list_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token.go
acl_token_create.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_create_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
acl_token_delete.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_delete_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_info.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_info_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_list.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
acl_token_list_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_self.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_self_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
acl_token_update.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
acl_token_update_test.go Event Stream: Track ACL changes, unsubscribe on invalidating changes (#9447) 2020-12-01 11:11:34 -05:00
agent_info.go nomad agent-info: Add json/gotemplate formatting (#9788) 2021-01-13 09:42:46 -05:00
agent_info_test.go nomad agent-info: Add json/gotemplate formatting (#9788) 2021-01-13 09:42:46 -05:00
agent_monitor.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
agent_monitor_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
alloc.go
alloc_exec.go Refactor alloc exec command (#9718) 2021-01-05 09:33:04 -08:00
alloc_exec_test.go Refactor alloc exec command (#9718) 2021-01-05 09:33:04 -08:00
alloc_exec_unix.go
alloc_exec_windows.go
alloc_fs.go Refactor alloc exec command (#9718) 2021-01-05 09:33:04 -08:00
alloc_fs_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_logs.go feat: Add -task to alloc logs command (#10026) 2021-02-16 11:21:06 -05:00
alloc_logs_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_restart.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
alloc_restart_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_signal.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
alloc_signal_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
alloc_status.go command: show number of reserved cores on alloc status output 2021-05-05 08:11:41 -04:00
alloc_status_test.go csi: alloc status -verbose should query volume request 'source' (#9354) 2020-11-16 08:28:52 -05:00
alloc_stop.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
alloc_stop_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
check.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
check_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
commands.go licensing: remove raft storage and sync 2021-04-28 10:28:23 -04:00
commands_oss.go accomodate enterprise specific commands 2020-06-22 10:27:25 -04:00
data_format.go vendor: explicit use of hashicorp/go-msgpack 2020-03-31 09:45:21 -04:00
data_format_test.go
deployment.go
deployment_fail.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_fail_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_pause.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_pause_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_promote.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
deployment_promote_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_resume.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_resume_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_status.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
deployment_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
deployment_unblock.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
deployment_unblock_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
eval.go
eval_status.go bad boolean logic for List-on-Info commands 2021-02-03 21:29:05 +00:00
eval_status_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
event.go Add missing comma in help-text example. 2020-11-02 18:00:53 -05:00
event_test.go Add event sink API and CLI commands (#9226) 2020-11-02 09:57:35 -08:00
helper_devices.go
helper_devices_test.go
helpers.go reuse existing function and typo fix 2021-04-02 11:56:27 -04:00
helpers_test.go tests: update test with a real invalid hcl2 2021-02-01 11:12:22 -05:00
integration_test.go
job.go
job_deployments.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_deployments_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_dispatch.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
job_dispatch_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_eval.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_eval_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_history.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_history_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_init.bindata_assetfs.go consul: minor CR cleanup 2021-04-05 10:10:16 -06:00
job_init.go cli: Allow user to specify dest filename for nomad init (#6520) 2019-12-19 14:59:12 -05:00
job_init_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
job_inspect.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_inspect_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_periodic.go
job_periodic_force.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_periodic_force_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_plan.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
job_plan_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
job_promote.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_promote_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_revert.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_revert_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_run.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
job_run_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
job_scale.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_scale_test.go cli: add scale and scaling-events commands to job cmd. 2020-10-06 09:58:46 +02:00
job_scaling_events.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
job_scaling_events_test.go cli: add scale and scaling-events commands to job cmd. 2020-10-06 09:58:46 +02:00
job_status.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_status_test.go Update monitor func not to take a prefix (#9251) 2020-11-02 10:24:49 -08:00
job_stop.go cli: improve wildcard namespace prefix matches (#10648) 2021-05-24 11:38:05 -04:00
job_stop_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
job_validate.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
job_validate_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
license.go license: remove "Terminates At" from license get command 2021-04-28 12:00:30 -04:00
license_get.go license: update 'license get' command 2021-04-28 12:00:30 -04:00
license_get_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
meta.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
meta_test.go
metrics.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
metrics_test.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
monitor.go Update monitor func not to take a prefix (#9251) 2020-11-02 10:24:49 -08:00
monitor_test.go Update monitor func not to take a prefix (#9251) 2020-11-02 10:24:49 -08:00
namespace.go cli: Update namespace helptext guide URL (#10074) 2021-02-23 08:31:19 -08:00
namespace_apply.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
namespace_apply_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
namespace_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_delete_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
namespace_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_inspect_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
namespace_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
namespace_status.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
namespace_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node.go command: Fix node help error 2020-11-30 11:12:06 -05:00
node_config.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_config_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_drain.go Node Drain Metadata (#10250) 2021-05-07 13:58:40 -04:00
node_drain_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_eligibility.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_eligibility_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
node_status.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
node_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator.go
operator_autopilot.go
operator_autopilot_get.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_autopilot_get_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_autopilot_set.go command: give flag-helpers a better name 2020-12-14 10:07:27 -06:00
operator_autopilot_set_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_autopilot_test.go
operator_debug.go chore: bump golangci-lint from v1.24 to v1.39 2021-04-03 09:50:23 +02:00
operator_debug_test.go debug: update defaults to commonly used values 2021-03-09 08:31:38 -05:00
operator_keygen.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
operator_keygen_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_keyring.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
operator_raft.go
operator_raft_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_raft_logs.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_remove.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_remove_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_raft_state.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
operator_raft_test.go
operator_snapshot.go Implement snapshot save CLI 2020-05-21 20:04:38 -04:00
operator_snapshot_inspect.go cli: use <file> for consistency 2020-06-19 12:19:38 -04:00
operator_snapshot_inspect_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_snapshot_restore.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
operator_snapshot_restore_test.go hclv1: tweak HCLv1 tests 2020-10-21 14:05:46 -04:00
operator_snapshot_save.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
operator_snapshot_save_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
operator_test.go
plugin.go csi: CLI for volume status, registration/deregistration and plugin status (#7193) 2020-03-23 13:58:30 -04:00
plugin_status.go cmd: validate the type flag when querying plugin status. 2021-06-07 13:53:28 +02:00
plugin_status_csi.go command/plugin_status_csi: plugin status :id keeps expected count 2020-08-31 13:56:54 -04:00
plugin_status_test.go cmd: validate the type flag when querying plugin status. 2021-06-07 13:53:28 +02:00
quota.go
quota_apply.go Port OSS changes for Enterprise Quota accounting (#10481) 2021-04-30 09:48:03 -04:00
quota_apply_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
quota_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_delete_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
quota_init.go Port OSS changes for Enterprise Quota accounting (#10481) 2021-04-30 09:48:03 -04:00
quota_init_test.go cli: filename arg for volume init and quote init 2021-04-18 14:14:05 -04:00
quota_inspect.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_inspect_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
quota_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
quota_list_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
quota_status.go cli: Handle nil MemoryMaxMB (#10620) 2021-05-19 16:56:06 -04:00
quota_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
recommendation.go cli: add recommendation commands. 2020-11-06 11:16:24 +01:00
recommendation_apply.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
recommendation_apply_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_dismiss.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
recommendation_dismiss_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_info.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_info_test.go recs cli: fixed bad composition 2020-11-11 20:52:57 +00:00
recommendation_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
recommendation_list_test.go auto-complete for recommendations CLI, plus OSS components of recommendations prefix search 2020-11-11 11:13:43 +00:00
scaling.go cli: add policy list and info to new scaling cmd. 2020-10-05 15:18:30 +02:00
scaling_policy.go cli: ensure scaling policy target doesn't have trailing comma 2020-10-06 12:18:17 +02:00
scaling_policy_info.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_info_test.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_list.go scaling policy -verbose flag, plus testing and other recommendations from review 2021-02-04 15:08:13 +00:00
scaling_policy_list_test.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
scaling_policy_test.go cli: ensure scaling policy target doesn't have trailing comma 2020-10-06 12:18:17 +02:00
sentinel.go
sentinel_apply.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_apply_test.go
sentinel_delete.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_delete_test.go
sentinel_list.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_list_test.go
sentinel_read.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
sentinel_read_test.go
server.go
server_force_leave.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
server_force_leave_test.go
server_join.go command: remove -namespace from help options when not applicable 2020-11-19 16:28:39 -05:00
server_join_test.go
server_members.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
server_members_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
status.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
status_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
system.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_gc.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
system_gc_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
system_reconcile.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_reconcile_summaries.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
system_reconcile_summaries_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00
system_reconcile_test.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
system_test.go cli: add system command and subcmds to interact with system API. 2020-01-13 11:34:46 +01:00
ui.go cli: add help for 'ui -authenticate' flag 2021-04-12 13:56:55 -04:00
util_test.go always shutdown test server on test cleanup 2020-06-25 12:44:19 -04:00
version.go
version_test.go
volume.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_create.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_create_csi.go CSI: CLI for create/delete/list 2021-03-31 16:37:09 -04:00
volume_delete.go Display confirmation message on 'nomad volume delete' and 'nomad volume deregister' 2021-05-24 12:02:55 -04:00
volume_deregister.go Display confirmation message on 'nomad volume delete' and 'nomad volume deregister' 2021-05-24 12:02:55 -04:00
volume_detach.go CSI: remove prefix matching from CSIVolumeByID and fix CLI prefix matching (#10158) 2021-03-18 14:32:40 -04:00
volume_init.go cli: filename arg for volume init and quote init 2021-04-18 14:14:05 -04:00
volume_register.go docs: describe required ACLs for all commands 2020-11-20 13:38:29 -05:00
volume_register_csi.go CSI: correctly handly empty capacity fields during registration 2021-04-02 11:48:26 -04:00
volume_register_test.go CSI: correctly handly empty capacity fields during registration 2021-04-02 11:48:26 -04:00
volume_snapshot_create.go CSI: fix decoding error on snapshot create 2021-04-07 12:00:33 -04:00
volume_snapshot_delete.go CSI: volume snapshot 2021-04-01 11:16:52 -04:00
volume_snapshot_list.go CSI snapshot list: do not shorten snapshot ID 2021-05-27 13:28:18 -04:00
volume_status.go csi: don't truncate CSI volume IDs 2021-03-12 10:39:09 -05:00
volume_status_csi.go CSI: listing from plugins can return EOF 2021-04-08 13:32:19 -04:00
volume_status_test.go cli: move tests to use NewMockUi func. 2020-10-05 16:07:41 +02:00