From: Dominik Csapak <d.csapak@proxmox.com>
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 [thread overview]
Message-ID: <20260320092702.1069143-2-d.csapak@proxmox.com> (raw)
In-Reply-To: <20260320092702.1069143-1-d.csapak@proxmox.com>
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 <d.csapak@proxmox.com>
---
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<Remote>) -> Result<(), Error> {
+ fn save_config(&self, _remotes: SectionConfigData<Remote>) -> Result<(), Error> {
Ok(())
}
+
+ fn get_secret_token(&self, _remote: &Remote) -> Result<String, Error> {
+ 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
next prev parent reply other threads:[~2026-03-20 9:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 9:25 [PATCH datacenter-manager 0/5] fix/improve fake-remote code Dominik Csapak
2026-03-20 9:25 ` Dominik Csapak [this message]
2026-03-20 9:25 ` [PATCH datacenter-manager 2/5] fake remote: fix nonsensical values Dominik Csapak
2026-03-20 9:25 ` [PATCH datacenter-manager 3/5] fake remote: factor out cpu/disk/mem values Dominik Csapak
2026-03-20 9:25 ` [PATCH datacenter-manager 4/5] fake remote: add jitter to disk/memory values Dominik Csapak
2026-03-20 9:25 ` [PATCH datacenter-manager 5/5] fake remotes: make use of ClusterResource more resilient to changes Dominik Csapak
2026-03-20 10:48 ` applied: [PATCH datacenter-manager 0/5] fix/improve fake-remote code Lukas Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260320092702.1069143-2-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox