about summary refs log tree commit diff
path: root/Tests/LibMatrix.Tests/Config.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibMatrix.Tests/Config.cs')
-rw-r--r--Tests/LibMatrix.Tests/Config.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Tests/LibMatrix.Tests/Config.cs b/Tests/LibMatrix.Tests/Config.cs
new file mode 100644
index 0000000..fb4ef02
--- /dev/null
+++ b/Tests/LibMatrix.Tests/Config.cs
@@ -0,0 +1,17 @@
+namespace LibMatrix.Tests;
+
+public class Config {
+    public string? TestHomeserver { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_HOMESERVER") ?? null;
+    public string? TestUsername { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_USERNAME") ?? null;
+    public string? TestPassword { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_PASSWORD") ?? null;
+    public string? TestRoomId { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_ROOM_ID") ?? null;
+    public string? TestRoomAlias { get; set; } = Environment.GetEnvironmentVariable("LIBMATRIX_TEST_ROOM_ALIAS") ?? null;
+
+    public Dictionary<string, string> ExpectedHomeserverMappings { get; set; } = new() {
+        {"matrix.org", "https://matrix-client.matrix.org"},
+        {"rory.gay", "https://matrix.rory.gay"}
+    };
+    public Dictionary<string, string> ExpectedAliasMappings { get; set; } = new() {
+        {"#libmatrix:rory.gay", "!tuiLEoMqNOQezxILzt:rory.gay"}
+    };
+}