]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Add test for #13829 7390/head
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 27 Jan 2016 01:34:47 +0000 (11:34 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Fri, 29 Jan 2016 08:06:45 +0000 (18:06 +1000)
qa/workunits/cephtool/test.sh: add test for setting negative int options
src/test/daemon_config.cc: remove tests for failed negative values

Fixes: #13829
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
qa/workunits/cephtool/test.sh
src/test/daemon_config.cc

index 7090c813e41312f3424e228c6d7f6dcb3bfc745f..6988b40b0137a16aa0c74e5ec5516ce46b568068 100755 (executable)
@@ -1647,6 +1647,12 @@ function test_osd_bench()
   ceph tell osd.0 bench 104857600 2097152
 }
 
+function test_osd_negative_filestore_merge_threshold()
+{
+  $SUDO ceph daemon osd.0 config set filestore_merge_threshold -1
+  expect_config_value "osd.0" "filestore_merge_threshold" -1
+}
+
 function test_mon_tell()
 {
   ceph tell mon.a version
@@ -1818,6 +1824,7 @@ MON_TESTS+=" mon_ping"
 MON_TESTS+=" mon_deprecated_commands"
 MON_TESTS+=" mon_caps"
 OSD_TESTS+=" osd_bench"
+OSD_TESTS+=" osd_negative_filestore_merge_threshold"
 OSD_TESTS+=" tiering_agent"
 
 MDS_TESTS+=" mds_tell"
index 6d32e150ccc49b97a34a385cd5ff8f3144bc2b61..6187ee56b62413d8ac6aa1db4f88b9cf10797771 100644 (file)
@@ -338,14 +338,6 @@ TEST(DaemonConfig, ThreadSafety1) {
 }
 
 TEST(DaemonConfig, InvalidIntegers) {
-  {
-    int ret = g_ceph_context->_conf->set_val("num_client", "-1");
-    ASSERT_EQ(ret, -EINVAL);
-  }
-  {
-    int ret = g_ceph_context->_conf->set_val("num_client", "-1K");
-    ASSERT_EQ(ret, -EINVAL);
-  }
   {
     long long bad_value = (long long)std::numeric_limits<int>::max() + 1;
     string str = boost::lexical_cast<string>(bad_value);