@@ -98,7 +98,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns) {
98
98
99
99
100
100
101
- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
101
+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
102
102
cct->_conf .set_val (" mon_dns_srv_name" , " cephmon" );
103
103
MonMap monmap;
104
104
int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -135,7 +135,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_fail) {
135
135
.WillOnce (Return (0 ));
136
136
#endif
137
137
138
- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
138
+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
139
139
// using default value of mon_dns_srv_name option
140
140
MonMap monmap;
141
141
int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -196,7 +196,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_with_domain) {
196
196
197
197
198
198
199
- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
199
+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
200
200
cct->_conf .set_val (" mon_dns_srv_name" , " cephmon_ceph.com" );
201
201
MonMap monmap;
202
202
int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -221,7 +221,7 @@ TEST_F(MonMapTest, DISABLED_build_initial_config_from_dns_with_domain) {
221
221
}
222
222
223
223
TEST (MonMapBuildInitial, build_initial_mon_host_from_dns) {
224
- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
224
+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
225
225
cct->_conf .set_val (" mon_host" , " ceph.io" );
226
226
MonMap monmap;
227
227
int r = monmap.build_initial (cct.get (), false , std::cerr);
@@ -233,7 +233,7 @@ TEST(MonMapBuildInitial, build_initial_mon_host_from_dns) {
233
233
}
234
234
235
235
TEST (MonMapBuildInitial, build_initial_mon_host_from_dns_fail) {
236
- boost::intrusive_ptr<CephContext> cct = new CephContext (CEPH_ENTITY_TYPE_MON);
236
+ boost::intrusive_ptr<CephContext> cct ( new CephContext (CEPH_ENTITY_TYPE_MON), false );
237
237
cct->_conf .set_val (" mon_host" , " ceph.noname" );
238
238
MonMap monmap;
239
239
int r = monmap.build_initial (cct.get (), false , std::cerr);
0 commit comments