You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2022/05/24 21:10:11 UTC
[airavata-django-portal] branch develop updated: Fix unit tests to utilize enableNodeCountToCpuCheck
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 5076046d Fix unit tests to utilize enableNodeCountToCpuCheck
5076046d is described below
commit 5076046d30fe531b520268f523322125f6b7f757
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue May 24 17:10:01 2022 -0400
Fix unit tests to utilize enableNodeCountToCpuCheck
Related to AIRAVATA-3577
---
.../tests/unit/web-components/store.spec.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/tests/unit/web-components/store.spec.js b/django_airavata/apps/workspace/static/django_airavata_workspace/tests/unit/web-components/store.spec.js
index 162b0748..1b8346fa 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/tests/unit/web-components/store.spec.js
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/tests/unit/web-components/store.spec.js
@@ -764,6 +764,7 @@ test("updateNodeCount: only update nodeCount when cpuPerNode <= 0", (done) => {
test("updateNodeCount: update also totalCPUCount when cpuPerNode > 0", (done) => {
const nodeCount = 4;
+ const enableNodeCountToCpuCheck = true;
const mockGetters = {
queue: new models.BatchQueue({
cpuPerNode: 24,
@@ -777,6 +778,7 @@ test("updateNodeCount: update also totalCPUCount when cpuPerNode > 0", (done) =>
testAction(actions.updateNodeCount, {
payload: {
nodeCount,
+ enableNodeCountToCpuCheck,
},
getters: mockGetters,
expectedMutations,
@@ -786,6 +788,7 @@ test("updateNodeCount: update also totalCPUCount when cpuPerNode > 0", (done) =>
test("updateNodeCount: update totalCPUCount when cpuPerNode > 0, but apply maximums", (done) => {
const nodeCount = 4;
+ const enableNodeCountToCpuCheck = true;
const mockGetters = {
queue: new models.BatchQueue({
cpuPerNode: 24,
@@ -799,6 +802,7 @@ test("updateNodeCount: update totalCPUCount when cpuPerNode > 0, but apply maxim
testAction(actions.updateNodeCount, {
payload: {
nodeCount,
+ enableNodeCountToCpuCheck,
},
getters: mockGetters,
expectedMutations,
@@ -829,6 +833,7 @@ test("updateTotalCPUCount: only update totalCPUCount when cpuPerNode <= 0", (don
test("updateTotalCPUCount: update also nodeCount when cpuPerNode > 0", (done) => {
const nodeCount = 4;
const totalCPUCount = 96;
+ const enableNodeCountToCpuCheck = true;
const mockGetters = {
queue: new models.BatchQueue({
cpuPerNode: 24,
@@ -842,6 +847,7 @@ test("updateTotalCPUCount: update also nodeCount when cpuPerNode > 0", (done) =>
testAction(actions.updateTotalCPUCount, {
payload: {
totalCPUCount,
+ enableNodeCountToCpuCheck,
},
getters: mockGetters,
expectedMutations,
@@ -851,6 +857,7 @@ test("updateTotalCPUCount: update also nodeCount when cpuPerNode > 0", (done) =>
test("updateTotalCPUCount: update nodeCount when cpuPerNode > 0, but apply maximums", (done) => {
const totalCPUCount = 96;
+ const enableNodeCountToCpuCheck = true;
const mockGetters = {
queue: new models.BatchQueue({
cpuPerNode: 24,
@@ -867,6 +874,7 @@ test("updateTotalCPUCount: update nodeCount when cpuPerNode > 0, but apply maxim
testAction(actions.updateTotalCPUCount, {
payload: {
totalCPUCount,
+ enableNodeCountToCpuCheck,
},
getters: mockGetters,
expectedMutations,