Skip to content

Commit 3babaa6

Browse files
committed
Fix D-Bus tests
1 parent d490fdd commit 3babaa6

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

credsd/tests/config/mod.rs.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pub const SERVICE_DIR: &'static str = @SERVICE_DIR@;
2-
pub const SERVICE_NAME: &'static str = "xyz.iinuwa.credentials.CredentialManagerUi";
3-
pub const PATH: &'static str = "/xyz/iinuwa/credentials/CredentialManagerUi";
4-
pub const INTERFACE: &'static str = "xyz.iinuwa.credentials.CredentialManagerUi1";
2+
pub const SERVICE_NAME: &'static str = "xyz.iinuwa.credentials.Credentials";
3+
pub const PATH: &'static str = "/xyz/iinuwa/credentials/Credentials";
4+
pub const INTERFACE: &'static str = "xyz.iinuwa.credentials.Credentials1";

credsd/tests/dbus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fn test_client_capabilities() {
2020
let capabilities = HashMap::from([
2121
("conditionalCreate", false),
2222
("conditionalGet", false),
23-
("hybridTransport", false),
23+
("hybridTransport", true),
2424
("passkeyPlatformAuthenticator", false),
2525
("userVerifyingPlatformAuthenticator", false),
2626
("relatedOrigins", false),

credsd/tests/meson.build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ test_config.set_quoted(
55
)
66
test_config.set(
77
'DBUS_EXECUTABLE',
8-
meson.project_build_root() / backend_build_dir / backend_executable_name,
8+
meson.project_build_root() / backend_build_dir / 'target' / rust_target / backend_executable_name,
99
)
1010
configure_file(
1111
input: 'config' / 'mod.rs.in',
@@ -22,8 +22,8 @@ run_command(
2222
)
2323

2424
configure_file(
25-
input: 'services' / 'xyz.iinuwa.CredentialManagerUi.service.in',
26-
output: 'xyz.iinuwa.CredentialManagerUi.service',
25+
input: 'services' / 'xyz.iinuwa.credentials.Credentials.service.in',
26+
output: 'xyz.iinuwa.credentials.Credentials.service',
2727
configuration: test_config,
2828
)
2929

@@ -40,4 +40,4 @@ test(
4040
],
4141
protocol: 'exitcode',
4242
verbose: true,
43-
)
43+
)

credsd/tests/services/xyz.iinuwa.CredentialManagerUi.service.in

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[D-BUS Service]
2+
Name=xyz.iinuwa.credentials.Credentials
3+
Exec=@DBUS_EXECUTABLE@

0 commit comments

Comments
 (0)