public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [pdm-devel] [PATCH datacenter-manager 1/2] server: api: fix test for is remote only cases
Date: Wed, 29 Oct 2025 14:14:01 +0100	[thread overview]
Message-ID: <20251029131402.595987-2-c.ebner@proxmox.com> (raw)
In-Reply-To: <20251029131402.595987-1-c.ebner@proxmox.com>

Commit 636fd952 ("server: api: resources: improve search when
searching for remotes") changed the filtering logic so that a
search with category being 'remote' did not classify as 'remote
only'. This change was however not reflected in the test cases.

Fix this by updating the test case.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
 server/src/api/resources.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/api/resources.rs b/server/src/api/resources.rs
index 3502c3b..1154aad 100644
--- a/server/src/api/resources.rs
+++ b/server/src/api/resources.rs
@@ -1108,8 +1108,8 @@ mod tests {
         let cases = vec![
             (vec![other_term.clone()], false),
             (vec![other_term_optional.clone()], false),
-            (vec![remote_term.clone()], true),
-            (vec![remote_term_optional.clone()], true),
+            (vec![remote_term.clone()], false),
+            (vec![remote_term_optional.clone()], false),
             (vec![type_other_term.clone()], false),
             (vec![type_other_term_optional.clone()], false),
             (
-- 
2.47.3



_______________________________________________
pdm-devel mailing list
pdm-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel


  reply	other threads:[~2025-10-29 13:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-29 13:14 [pdm-devel] [PATCH datacenter-manager 0/2] fix tests and run them on package build Christian Ebner
2025-10-29 13:14 ` Christian Ebner [this message]
2025-10-29 13:14 ` [pdm-devel] [PATCH datacenter-manager 2/2] build-sys: add make target for test Christian Ebner
2025-10-29 13:50 ` [pdm-devel] applied-series: [PATCH datacenter-manager 0/2] fix tests and run them on package build 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=20251029131402.595987-2-c.ebner@proxmox.com \
    --to=c.ebner@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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal