mirror of
https://github.com/KevinMidboe/immich.git
synced 2026-01-21 16:45:49 +00:00
feat(server,web): migrate oauth settings from env to system config (#1061)
This commit is contained in:
9
mobile/openapi/test/system_config_api_test.dart
generated
9
mobile/openapi/test/system_config_api_test.dart
generated
@@ -17,12 +17,17 @@ void main() {
|
||||
// final instance = SystemConfigApi();
|
||||
|
||||
group('tests for SystemConfigApi', () {
|
||||
//Future<SystemConfigResponseDto> getConfig() async
|
||||
//Future<SystemConfigDto> getConfig() async
|
||||
test('test getConfig', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<SystemConfigResponseDto> updateConfig(Object body) async
|
||||
//Future<SystemConfigDto> getDefaults() async
|
||||
test('test getDefaults', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
//Future<SystemConfigDto> updateConfig(SystemConfigDto systemConfigDto) async
|
||||
test('test updateConfig', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
@@ -11,13 +11,18 @@
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigResponseDto
|
||||
// tests for SystemConfigDto
|
||||
void main() {
|
||||
// final instance = SystemConfigResponseDto();
|
||||
// final instance = SystemConfigDto();
|
||||
|
||||
group('test SystemConfigResponseDto', () {
|
||||
// List<SystemConfigResponseItem> config (default value: const [])
|
||||
test('to test the property `config`', () async {
|
||||
group('test SystemConfigDto', () {
|
||||
// SystemConfigFFmpegDto ffmpeg
|
||||
test('to test the property `ffmpeg`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigOAuthDto oauth
|
||||
test('to test the property `oauth`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
47
mobile/openapi/test/system_config_f_fmpeg_dto_test.dart
generated
Normal file
47
mobile/openapi/test/system_config_f_fmpeg_dto_test.dart
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigFFmpegDto
|
||||
void main() {
|
||||
// final instance = SystemConfigFFmpegDto();
|
||||
|
||||
group('test SystemConfigFFmpegDto', () {
|
||||
// String crf
|
||||
test('to test the property `crf`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String preset
|
||||
test('to test the property `preset`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String targetVideoCodec
|
||||
test('to test the property `targetVideoCodec`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String targetAudioCodec
|
||||
test('to test the property `targetAudioCodec`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String targetScaling
|
||||
test('to test the property `targetScaling`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
21
mobile/openapi/test/system_config_key_test.dart
generated
21
mobile/openapi/test/system_config_key_test.dart
generated
@@ -1,21 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigKey
|
||||
void main() {
|
||||
|
||||
group('test SystemConfigKey', () {
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
57
mobile/openapi/test/system_config_o_auth_dto_test.dart
generated
Normal file
57
mobile/openapi/test/system_config_o_auth_dto_test.dart
generated
Normal file
@@ -0,0 +1,57 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigOAuthDto
|
||||
void main() {
|
||||
// final instance = SystemConfigOAuthDto();
|
||||
|
||||
group('test SystemConfigOAuthDto', () {
|
||||
// bool enabled
|
||||
test('to test the property `enabled`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String issuerUrl
|
||||
test('to test the property `issuerUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String clientId
|
||||
test('to test the property `clientId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String clientSecret
|
||||
test('to test the property `clientSecret`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String scope
|
||||
test('to test the property `scope`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String buttonText
|
||||
test('to test the property `buttonText`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool autoRegister
|
||||
test('to test the property `autoRegister`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:openapi/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SystemConfigResponseItem
|
||||
void main() {
|
||||
// final instance = SystemConfigResponseItem();
|
||||
|
||||
group('test SystemConfigResponseItem', () {
|
||||
// String name
|
||||
test('to test the property `name`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// SystemConfigKey key
|
||||
test('to test the property `key`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String value
|
||||
test('to test the property `value`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String defaultValue
|
||||
test('to test the property `defaultValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user