Skip to content

Commit 141cf34

Browse files
server: Rename lib crate
Avoids having a completely separate crate name.
1 parent 1cdfd4c commit 141cf34

7 files changed

Lines changed: 37 additions & 37 deletions

File tree

client/src/migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ mod tests {
8282
#[cfg(feature = "tokio")]
8383
async fn test_migrate_from_dbus_to_file() {
8484
let temp_dir = tempfile::tempdir().unwrap();
85-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
85+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
8686
.await
8787
.unwrap();
8888

client/tests/dbus_collection.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async fn create_item(service: Service, encrypted: bool) {
3939
#[tokio::test]
4040
#[cfg(feature = "tokio")]
4141
async fn create_plain_item() {
42-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
42+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
4343
.await
4444
.unwrap();
4545
let service = Service::plain_with_connection(&setup.client_conn)
@@ -51,7 +51,7 @@ async fn create_plain_item() {
5151
#[tokio::test]
5252
#[cfg(feature = "tokio")]
5353
async fn create_encrypted_item() {
54-
let setup = oo7_server::tests::TestServiceSetup::encrypted_session(true)
54+
let setup = oo7_daemon::tests::TestServiceSetup::encrypted_session(true)
5555
.await
5656
.unwrap();
5757
let service = Service::encrypted_with_connection(&setup.client_conn)
@@ -63,7 +63,7 @@ async fn create_encrypted_item() {
6363
#[tokio::test]
6464
#[cfg(feature = "tokio")]
6565
async fn attribute_search_patterns() {
66-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
66+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
6767
.await
6868
.unwrap();
6969
let service = Service::plain_with_connection(&setup.client_conn)
@@ -144,7 +144,7 @@ async fn attribute_search_patterns() {
144144
#[tokio::test]
145145
#[cfg(feature = "tokio")]
146146
async fn items() {
147-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
147+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
148148
.await
149149
.unwrap();
150150
let service = Service::plain_with_connection(&setup.client_conn)
@@ -193,7 +193,7 @@ async fn items() {
193193
#[tokio::test]
194194
#[cfg(feature = "tokio")]
195195
async fn label_mutation() {
196-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
196+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
197197
.await
198198
.unwrap();
199199
let service = Service::plain_with_connection(&setup.client_conn)
@@ -215,7 +215,7 @@ async fn label_mutation() {
215215
#[tokio::test]
216216
#[cfg(feature = "tokio")]
217217
async fn collections_list() {
218-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
218+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
219219
.await
220220
.unwrap();
221221
let service = Service::plain_with_connection(&setup.client_conn)
@@ -252,7 +252,7 @@ async fn collections_list() {
252252
#[tokio::test]
253253
#[cfg(feature = "tokio")]
254254
async fn with_alias() {
255-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
255+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
256256
.await
257257
.unwrap();
258258
let service = Service::plain_with_connection(&setup.client_conn)
@@ -287,7 +287,7 @@ async fn with_alias() {
287287
#[tokio::test]
288288
#[cfg(feature = "tokio")]
289289
async fn timestamps() {
290-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
290+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
291291
.await
292292
.unwrap();
293293
let service = Service::plain_with_connection(&setup.client_conn)
@@ -321,7 +321,7 @@ async fn timestamps() {
321321
#[tokio::test]
322322
#[cfg(feature = "tokio")]
323323
async fn deleted_error() {
324-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
324+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
325325
.await
326326
.unwrap();
327327
let service = Service::plain_with_connection(&setup.client_conn)
@@ -391,7 +391,7 @@ async fn deleted_error() {
391391
#[tokio::test]
392392
#[cfg(feature = "tokio")]
393393
async fn lock_unlock() {
394-
let setup = oo7_server::tests::TestServiceSetup::plain_session(false)
394+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(false)
395395
.await
396396
.unwrap();
397397
let service = Service::plain_with_connection(&setup.client_conn)
@@ -420,7 +420,7 @@ async fn lock_unlock() {
420420
#[tokio::test]
421421
#[cfg(feature = "tokio")]
422422
async fn item_created_signal() {
423-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
423+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
424424
.await
425425
.unwrap();
426426
let service = Service::plain_with_connection(&setup.client_conn)
@@ -467,7 +467,7 @@ async fn item_created_signal() {
467467
#[tokio::test]
468468
#[cfg(feature = "tokio")]
469469
async fn item_changed_signal() {
470-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
470+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
471471
.await
472472
.unwrap();
473473
let service = Service::plain_with_connection(&setup.client_conn)
@@ -515,7 +515,7 @@ async fn item_changed_signal() {
515515
#[tokio::test]
516516
#[cfg(feature = "tokio")]
517517
async fn item_deleted_signal() {
518-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
518+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
519519
.await
520520
.unwrap();
521521
let service = Service::plain_with_connection(&setup.client_conn)

client/tests/dbus_item.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use oo7::dbus::Service;
44
#[tokio::test]
55
#[cfg(feature = "tokio")]
66
async fn label_mutation() {
7-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
7+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
88
.await
99
.unwrap();
1010
let service = Service::plain_with_connection(&setup.client_conn)
@@ -39,7 +39,7 @@ async fn label_mutation() {
3939
#[tokio::test]
4040
#[cfg(feature = "tokio")]
4141
async fn secret_mutation() {
42-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
42+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
4343
.await
4444
.unwrap();
4545
let service = Service::plain_with_connection(&setup.client_conn)
@@ -73,7 +73,7 @@ async fn secret_mutation() {
7373
#[tokio::test]
7474
#[cfg(feature = "tokio")]
7575
async fn secret_mutation_encrypted() {
76-
let setup = oo7_server::tests::TestServiceSetup::encrypted_session(true)
76+
let setup = oo7_daemon::tests::TestServiceSetup::encrypted_session(true)
7777
.await
7878
.unwrap();
7979
let service = Service::encrypted_with_connection(&setup.client_conn)
@@ -107,7 +107,7 @@ async fn secret_mutation_encrypted() {
107107
#[tokio::test]
108108
#[cfg(feature = "tokio")]
109109
async fn attributes_mutation() {
110-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
110+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
111111
.await
112112
.unwrap();
113113
let service = Service::plain_with_connection(&setup.client_conn)
@@ -155,7 +155,7 @@ async fn attributes_mutation() {
155155
#[tokio::test]
156156
#[cfg(feature = "tokio")]
157157
async fn text_secret_type() {
158-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
158+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
159159
.await
160160
.unwrap();
161161
let service = Service::plain_with_connection(&setup.client_conn)
@@ -182,7 +182,7 @@ async fn text_secret_type() {
182182
#[tokio::test]
183183
#[cfg(feature = "tokio")]
184184
async fn blob_secret_type() {
185-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
185+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
186186
.await
187187
.unwrap();
188188
let service = Service::plain_with_connection(&setup.client_conn)
@@ -213,7 +213,7 @@ async fn blob_secret_type() {
213213
#[tokio::test]
214214
#[cfg(feature = "tokio")]
215215
async fn timestamps() {
216-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
216+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
217217
.await
218218
.unwrap();
219219
let service = Service::plain_with_connection(&setup.client_conn)
@@ -256,7 +256,7 @@ async fn timestamps() {
256256
#[tokio::test]
257257
#[cfg(feature = "tokio")]
258258
async fn deleted_error() {
259-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
259+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
260260
.await
261261
.unwrap();
262262
let service = Service::plain_with_connection(&setup.client_conn)
@@ -329,7 +329,7 @@ async fn deleted_error() {
329329
#[tokio::test]
330330
#[cfg(feature = "tokio")]
331331
async fn lock_unlock() {
332-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
332+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
333333
.await
334334
.unwrap();
335335
let service = Service::plain_with_connection(&setup.client_conn)
@@ -360,7 +360,7 @@ async fn lock_unlock() {
360360
#[tokio::test]
361361
#[cfg(feature = "tokio")]
362362
async fn item_created_signal() {
363-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
363+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
364364
.await
365365
.unwrap();
366366
let service = Service::plain_with_connection(&setup.client_conn)
@@ -407,7 +407,7 @@ async fn item_created_signal() {
407407
#[tokio::test]
408408
#[cfg(feature = "tokio")]
409409
async fn item_changed_signal() {
410-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
410+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
411411
.await
412412
.unwrap();
413413
let service = Service::plain_with_connection(&setup.client_conn)
@@ -455,7 +455,7 @@ async fn item_changed_signal() {
455455
#[tokio::test]
456456
#[cfg(feature = "tokio")]
457457
async fn item_deleted_signal() {
458-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
458+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
459459
.await
460460
.unwrap();
461461
let service = Service::plain_with_connection(&setup.client_conn)

client/tests/dbus_service.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use oo7::dbus::Service;
44
#[tokio::test]
55
#[cfg(feature = "tokio")]
66
async fn create_collection() {
7-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
7+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
88
.await
99
.unwrap();
1010
let service = Service::plain_with_connection(&setup.client_conn)
@@ -32,7 +32,7 @@ async fn create_collection() {
3232
#[tokio::test]
3333
#[cfg(feature = "tokio")]
3434
async fn default_collections() {
35-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
35+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
3636
.await
3737
.unwrap();
3838
let service = Service::plain_with_connection(&setup.client_conn)
@@ -46,7 +46,7 @@ async fn default_collections() {
4646
#[tokio::test]
4747
#[cfg(feature = "tokio")]
4848
async fn encrypted_session() {
49-
let setup = oo7_server::tests::TestServiceSetup::encrypted_session(true)
49+
let setup = oo7_daemon::tests::TestServiceSetup::encrypted_session(true)
5050
.await
5151
.unwrap();
5252
let service = Service::encrypted_with_connection(&setup.client_conn)
@@ -58,7 +58,7 @@ async fn encrypted_session() {
5858
#[tokio::test]
5959
#[cfg(feature = "tokio")]
6060
async fn plain_session() {
61-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
61+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
6262
.await
6363
.unwrap();
6464
let service = Service::plain_with_connection(&setup.client_conn)
@@ -70,7 +70,7 @@ async fn plain_session() {
7070
#[tokio::test]
7171
#[cfg(feature = "tokio")]
7272
async fn collection_created_signal() {
73-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
73+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
7474
.await
7575
.unwrap();
7676
let service = Service::plain_with_connection(&setup.client_conn)
@@ -107,7 +107,7 @@ async fn collection_created_signal() {
107107
#[tokio::test]
108108
#[cfg(feature = "tokio")]
109109
async fn collection_changed_signal() {
110-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
110+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
111111
.await
112112
.unwrap();
113113
let service = Service::plain_with_connection(&setup.client_conn)
@@ -148,7 +148,7 @@ async fn collection_changed_signal() {
148148
#[tokio::test]
149149
#[cfg(feature = "tokio")]
150150
async fn collection_deleted_signal() {
151-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
151+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
152152
.await
153153
.unwrap();
154154
let service = Service::plain_with_connection(&setup.client_conn)

client/tests/keyring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use tempfile::tempdir;
55

66
async fn all_backends(
77
temp_dir: &tempfile::TempDir,
8-
) -> (oo7_server::tests::TestServiceSetup, Vec<Keyring>) {
8+
) -> (oo7_daemon::tests::TestServiceSetup, Vec<Keyring>) {
99
let mut backends = Vec::new();
1010

1111
let keyring_path = temp_dir.path().join("test.keyring");
@@ -15,7 +15,7 @@ async fn all_backends(
1515
.unwrap();
1616
backends.push(unlocked);
1717

18-
let setup = oo7_server::tests::TestServiceSetup::plain_session(true)
18+
let setup = oo7_daemon::tests::TestServiceSetup::plain_session(true)
1919
.await
2020
.unwrap();
2121

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name = "oo7-daemon"
1515
path = "src/main.rs"
1616

1717
[lib]
18-
name = "oo7_server"
18+
name = "oo7_daemon"
1919
path = "src/lib.rs"
2020
test = false
2121

server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Library interface for oo7_server
1+
// Library interface for oo7_daemon
22
// Only expose test utilities when the test-util feature is enabled
33
#![allow(unused)]
44
#![deny(unsafe_code)]

0 commit comments

Comments
 (0)