[arvados-workbench2] updated: 2.4.0-76-gd7f25e0d
git repository hosting
git at public.arvados.org
Tue May 24 21:18:15 UTC 2022
Summary of changes:
.../resource-type-filters/resource-type-filters.test.ts | 16 ++++++++++++----
src/store/workflow-panel/workflow-panel-actions.test.ts | 1 -
2 files changed, 12 insertions(+), 5 deletions(-)
via d7f25e0db329c2fb8c2325f7ff28ce7a99cc2467 (commit)
from 4ff4d54006bc6c619616f6fc229b4374c5d83879 (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 d7f25e0db329c2fb8c2325f7ff28ce7a99cc2467
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Tue May 24 17:18:02 2022 -0400
19143: Fix unit tests
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 a3684507..f001770e 100644
--- a/src/store/resource-type-filters/resource-type-filters.test.ts
+++ b/src/store/resource-type-filters/resource-type-filters.test.ts
@@ -31,20 +31,21 @@ describe("serializeResourceTypeFilters", () => {
const filters = getInitialResourceTypeFilters();
const serializedFilters = serializeResourceTypeFilters(filters);
expect(serializedFilters)
- .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.PROCESS}","${ResourceKind.COLLECTION}"]]`);
+ .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.PROCESS}","${ResourceKind.COLLECTION}","${ResourceKind.WORKFLOW}"]]`);
});
it("should serialize all but collection filters", () => {
const filters = deselectNode(ObjectTypeFilter.COLLECTION)(getInitialResourceTypeFilters());
const serializedFilters = serializeResourceTypeFilters(filters);
expect(serializedFilters)
- .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.PROCESS}"]]`);
+ .toEqual(`["uuid","is_a",["${ResourceKind.PROJECT}","${ResourceKind.PROCESS}","${ResourceKind.WORKFLOW}"]]`);
});
it("should serialize output collections and projects", () => {
const filters = pipe(
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROCESS),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
deselectNode(CollectionTypeFilter.GENERAL_COLLECTION),
deselectNode(CollectionTypeFilter.LOG_COLLECTION),
deselectNode(CollectionTypeFilter.INTERMEDIATE_COLLECTION),
@@ -59,6 +60,7 @@ describe("serializeResourceTypeFilters", () => {
const filters = pipe(
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROCESS),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
deselectNode(CollectionTypeFilter.GENERAL_COLLECTION),
deselectNode(CollectionTypeFilter.LOG_COLLECTION),
deselectNode(CollectionTypeFilter.OUTPUT_COLLECTION),
@@ -74,6 +76,7 @@ describe("serializeResourceTypeFilters", () => {
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROJECT),
deselectNode(ObjectTypeFilter.PROCESS),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
deselectNode(CollectionTypeFilter.OUTPUT_COLLECTION)
)();
@@ -87,7 +90,8 @@ describe("serializeResourceTypeFilters", () => {
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROJECT),
deselectNode(ProcessTypeFilter.CHILD_PROCESS),
- deselectNode(ObjectTypeFilter.COLLECTION)
+ deselectNode(ObjectTypeFilter.COLLECTION),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
@@ -100,7 +104,8 @@ describe("serializeResourceTypeFilters", () => {
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROJECT),
deselectNode(ProcessTypeFilter.MAIN_PROCESS),
- deselectNode(ObjectTypeFilter.COLLECTION)
+ deselectNode(ObjectTypeFilter.COLLECTION),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
@@ -113,6 +118,7 @@ describe("serializeResourceTypeFilters", () => {
() => getInitialResourceTypeFilters(),
deselectNode(ObjectTypeFilter.PROCESS),
deselectNode(ObjectTypeFilter.COLLECTION),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
@@ -126,6 +132,7 @@ describe("serializeResourceTypeFilters", () => {
deselectNode(GroupTypeFilter.PROJECT),
deselectNode(ObjectTypeFilter.PROCESS),
deselectNode(ObjectTypeFilter.COLLECTION),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
@@ -139,6 +146,7 @@ describe("serializeResourceTypeFilters", () => {
deselectNode(GroupTypeFilter.FILTER_GROUP),
deselectNode(ObjectTypeFilter.PROCESS),
deselectNode(ObjectTypeFilter.COLLECTION),
+ deselectNode(ObjectTypeFilter.WORKFLOW),
)();
const serializedFilters = serializeResourceTypeFilters(filters);
diff --git a/src/store/workflow-panel/workflow-panel-actions.test.ts b/src/store/workflow-panel/workflow-panel-actions.test.ts
index 1e2b0488..1a7cad82 100644
--- a/src/store/workflow-panel/workflow-panel-actions.test.ts
+++ b/src/store/workflow-panel/workflow-panel-actions.test.ts
@@ -82,7 +82,6 @@ describe('workflow-panel-actions', () => {
await openRunProcess("zzzzz-7fd4e-0123456789abcde", "zzzzz-tpzed-0123456789abcde", "testing", { inputparm: "value" })(dispatchWrapper, store.getState, services);
expect(dispatchMock).toHaveBeenCalledWith(runProcessPanelActions.SET_WORKFLOWS(wflist));
expect(dispatchMock).toHaveBeenCalledWith(runProcessPanelActions.SET_SELECTED_WORKFLOW(wflist[0]));
- expect(dispatchMock).toHaveBeenCalledWith(runProcessPanelActions.SET_PROCESS_OWNER_UUID("zzzzz-tpzed-0123456789abcde"));
expect(dispatchMock).toHaveBeenCalledWith(initialize(RUN_PROCESS_BASIC_FORM, { name: "testing" }));
expect(dispatchMock).toHaveBeenCalledWith(initialize(RUN_PROCESS_INPUTS_FORM, { inputparm: "value" }));
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list