From af96bbc3333da54b76a4fea3ae8b108368968e49 Mon Sep 17 00:00:00 2001 From: Jan Kaluža Date: Mar 09 2018 13:49:38 +0000 Subject: Merge #182 `Ask for notes.arch to be included in Pulp response.` --- diff --git a/server/odcs/server/pulp.py b/server/odcs/server/pulp.py index f7b766a..ff921c1 100644 --- a/server/odcs/server/pulp.py +++ b/server/odcs/server/pulp.py @@ -67,7 +67,7 @@ class Pulp(object): 'notes.content_set': {'$in': content_sets}, 'notes.include_in_download_service': "True", }, - 'fields': ['notes.relative_url', 'notes.content_set'], + 'fields': ['notes.relative_url', 'notes.content_set', 'notes.arch'], } } repos = self._rest_post('repositories/search/', query_data) diff --git a/server/tests/test_backend.py b/server/tests/test_backend.py index 23c5d6e..abdea66 100644 --- a/server/tests/test_backend.py +++ b/server/tests/test_backend.py @@ -291,7 +291,7 @@ class TestBackend(ModelsBaseTest): expected_query = { "criteria": { - "fields": ["notes.relative_url", "notes.content_set"], + "fields": ["notes.relative_url", "notes.content_set", "notes.arch"], "filters": { "notes.content_set": {"$in": ["foo-1", "foo-2", "foo-3"]}, "notes.include_in_download_service": "True" @@ -353,7 +353,7 @@ gpgcheck=0 expected_query = { "criteria": { - "fields": ["notes.relative_url", "notes.content_set"], + "fields": ["notes.relative_url", "notes.content_set", "notes.arch"], "filters": { "notes.content_set": {"$in": ["foo-1", "foo-2"]}, "notes.include_in_download_service": "True"