mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 12:19:09 -04:00
test(credentials): enable some of the previously disabled tests for Linux (#82)
This commit is contained in:
parent
ed67a4e307
commit
7c6060b02c
1 changed files with 42 additions and 50 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue