Not tolerating != 200 responses during (libEufin) tests.
This commit is contained in:
parent
c25b26983c
commit
883ed972a4
@ -829,7 +829,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, {}, {
|
await axios.post(url.href, {}, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -846,7 +846,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
{
|
{
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -860,7 +860,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, req, {
|
await axios.post(url.href, req, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -874,7 +874,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, req, {
|
await axios.post(url.href, req, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -888,7 +888,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, req, {
|
await axios.post(url.href, req, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -902,7 +902,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, req, {
|
await axios.post(url.href, req, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -944,7 +944,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
await axios.post(url.href, req, {
|
await axios.post(url.href, req, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -961,7 +961,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
const res = await axios.get(url.href, {
|
const res = await axios.get(url.href, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return res.data as SandboxAccountTransactions;
|
return res.data as SandboxAccountTransactions;
|
||||||
@ -980,7 +980,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
{
|
{
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -997,7 +997,7 @@ export namespace LibeufinSandboxApi {
|
|||||||
return await axios.get(url.href, {
|
return await axios.get(url.href, {
|
||||||
auth: {
|
auth: {
|
||||||
username: "admin",
|
username: "admin",
|
||||||
password: "test",
|
password: "secret",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1343,7 +1343,6 @@ export namespace LibeufinNexusApi {
|
|||||||
username: username,
|
username: username,
|
||||||
password: password,
|
password: password,
|
||||||
},
|
},
|
||||||
validateStatus: () => true,
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,7 @@ export async function runLibeufinC5xTest(t: GlobalTestState) {
|
|||||||
);
|
);
|
||||||
t.assertTrue(expectOne.data.newTransactions == 1);
|
t.assertTrue(expectOne.data.newTransactions == 1);
|
||||||
t.assertTrue(expectOne.data.downloadedTransactions == 1);
|
t.assertTrue(expectOne.data.downloadedTransactions == 1);
|
||||||
|
|
||||||
let expectZero = await LibeufinNexusApi.fetchTransactions(
|
let expectZero = await LibeufinNexusApi.fetchTransactions(
|
||||||
libeufinServices.libeufinNexus,
|
libeufinServices.libeufinNexus,
|
||||||
user01nexus.localAccountName,
|
user01nexus.localAccountName,
|
||||||
|
Loading…
Reference in New Issue
Block a user