test(credentials): enable some of the previously disabled tests for Linux (#82)

This commit is contained in:
Aleksey Kulikov 2023-02-02 16:15:24 +03:00 committed by GitHub
parent ed67a4e307
commit 7c6060b02c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,10 +83,7 @@ void main() {
cloneDir.deleteSync(recursive: true);
});
test(
testOn: '!linux',
'clones repository with provided keypair',
() {
test('clones repository with provided keypair', () {
final cloneDir = Directory.systemTemp.createTempSync('clone');
final keypair = Keypair(
username: 'git',
@ -107,8 +104,7 @@ void main() {
if (Platform.isLinux || Platform.isMacOS) {
cloneDir.deleteSync(recursive: true);
}
},
);
});
test('throws when no credentials is provided', () {
final cloneDir = Directory.systemTemp.createTempSync('clone');
@ -189,10 +185,7 @@ void main() {
cloneDir.deleteSync(recursive: true);
});
test(
testOn: '!linux',
'clones repository with provided keypair from memory',
() {
test('clones repository with provided keypair from memory', () {
final cloneDir = Directory.systemTemp.createTempSync('clone');
final pubKey = File(p.join('test', 'assets', 'keys', 'id_rsa.pub'))
.readAsStringSync();
@ -217,8 +210,7 @@ void main() {
if (Platform.isLinux || Platform.isMacOS) {
cloneDir.deleteSync(recursive: true);
}
},
);
});
test('throws when provided keypair from memory is incorrect', () {
final cloneDir = Directory.systemTemp.createTempSync('clone');