Move /e2e -> /e2e-tests
Этот коммит содержится в:
14
e2e-tests/cypress/tests/plugins/url_health_check.js
Обычный файл
14
e2e-tests/cypress/tests/plugins/url_health_check.js
Обычный файл
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
const axios = require('axios');
|
||||
|
||||
module.exports = async ({url, method}) => {
|
||||
let response;
|
||||
try {
|
||||
response = await axios({url, method});
|
||||
return {data: response.data, status: response.status, success: true};
|
||||
} catch (err) {
|
||||
return {success: false, errorCode: err.code};
|
||||
}
|
||||
};
|
||||
Ссылка в новой задаче
Block a user