[arvados-workbench2] updated: 2.5.0-130-gfe921733
git repository hosting
git at public.arvados.org
Wed Mar 29 18:31:29 UTC 2023
Summary of changes:
.../resource-type-filters/resource-type-filters.test.ts | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
via fe9217330135c4fe4fca85900419f0cde547e483 (commit)
from bdd840672f12cd6383d9bc497107f7e8f9e60e36 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit fe9217330135c4fe4fca85900419f0cde547e483
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Wed Mar 29 14:31:11 2023 -0400
Fix tests refs #19295
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/src/store/resource-type-filters/resource-type-filters.test.ts b/src/store/resource-type-filters/resource-type-filters.test.ts
index 5972f60c..0c70eed1 100644
--- a/src/store/resource-type-filters/resource-type-filters.test.ts
+++ b/src/store/resource-type-filters/resource-type-filters.test.ts
@@ -31,7 +31,7 @@ describe("serializeResourceTypeFilters", () => {
const filters = getInitialResourceTypeFilters();
const serializedFilters = serializeResourceTypeFilters(filters);
expect(serializedFilters)
- .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.COLLECTION}","${ResourceKind.WORKFLOW}","${ResourceKind.PROCESS}"]],["container_requests.requesting_container_uuid","=",null]`);
+ .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.COLLECTION}","${ResourceKind.WORKFLOW}","${ResourceKind.PROCESS}"]],["collections.properties.type","not in",["log","intermediate"]],["container_requests.requesting_container_uuid","=",null]`);
});
it("should serialize all but collection filters", () => {
@@ -56,22 +56,22 @@ describe("serializeResourceTypeFilters", () => {
.toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.COLLECTION}"]],["collections.properties.type","in",["output"]]`);
});
- it("should serialize intermediate collections and projects", () => {
+ it("should serialize output collections and projects", () => {
const filters = pipe(
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.DEFINITION),
deselectNode(ProcessTypeFilter.MAIN_PROCESS),
deselectNode(CollectionTypeFilter.GENERAL_COLLECTION),
deselectNode(CollectionTypeFilter.LOG_COLLECTION),
- deselectNode(CollectionTypeFilter.OUTPUT_COLLECTION),
+ deselectNode(CollectionTypeFilter.INTERMEDIATE_COLLECTION),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
expect(serializedFilters)
- .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.COLLECTION}"]],["collections.properties.type","in",["intermediate"]]`);
+ .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.COLLECTION}"]],["collections.properties.type","in",["output"]]`);
});
- it("should serialize general and log collections", () => {
+ it("should serialize general collections", () => {
const filters = pipe(
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROJECT),
@@ -82,7 +82,7 @@ describe("serializeResourceTypeFilters", () => {
const serializedFilters = serializeResourceTypeFilters(filters);
expect(serializedFilters)
- .toEqual(`["uuid","is_a",["${ResourceKind.COLLECTION}"]],["collections.properties.type","not in",["output"]]`);
+ .toEqual(`["uuid","is_a",["${ResourceKind.COLLECTION}"]],["collections.properties.type","not in",["output","log","intermediate"]]`);
});
it("should serialize only main processes", () => {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list