summaryrefslogtreecommitdiffstats
path: root/src/test/cli/ceph-conf/env-vs-args.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/test/cli/ceph-conf/env-vs-args.t
parentInitial commit. (diff)
downloadceph-b26c4052f3542036551aa9dec9caa4226e456195.tar.xz
ceph-b26c4052f3542036551aa9dec9caa4226e456195.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/cli/ceph-conf/env-vs-args.t')
-rw-r--r--src/test/cli/ceph-conf/env-vs-args.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/cli/ceph-conf/env-vs-args.t b/src/test/cli/ceph-conf/env-vs-args.t
new file mode 100644
index 000000000..edb42ad6d
--- /dev/null
+++ b/src/test/cli/ceph-conf/env-vs-args.t
@@ -0,0 +1,14 @@
+# we can use CEPH_CONF to override the normal configuration file location.
+ $ env CEPH_CONF=from-env ceph-conf -s foo bar
+ did not load config file, using default settings.
+ .* \-1 Errors while parsing config file! (re)
+ .* \-1 can't open from-env: \(2\) (No such file or directory)? (re)
+ .* \-1 Errors while parsing config file! (re)
+ .* \-1 can't open from-env: \(2\) (No such file or directory)? (re)
+ [1]
+
+# command-line arguments should override environment
+ $ env -u CEPH_CONF ceph-conf -c from-args
+ global_init: unable to open config file from search list from-args
+ [1]
+