test: temporarily disable ssh tests on linux

Version of Ubuntu used for tests on ci have old version of libssh2 that
makes tests fail. Disabling 2 tests until github actions will provide
newer version of Ubuntu.
This commit is contained in:
Aleksey Kulikov 2022-02-16 16:48:52 +03:00
parent 21056ca4e6
commit 69d45b6f1b

View file

@ -95,7 +95,9 @@ void main() {
); );
}); });
test('clones repository with provided keypair', () { test(
'clones repository with provided keypair',
() {
final keypair = Keypair( final keypair = Keypair(
username: 'git', username: 'git',
pubKey: p.join('test', 'assets', 'keys', 'id_rsa.pub'), pubKey: p.join('test', 'assets', 'keys', 'id_rsa.pub'),
@ -113,7 +115,9 @@ void main() {
expect(repo.isEmpty, false); expect(repo.isEmpty, false);
repo.free(); repo.free();
}); },
testOn: '!linux',
);
test('throws when no credentials is provided', () { test('throws when no credentials is provided', () {
expect( expect(
@ -181,7 +185,9 @@ void main() {
); );
}); });
test('clones repository with provided keypair from memory', () { test(
'clones repository with provided keypair from memory',
() {
final pubKey = File(p.join('test', 'assets', 'keys', 'id_rsa.pub')) final pubKey = File(p.join('test', 'assets', 'keys', 'id_rsa.pub'))
.readAsStringSync(); .readAsStringSync();
final privateKey = final privateKey =
@ -203,7 +209,9 @@ void main() {
expect(repo.isEmpty, false); expect(repo.isEmpty, false);
repo.free(); repo.free();
}); },
testOn: '!linux',
);
test('throws when provided keypair from memory is incorrect', () { test('throws when provided keypair from memory is incorrect', () {
final pubKey = File(p.join('test', 'assets', 'keys', 'id_rsa.pub')) final pubKey = File(p.join('test', 'assets', 'keys', 'id_rsa.pub'))