From: Lukas Wagner <l.wagner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox 2/2] notify: fix tests if not all features are enabled
Date: Mon, 24 Jul 2023 14:31:25 +0200 [thread overview]
Message-ID: <20230724123125.641268-2-l.wagner@proxmox.com> (raw)
In-Reply-To: <20230724123125.641268-1-l.wagner@proxmox.com>
Some tests are now disabled if not all required features are enabled.
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
proxmox-notify/src/api/mod.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/proxmox-notify/src/api/mod.rs b/proxmox-notify/src/api/mod.rs
index a4e0e40f..9372443a 100644
--- a/proxmox-notify/src/api/mod.rs
+++ b/proxmox-notify/src/api/mod.rs
@@ -226,12 +226,13 @@ fn get_referenced_entities(config: &Config, entity: &str) -> HashSet<String> {
mod test_helpers {
use crate::Config;
+ #[allow(unused)]
pub fn empty_config() -> Config {
Config::new("", "").unwrap()
}
}
-#[cfg(test)]
+#[cfg(all(test, gotify, sendmail))]
mod tests {
use super::*;
use crate::endpoints::gotify::{GotifyConfig, GotifyPrivateConfig};
--
2.39.2
next prev parent reply other threads:[~2023-07-24 12:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 12:31 [pve-devel] [PATCH proxmox 1/2] notify: fix build warnings " Lukas Wagner
2023-07-24 12:31 ` Lukas Wagner [this message]
2023-07-28 8:45 ` [pve-devel] applied-series: " Wolfgang Bumiller
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=20230724123125.641268-2-l.wagner@proxmox.com \
--to=l.wagner@proxmox.com \
--cc=pve-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