aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html')
-rw-r--r--server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html20
1 files changed, 11 insertions, 9 deletions
diff --git a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
index 6ae670910bd..de4879d8ce3 100644
--- a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
+++ b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
@@ -124,7 +124,7 @@
function createSectionTitle(title) {
const node = document.createElement("h2");
- node.innerText = title;
+ node.textContent = title;
return node;
}
@@ -134,7 +134,7 @@
arr.forEach((item) => {
const message = document.createElement("li");
message.className = className;
- message.innerText = item;
+ message.textContent = item;
list.appendChild(message);
});
@@ -150,7 +150,7 @@
const row = document.createElement("tr");
const keyNode = document.createElement("td");
- keyNode.innerText = key;
+ keyNode.textContent = key;
row.appendChild(keyNode);
const valueNode = document.createElement("td");
@@ -173,16 +173,18 @@
container.appendChild(box);
}
- const status = '';
- const attributes = {};
- const mappings = {};
- const errors = [];
- const warnings = [];
+ const response = 'eyJ3YXJuaW5ncyI6W10sImF2YWlsYWJsZUF0dHJpYnV0ZXMiOnt9LCJlcnJvcnMiOltdLCJtYXBwZWRBdHRyaWJ1dGVzIjp7fX0=';
+ const decodedStatus = JSON.parse(atob(response));
+ const status = decodedStatus.status;
+ const attributes = decodedStatus.availableAttributes;
+ const mappings = decodedStatus.mappedAttributes;
+ const errors = decodedStatus.errors;
+ const warnings = decodedStatus.warnings;
// Switch status class
const statusNode = document.querySelector("#status");
statusNode.classList.add(status);
- statusNode.innerText = status;
+ statusNode.textContent = status;
// generate content
const container = document.querySelector("#content");