@@ -9,36 +9,41 @@ import 'package:gcloud/db.dart' as db;
9
9
import 'package:grpc/grpc.dart' as grpc;
10
10
import 'package:test/test.dart' as test;
11
11
12
- import 'common_e2e.dart' show withAuthenticator;
12
+ import 'common_e2e.dart' show onBot, withAuthenticator;
13
13
import 'raw_datastore_test_impl.dart' as datastore_tests;
14
14
15
15
main () async {
16
16
final endpoint = 'datastore.googleapis.com' ;
17
17
18
18
final String nsPrefix = Platform .operatingSystem;
19
19
20
- await withAuthenticator (OAuth2Scopes ,
21
- (String project, grpc.HttpBasedAuthenticator authenticator) async {
22
- final clientChannel = grpc.ClientChannel (endpoint);
23
- final datastore = GrpcDatastoreImpl (clientChannel, authenticator, project);
24
- // ignore: unused_local_variable
25
- final dbService = db.DatastoreDB (datastore);
26
-
27
- // Once all tests are done we'll close the resources.
28
- test.tearDownAll (() async {
29
- await clientChannel.shutdown ();
30
- });
31
-
32
- // Run low-level datastore tests.
33
- datastore_tests.runTests (
34
- datastore, '${nsPrefix }${DateTime .now ().millisecondsSinceEpoch }' );
35
-
36
- // Run high-level db tests.
37
- /* db_tests.runTests(
20
+ test.group ('grpc datastore' , () async {
21
+ await withAuthenticator (OAuth2Scopes , (
22
+ String project,
23
+ grpc.HttpBasedAuthenticator authenticator,
24
+ ) async {
25
+ final clientChannel = grpc.ClientChannel (endpoint);
26
+ final datastore =
27
+ GrpcDatastoreImpl (clientChannel, authenticator, project);
28
+ // ignore: unused_local_variable
29
+ final dbService = db.DatastoreDB (datastore);
30
+
31
+ // Once all tests are done we'll close the resources.
32
+ test.tearDownAll (() async {
33
+ await clientChannel.shutdown ();
34
+ });
35
+
36
+ // Run low-level datastore tests.
37
+ datastore_tests.runTests (
38
+ datastore, '${nsPrefix }${DateTime .now ().millisecondsSinceEpoch }' );
39
+
40
+ // Run high-level db tests.
41
+ /* db_tests.runTests(
38
42
dbService, '${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');
39
43
40
44
// Run metamodel tests.
41
45
metamodel_tests.runTests(datastore, dbService,
42
46
'${nsPrefix}${DateTime.now().millisecondsSinceEpoch}');*/
43
- });
47
+ });
48
+ }, skip: onBot ());
44
49
}
0 commit comments