blob: 316955883763e9c5815a11827a285d05b96e1b38 [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:test/test.dart';
import '../descriptor.dart' as d;
import '../test_pub.dart';
void main() {
test('with a pre-existing credentials.json does not authenticate', () async {
await d.validPackage().create();
await servePackages();
await d.credentialsFile(globalServer, 'access-token').create();
final pub = await startPublish(globalServer);
await confirmPublish(pub);
await pub.kill();
});
}