2019-02-10 05:20:37 +07:00
|
|
|
import { GET_Expect401, GET_ExpectRedirect } from "../../../helpers/utils/Requests";
|
|
|
|
|
|
|
|
export default function() {
|
|
|
|
describe('Query without authenticated cookie', function() {
|
2019-03-27 03:00:47 +07:00
|
|
|
it('should get a 401 on GET to https://login.example.com:8080/api/verify', async function() {
|
2019-02-10 05:20:37 +07:00
|
|
|
await GET_Expect401('https://login.example.com:8080/api/verify');
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('Parameter `rd` required by Kubernetes ingress controller', async function() {
|
|
|
|
it('should redirect to https://login.example.com:8080', async function() {
|
|
|
|
await GET_ExpectRedirect('https://login.example.com:8080/api/verify?rd=https://login.example.com:8080',
|
|
|
|
'https://login.example.com:8080');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|