diff --git a/include/multipass/constants.h b/include/multipass/constants.h index a98f2cad4f..dc8e3261f7 100644 --- a/include/multipass/constants.h +++ b/include/multipass/constants.h @@ -24,7 +24,7 @@ constexpr auto client_name = "multipass"; constexpr auto daemon_name = "multipassd"; constexpr auto min_memory_size = "128M"; constexpr auto min_disk_size = "512M"; -constexpr auto petenv_key = "client.primary_name"; // This will eventually be moved to some dynamic settings schema +constexpr auto petenv_key = "client.primary-name"; // This will eventually be moved to some dynamic settings schema constexpr auto driver_key = "local.driver"; // idem constexpr auto driver_env_var = "MULTIPASS_VM_DRIVER"; } // namespace multipass diff --git a/tests/test_cli_client.cpp b/tests/test_cli_client.cpp index 978af89d45..cab8489d21 100644 --- a/tests/test_cli_client.cpp +++ b/tests/test_cli_client.cpp @@ -1335,13 +1335,13 @@ TEST_F(Client, set_cmd_fails_with_no_arguments) TEST_F(Client, get_cmd_fails_with_multiple_arguments) { EXPECT_CALL(mock_settings, get(_)).Times(0); - EXPECT_THAT(send_command({"get", "client.primary_name", "local.driver"}), Eq(mp::ReturnCode::CommandLineError)); + EXPECT_THAT(send_command({"get", "client.primary-name", "local.driver"}), Eq(mp::ReturnCode::CommandLineError)); } TEST_F(Client, set_cmd_fails_with_multiple_arguments) { EXPECT_CALL(mock_settings, set(_, _)).Times(0); - EXPECT_THAT(send_command({"set", "client.primary_name=asdf", "local.driver=qemu"}), + EXPECT_THAT(send_command({"set", "client.primary-name=asdf", "local.driver=qemu"}), Eq(mp::ReturnCode::CommandLineError)); }