Skip to content

Commit

Permalink
Fixing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
boyamurthy committed Aug 21, 2023
1 parent 4f84b5a commit b4c9f3b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ describe("GIVEN setValues function", () => {
vSphereFCHostName: undefined,
vSphereVCenterHost: undefined,
vSphereVCenterCredSecret: undefined,
targetClusterId: "",
targetClusterId: "",
iscsichap: false,
manageArrayId: '""',
manageArrayEndpointUrl: '""',
observabilityOperator: false,
observabilityOperatorMetrics: false,
observabilityOperatorOtel: false,
observabilityOperatorTopology: false,
topologyEnabled: false,
transportProtocol: "",
};
manageArrayId: '""',
manageArrayEndpointUrl: '""',
observabilityOperator: false,
observabilityOperatorMetrics: false,
observabilityOperatorOtel: false,
observabilityOperatorTopology: false,
topologyEnabled: false,
transportProtocol: "",
};

const received = setValues(testCSMMap, CONSTANTS);
expect(expected).toEqual(received);
const received = setValues(testCSMMap, CONSTANTS);
expect(expected).toEqual(received);
});

test("SHOULD return expected DriverValues for Operator", () => {
Expand Down Expand Up @@ -265,21 +265,21 @@ describe("GIVEN setValues function", () => {
volumelessPods: false,
clusterPrefix: undefined,
portGroups: undefined,
targetClusterId: "",
targetClusterId: "",
vSphereEnabled: false,
vSphereFCPortGroup: undefined,
vSphereFCHostName: undefined,
vSphereVCenterHost: undefined,
vSphereVCenterCredSecret: undefined,
iscsichap: false,
manageArrayId: '""',
manageArrayEndpointUrl: '""',
observabilityOperator: false,
observabilityOperatorMetrics: false,
observabilityOperatorOtel: false,
observabilityOperatorTopology: false,
topologyEnabled: false,
transportProtocol: "",
iscsichap: false,
manageArrayId: '""',
manageArrayEndpointUrl: '""',
observabilityOperator: false,
observabilityOperatorMetrics: false,
observabilityOperatorOtel: false,
observabilityOperatorTopology: false,
topologyEnabled: false,
transportProtocol: "",
};

const received = setValues(testCSMMap, CONSTANTS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ function onObservabilityChange() {
}

function onObservabilityOperatorChange() {
if ($("#observability-operator").prop('checked') === true) {
$('div#observability-operator-metrics-wrapper').show();
if ($("#observability-operator").prop('checked') === true) {
$('div#observability-operator-metrics-wrapper').show();
$('div#observability-operator-topology-wrapper').show();
$('div#observability-operator-otel-wrapper').show();
} else {
$('div#observability-operator-metrics-wrapper').hide();
} else {
$('div#observability-operator-metrics-wrapper').hide();
$('div#observability-operator-topology-wrapper').hide();
$('div#observability-operator-otel-wrapper').hide();
}
}
}


Expand Down Expand Up @@ -122,12 +122,12 @@ function onCertManagerChange(certmanagerNoteValue) {
}

function onTopologyChange(topologyNoteValue) {
if ($("#topology").prop('checked') === true) {
$('div#topology-note-wrapper').show();
$("#topology-note").html(topologyNoteValue);
} else {
$('div#topology-note-wrapper').hide();
}
if ($("#topology").prop('checked') === true) {
$('div#topology-note-wrapper').show();
$("#topology-note").html(topologyNoteValue);
} else {
$('div#topology-note-wrapper').hide();
}
}

function onReplicationChange(replicationNoteValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function validateForm(CONSTANTS_PARAM) {
}
} else {
if (document.getElementById('manage-array-id').value.trim() === "") {
return false;
}
return false;
}
if (document.getElementById('manage-array-endpoint-url').value.trim() === "") {
return false;
}
return false;
}
}
if (document.getElementById('cluster-prefix').value.trim() === "") {
return false;
Expand Down

0 comments on commit b4c9f3b

Please sign in to comment.