This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new e27ac668 AIRAVATA-3694 adding missing mock for test
new 8b4670a9 Merge branch 'archive-user-data' into develop
e27ac668 is described below
commit e27ac668017f076b22e06156199714cad5aa8783
Author: Marcus Christie <[email protected]>
AuthorDate: Tue Apr 18 13:17:43 2023 -0400
AIRAVATA-3694 adding missing mock for test
---
.../components/statistics/ExperimentStatisticsContainer.spec.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git
a/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
b/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
index f593f2ba..d315af42 100644
---
a/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
+++
b/django_airavata/apps/admin/static/django_airavata_admin/tests/unit/components/statistics/ExperimentStatisticsContainer.spec.js
@@ -38,6 +38,9 @@ jest.mock("django-airavata-api", () => {
GroupResourceProfileService: {
list: jest.fn(),
},
+ ExperimentArchiveService: {
+ get: jest.fn(),
+ },
},
};
});
@@ -113,6 +116,12 @@ test("load experiment by job id when job id matches unique
experiment", async ()
experiment,
})
);
+ services.ExperimentArchiveService.get.mockResolvedValue({
+ archived: false,
+ archive_name: null,
+ created_date: null,
+ max_age: 90,
+ });
// The render method returns a collection of utilities to query your
component.
const { findByText, findByPlaceholderText } = render(