-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathKcTestEnvironment.cs
More file actions
57 lines (49 loc) · 1.91 KB
/
KcTestEnvironment.cs
File metadata and controls
57 lines (49 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using NETCore.Keycloak.Client.Models.Auth;
using Newtonsoft.Json;
namespace NETCore.Keycloak.Client.Tests.Models;
/// <summary>
/// Represents the test environment configuration for Keycloak integration tests.
/// This class maps to a JSON configuration file used to set up the Keycloak environment,
/// including server details, administrative credentials, and testing realm configuration.
/// </summary>
public class KcTestEnvironment
{
/// <summary>
/// Gets or sets the Keycloak server version.
/// </summary>
[JsonProperty("kc_version")]
public string KcVersion { get; set; }
/// <summary>
/// Gets or sets the base URL of the Keycloak server.
/// </summary>
[JsonProperty("baseUrl")]
public string BaseUrl { get; set; }
/// <summary>
/// Gets or sets the invalid base URL for testing error capturing.
/// </summary>
[JsonProperty("invalidBaseUrl")]
public string InvalidBaseUrl { get; set; }
/// <summary>
/// Gets or sets the name of the authentication realm in Keycloak.
/// Typically, this is the master realm used for administrative tasks.
/// </summary>
[JsonProperty("auth_realm")]
public string AuthRealm { get; set; }
/// <summary>
/// Gets or sets the client ID used for authentication in the Keycloak master realm.
/// </summary>
[JsonProperty("client_id")]
public string ClientId { get; set; }
/// <summary>
/// Gets or sets the administrative credentials for the master realm.
/// Includes login details required for administrative operations.
/// </summary>
[JsonProperty("user")]
public KcUserLogin Admin { get; set; }
/// <summary>
/// Gets or sets the configuration for the testing realm in Keycloak.
/// This includes details such as the realm name, clients, and test users.
/// </summary>
[JsonProperty("testing_realm")]
public KcTestRealm TestingRealm { get; set; }
}