A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
import 'package:nextcloud/nextcloud.dart';
|
|
|
|
import 'package:nextcloud/settings.dart';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
|
|
|
|
import 'helper.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
group(
|
|
|
|
'settings',
|
|
|
|
() {
|
|
|
|
late DockerContainer container;
|
|
|
|
late NextcloudClient client;
|
|
|
|
setUp(() async {
|
|
|
|
container = await getDockerContainer();
|
|
|
|
client = await getTestClient(
|
|
|
|
container,
|
|
|
|
username: 'admin',
|
|
|
|
);
|
|
|
|
});
|
|
|
|
tearDown(() => container.destroy());
|
|
|
|
|
|
|
|
group('Logs', () {
|
|
|
|
test('Download', () async {
|
|
|
|
final response = await client.settings.logSettings.download();
|
|
|
|
final logs = utf8.decode(response.body);
|
|
|
|
expect(logs, await container.nextcloudLogs());
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
retry: retryCount,
|
|
|
|
timeout: timeout,
|
|
|
|
);
|
|
|
|
}
|