Web: Client: Tests: mock data

This commit is contained in:
Viktor Fomin 2022-02-21 22:12:16 +03:00
parent f59648230d
commit 9e5253a812
4 changed files with 62 additions and 0 deletions

View File

@ -10,4 +10,22 @@ module.exports = class Endpoints {
method: "GET",
baseDir: "settings",
};
static build = {
url: ["http://localhost:8092/api/2.0/settings/version/build.json"],
method: "GET",
baseDir: "settings",
};
static password = {
url: ["http://localhost:8092/api/2.0/settings/security/password"],
method: "GET",
baseDir: "settings",
};
static providers = {
url: ["http://localhost:8092/api/2.0/people/thirdparty/providers"],
method: "GET",
baseDir: "people",
};
};

View File

@ -0,0 +1,22 @@
{
"count": 3,
"response": [
{
"provider": "google",
"url": "/login.ashx?auth=google&mode=popup&callback=",
"linked": false
},
{
"provider": "facebook",
"url": "/login.ashx?auth=facebook&mode=popup&callback=",
"linked": false
},
{
"provider": "linkedin",
"url": "/login.ashx?auth=linkedin&mode=popup&callback=",
"linked": false
}
],
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,10 @@
{
"count": 1,
"response": {
"communityServer": "11.5.0",
"documentServer": "4.1.5.1",
"mailServer": ""
},
"status": 0,
"statusCode": 200
}

View File

@ -0,0 +1,12 @@
{
"count": 1,
"response": {
"id": "EXAMPLEID",
"minLength": 8,
"upperCase": false,
"digits": false,
"specSymbols": false
},
"status": 0,
"statusCode": 200
}