Further admin api work

This commit is contained in:
Emma [it/its]@Rory& committed 2025-10-05 21:34:42 +02:00
1 parent abb1b570a4
commit e1483e9f90
17 files changed
+642 -20

No files matched your search

@@ -1,8 +1,17 @@
// See https://aka.ms/new-console-template for more information
using ArcaneLibs;
using Spacebar.AdminApi.PrepareTestData;
using Spacebar.AdminApi.PrepareTestData.TestDataTypes;
await Utils.PostFileWithDataAsync("http://localhost:3001/api/v9/channels/1324497120836834414/messages",
"eyJhbGciOiJFUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjExODM1Njg3NTA5MzEwOTk2NzkiLCJpYXQiOjE3NDQyMTMxNzcsImtpZCI6IjdiMWM5OTBhMWQ1ZWI3MDVjMWFjNmIxOWYwNTVmMTM5Y2FiZDhhOTZmMzg3YTU1NDM3MDRhZDY0OTMyMzViYTMifQ.AUf87OS5DsWLfBR9VVF7emOE8cG8B4JLvktr2WxF9_XQsPd0X8da2s9f9Lq5pTmYe9zOaI7DrHMuggih3uZ9NmZzAfeasEgew4gCBKIcvhxSaKWcU9DMVHgZl-ZH5HnB0yk8l5IKzIV3z6wt9Ght-F_g5SRZiNlpthva0jU2QhRro3IB",
new {
content = "Hello world",
nonce = Random.Shared.NextInt64()
},
File.ReadAllBytes("/home/Rory/Documents/kuromi_smug.png"), "test.png", "image/png");
return;
Console.WriteLine("Hello, World!");
var tests = ClassCollector<ITestData>.ResolveFromAllAccessibleAssemblies();
foreach (var test in tests) {
@@ -19,6 +28,7 @@ if (runMethod != null) {
var task = runMethod.Invoke(testToRun, null) as Task;
await task!;
Console.WriteLine($"Test {testToRun.FullName} completed.");
} else {
}
else {
Console.WriteLine("Test not found.");
}