| Index: utils/tests/pub/pub_test.dart
|
| diff --git a/utils/tests/pub/pub_test.dart b/utils/tests/pub/pub_test.dart
|
| index ad6a88a99b3c3dc2e3709168b9c35da8aa6be3e8..d618895f7f8e18430dc6d621637bb8346b340124 100644
|
| --- a/utils/tests/pub/pub_test.dart
|
| +++ b/utils/tests/pub/pub_test.dart
|
| @@ -868,292 +868,6 @@ dependencies:
|
|
|
| run();
|
| });
|
| -
|
| - test("unlocks dependencies if necessary to ensure that a new dependency "
|
| - "is satisfied", () {
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 1.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<2.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 1.0.0
|
| -dependencies:
|
| - qux:
|
| - version: "<2.0.0"
|
| - repo: {name: qux, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: qux
|
| -version: 1.0.0
|
| -''']);
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - repo: {name: foo, url: http://localhost:3123}
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 1.0.0");')
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 1.0.0");')
|
| - ]),
|
| - dir('baz', [
|
| - file('baz.dart', 'main() => print("baz 1.0.0");')
|
| - ]),
|
| - dir('qux', [
|
| - file('qux.dart', 'main() => print("qux 1.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: foo
|
| -version: 2.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<3.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 1.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<2.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 2.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<3.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 1.0.0
|
| -dependencies:
|
| - qux:
|
| - version: "<2.0.0"
|
| - repo: {name: qux, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 2.0.0
|
| -dependencies:
|
| - qux:
|
| - version: "<3.0.0"
|
| - repo: {name: qux, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: qux
|
| -version: 1.0.0
|
| -''',
|
| - '''
|
| -name: qux
|
| -version: 2.0.0
|
| -''',
|
| - '''
|
| -name: newdep
|
| -version: 2.0.0
|
| -dependencies:
|
| - baz:
|
| - version: ">=1.5.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''']);
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - repo: {name: foo, url: http://localhost:3123}
|
| - newdep:
|
| - repo: {name: newdep, url: http://localhost:3123}
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 2.0.0");')
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 2.0.0");')
|
| - ]),
|
| - dir('baz', [
|
| - file('baz.dart', 'main() => print("baz 2.0.0");')
|
| - ]),
|
| - dir('qux', [
|
| - file('qux.dart', 'main() => print("qux 1.0.0");')
|
| - ]),
|
| - dir('newdep', [
|
| - file('newdep.dart', 'main() => print("newdep 2.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - run();
|
| - });
|
| -
|
| - test("doesn't unlock dependencies if a new dependency is already "
|
| - "satisfied", () {
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 1.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<2.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 1.0.0
|
| -''']);
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - repo: {name: foo, url: http://localhost:3123}
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 1.0.0");')
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 1.0.0");')
|
| - ]),
|
| - dir('baz', [
|
| - file('baz.dart', 'main() => print("baz 1.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: foo
|
| -version: 2.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<3.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 1.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<2.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: bar
|
| -version: 2.0.0
|
| -dependencies:
|
| - baz:
|
| - version: "<3.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 1.0.0
|
| -''',
|
| - '''
|
| -name: baz
|
| -version: 2.0.0
|
| -''',
|
| - '''
|
| -name: newdep
|
| -version: 2.0.0
|
| -dependencies:
|
| - baz:
|
| - version: ">=1.0.0"
|
| - repo: {name: baz, url: http://localhost:3123}
|
| -''']);
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - repo: {name: foo, url: http://localhost:3123}
|
| - newdep:
|
| - repo: {name: newdep, url: http://localhost:3123}
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 1.0.0");')
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 1.0.0");')
|
| - ]),
|
| - dir('baz', [
|
| - file('baz.dart', 'main() => print("baz 1.0.0");')
|
| - ]),
|
| - dir('newdep', [
|
| - file('newdep.dart', 'main() => print("newdep 2.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - run();
|
| - });
|
| }
|
|
|
| updateCommand() {
|
| @@ -1425,78 +1139,6 @@ dependencies:
|
|
|
| run();
|
| });
|
| -
|
| - test("updates a locked package's dependers in order to get it to max "
|
| - "version", () {
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '{name: bar, version: 1.0.0}'
|
| - ]);
|
| -
|
| - dir(appPath, [
|
| - file('pubspec.yaml', '''
|
| -dependencies:
|
| - foo:
|
| - repo: {name: foo, url: http://localhost:3123}
|
| - bar:
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''')
|
| - ]).scheduleCreate();
|
| -
|
| - schedulePub(args: ['install'],
|
| - output: const RegExp(@"Dependencies installed!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 1.0.0");'),
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 1.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - servePackages("localhost", 3123, [
|
| - '''
|
| -name: foo
|
| -version: 1.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<2.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '''
|
| -name: foo
|
| -version: 2.0.0
|
| -dependencies:
|
| - bar:
|
| - version: "<3.0.0"
|
| - repo: {name: bar, url: http://localhost:3123}
|
| -''',
|
| - '{name: bar, version: 1.0.0}',
|
| - '{name: bar, version: 2.0.0}'
|
| - ]);
|
| -
|
| - schedulePub(args: ['update', 'bar'],
|
| - output: const RegExp(@"Dependencies updated!$"));
|
| -
|
| - dir(packagesPath, [
|
| - dir('foo', [
|
| - file('foo.dart', 'main() => print("foo 2.0.0");'),
|
| - ]),
|
| - dir('bar', [
|
| - file('bar.dart', 'main() => print("bar 2.0.0");')
|
| - ])
|
| - ]).scheduleValidate();
|
| -
|
| - run();
|
| - });
|
| });
|
| }
|
|
|
|
|