From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 3F6C21FF13E for ; Fri, 20 Mar 2026 10:26:52 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 29B2511CA5; Fri, 20 Mar 2026 10:27:07 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 1/5] fake remote: update code to implement/use new interfaces Date: Fri, 20 Mar 2026 10:25:38 +0100 Message-ID: <20260320092702.1069143-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260320092702.1069143-1-d.csapak@proxmox.com> References: <20260320092702.1069143-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -1.025 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.408 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.819 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.903 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: SDQPEHET7NMV3NOGZYJOFFDVPDYLIT2Q X-Message-ID-Hash: SDQPEHET7NMV3NOGZYJOFFDVPDYLIT2Q X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The RemoteConfig interface has changed, implement the new method. Also the ClusterResource has gained a few new fields, so add them. Without this, we can't compile with the fake-remote cfg flag. Signed-off-by: Dominik Csapak --- server/src/test_support/fake_remote.rs | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/server/src/test_support/fake_remote.rs b/server/src/test_support/fake_remote.rs index 62dd8691..93c1c495 100644 --- a/server/src/test_support/fake_remote.rs +++ b/server/src/test_support/fake_remote.rs @@ -59,9 +59,13 @@ impl RemoteConfig for FakeRemoteConfig { unsafe { Ok(proxmox_product_config::create_mocked_lock()) } } - fn save_config(&self, _remotes: &SectionConfigData) -> Result<(), Error> { + fn save_config(&self, _remotes: SectionConfigData) -> Result<(), Error> { Ok(()) } + + fn get_secret_token(&self, _remote: &Remote) -> Result { + Ok(String::new()) + } } pub struct FakeClientFactory { @@ -165,6 +169,11 @@ impl pve_api_types::client::PveClient for FakePveClient { lock: None, tags: None, sdn: None, + network: None, + network_type: None, + protocol: None, + shared: None, + zone_type: None, }); } @@ -200,6 +209,11 @@ impl pve_api_types::client::PveClient for FakePveClient { lock: None, tags: None, sdn: None, + network: None, + network_type: None, + protocol: None, + shared: None, + zone_type: None, }); } @@ -234,6 +248,11 @@ impl pve_api_types::client::PveClient for FakePveClient { lock: None, tags: None, sdn: None, + network: None, + network_type: None, + protocol: None, + shared: None, + zone_type: None, }); } @@ -268,6 +287,11 @@ impl pve_api_types::client::PveClient for FakePveClient { lock: None, tags: None, sdn: None, + network: None, + network_type: None, + protocol: None, + shared: None, + zone_type: None, }); } -- 2.47.3