ticket2test
Version:
Pull JIRA ticket information and create a JS test file
19 lines (17 loc) • 437 B
JavaScript
const axios = require("axios");
module.exports = {
createJiraConnection: data => {
if (!data || !data.server || !data.username || !data.password) {
console.log("Cannot load config, have you run tickets2test config?");
process.exit(1);
}
return axios.create({
baseURL: data.server,
timeout: 5000,
auth: {
username: data.username,
password: data.password
}
});
}
};