platform/test/all_tests.old.dart
thosakwe 5b7e017f31 +10
2016-11-23 15:37:40 -05:00

61 lines
No EOL
1.2 KiB
Dart

import 'dart:io';
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_auth/angel_auth.dart';
import 'package:http/http.dart' as http;
import 'package:test/test.dart';
import 'auth_token_test.dart' as authToken;
import 'local_test.dart' as local;
wireAuth(Angel app) async {
}
main() async {
group('everything', () {
Angel app;
http.Client client;
String url;
setUp(() async {
client = new http.Client();
app = new Angel();
await app.configure(wireAuth);
HttpServer server = await app.startServer(
InternetAddress.LOOPBACK_IP_V4, 0);
url = "http://${server.address.host}:${server.port}";
});
tearDown(() async {
await app.httpServer.close(force: true);
client = null;
url = null;
});
group("JWT (de)serialization", authToken.main);
group("local", local.main);
test('can use login as middleware', () async {
});
test('successRedirect', () async {
});
test('failureRedirect', () async {
});
test('allow everything', () async {
});
test('force everything', () async {
});
test('logout', () async {
});
});
}