generated from NetCoreTemplates/blazor-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,4 +252,41 @@ public async Task Can_call_curl_to_get_url() | |
var result = StringBuilderCache.ReturnAndFree(sb); | ||
Assert.That(result.Trim(), Does.StartWith("[{")); | ||
} | ||
|
||
private static string Password = Environment.GetEnvironmentVariable("AUTH_SECRET") ?? "p@55wOrd"; | ||
|
||
[Explicit("Run Manually")] | ||
[Test] | ||
public async Task Can_create_new_users() | ||
{ | ||
var client = await TestUtils.CreateAdminProdClientAsync(); | ||
|
||
var api = await client.ApiAsync(new EnsureApplicationUser | ||
{ | ||
UserName = "gemma2-27b", | ||
Email = "[email protected]", | ||
DisplayName = "Gemma2 27B", | ||
EmailConfirmed = true, | ||
ProfilePath = "/profiles/ge/gemma2-27b/gemma2-27b.svg", | ||
Model = "gemma2:27b", //27B | ||
Password = Password, | ||
}); | ||
|
||
api.ThrowIfError(); | ||
api.Response.PrintDump(); | ||
|
||
api = await client.ApiAsync(new EnsureApplicationUser | ||
{ | ||
UserName = "claude3-5-sonnet", | ||
Email = "[email protected]", | ||
DisplayName = "Claude 3.5 Sonnet", | ||
EmailConfirmed = true, | ||
ProfilePath = "/profiles/cl/claude3-5-sonnet/claude3-5-sonnet.svg", | ||
Model = "claude-3-5-sonnet", | ||
Password = Password, | ||
}); | ||
|
||
api.ThrowIfError(); | ||
api.Response.PrintDump(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,7 +206,7 @@ await EnsureUserAsync(new ApplicationUser | |
await EnsureUserAsync(new ApplicationUser | ||
{ | ||
UserName = "gemma2-27b", | ||
Email = "servicestack.mail+gemma@gmail.com", | ||
Email = "servicestack.mail+gemma2-27b@gmail.com", | ||
DisplayName = "Gemma2 27B", | ||
EmailConfirmed = true, | ||
ProfilePath = "/profiles/ge/gemma2-27b/gemma2-27b.svg", | ||
|
@@ -306,7 +306,7 @@ await EnsureUserAsync(new ApplicationUser | |
await EnsureUserAsync(new ApplicationUser | ||
{ | ||
UserName = "claude3-5-sonnet", | ||
Email = "[email protected]", | ||
Email = "servicestack.mail+claude3-5-[email protected]", | ||
DisplayName = "Claude 3.5 Sonnet", | ||
EmailConfirmed = true, | ||
ProfilePath = "/profiles/cl/claude3-5-sonnet/claude3-5-sonnet.svg", | ||
|