File tree 7 files changed +23
-14
lines changed
7 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ edition = "2021"
8
8
9
9
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
10
10
11
+ [lib ]
12
+ doctest = false
13
+ test = false
14
+
11
15
[dependencies ]
12
16
common-base = {path = " ../base" }
13
17
common-exception = {path = " ../exception" }
Original file line number Diff line number Diff line change 13
13
// limitations under the License.
14
14
//
15
15
16
- #[ cfg( test) ]
17
- mod cluster_mgr_test;
18
-
19
16
mod cluster_api;
20
17
mod cluster_mgr;
21
18
Original file line number Diff line number Diff line change @@ -20,4 +20,5 @@ pub use cluster::ClusterApi;
20
20
pub use cluster:: ClusterMgr ;
21
21
pub use user:: user_api:: UserInfo ;
22
22
pub use user:: user_api:: UserMgrApi ;
23
+ pub use user:: user_mgr:: format_user_key;
23
24
pub use user:: user_mgr:: UserMgr ;
Original file line number Diff line number Diff line change 15
15
16
16
pub ( crate ) mod user_api;
17
17
pub ( crate ) mod user_mgr;
18
-
19
- #[ cfg( test) ]
20
- mod user_mgr_test;
Original file line number Diff line number Diff line change @@ -19,14 +19,12 @@ use std::time::UNIX_EPOCH;
19
19
20
20
use common_base:: tokio;
21
21
use common_exception:: Result ;
22
+ use common_management:: * ;
22
23
use common_meta_api:: KVApi ;
23
24
use common_meta_embedded:: MetaEmbedded ;
24
25
use common_meta_types:: NodeInfo ;
25
26
use common_meta_types:: SeqV ;
26
27
27
- use super :: * ;
28
- use crate :: cluster:: cluster_mgr:: ClusterMgr ;
29
-
30
28
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
31
29
async fn test_successfully_add_node ( ) -> Result < ( ) > {
32
30
let current_time = current_seconds_time ( ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2020 Datafuse Labs.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ mod cluster;
16
+ mod user;
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ use std::sync::Arc;
18
18
use async_trait:: async_trait;
19
19
use common_base:: tokio;
20
20
use common_exception:: ErrorCode ;
21
+ use common_management:: * ;
21
22
use common_meta_api:: KVApi ;
22
23
use common_meta_types:: GetKVActionReply ;
23
24
use common_meta_types:: MGetKVActionReply ;
@@ -30,11 +31,6 @@ use common_meta_types::UpsertKVActionReply;
30
31
use mockall:: predicate:: * ;
31
32
use mockall:: * ;
32
33
33
- use crate :: user:: user_api:: UserInfo ;
34
- use crate :: user:: user_api:: UserMgrApi ;
35
- use crate :: user:: user_mgr:: format_user_key;
36
- use crate :: UserMgr ;
37
-
38
34
// and mock!
39
35
mock ! {
40
36
pub KV { }
You can’t perform that action at this time.
0 commit comments