mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Allow instance owners to provide custom name, Include server version in LbpEnvVer
This is the first step towards instance customization. Just a name for now ;)
This commit is contained in:
parent
238894c2be
commit
ee541dbfae
8 changed files with 25 additions and 14 deletions
|
@ -2,6 +2,7 @@ using System.Net;
|
|||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using LBPUnion.ProjectLighthouse.Configuration;
|
||||
using LBPUnion.ProjectLighthouse.Helpers;
|
||||
using LBPUnion.ProjectLighthouse.PlayerData;
|
||||
using LBPUnion.ProjectLighthouse.Tests;
|
||||
using Xunit;
|
||||
|
@ -25,7 +26,7 @@ public class AuthenticationTests : LighthouseServerTest
|
|||
Assert.True(response.IsSuccessStatusCode);
|
||||
string responseContent = await response.Content.ReadAsStringAsync();
|
||||
Assert.Contains("MM_AUTH=", responseContent);
|
||||
Assert.Contains(ServerStatics.ServerName, responseContent);
|
||||
Assert.Contains(VersionHelper.FullVersion, responseContent);
|
||||
}
|
||||
|
||||
[DatabaseFact]
|
||||
|
@ -35,10 +36,10 @@ public class AuthenticationTests : LighthouseServerTest
|
|||
|
||||
Assert.NotNull(loginResult);
|
||||
Assert.NotNull(loginResult.AuthTicket);
|
||||
Assert.NotNull(loginResult.LbpEnvVer);
|
||||
Assert.NotNull(loginResult.ServerBrand);
|
||||
|
||||
Assert.Contains("MM_AUTH=", loginResult.AuthTicket);
|
||||
Assert.Equal(ServerStatics.ServerName, loginResult.LbpEnvVer);
|
||||
Assert.Equal(VersionHelper.FullVersion, loginResult.ServerBrand);
|
||||
}
|
||||
|
||||
[DatabaseFact]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue