mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #22
With the understanding that most people will not have a valid cert or self signed cert I have disabled the SSL warnings. Added a SSL option to the Plex settings and added unit test to cover this.
This commit is contained in:
parent
07b42ffd50
commit
e6d67c7320
6 changed files with 41 additions and 8 deletions
|
@ -34,15 +34,24 @@ namespace PlexRequests.Helpers.Tests
|
|||
public class UriHelperTests
|
||||
{
|
||||
[TestCaseSource(nameof(UriData))]
|
||||
public void CreateUri(string uri, Uri expected)
|
||||
public void CreateUri1(string uri, Uri expected)
|
||||
{
|
||||
var result = uri.ReturnUri();
|
||||
|
||||
Assert.That(result, Is.EqualTo(expected));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CreateUriWithSsl()
|
||||
{
|
||||
var uri = "192.168.1.69";
|
||||
var result = uri.ReturnUri(8080, true);
|
||||
|
||||
Assert.That(result, Is.EqualTo(new Uri("https://192.168.1.69:8080")));
|
||||
}
|
||||
|
||||
[TestCaseSource(nameof(UriDataWithPort))]
|
||||
public void CreateUri(string uri, int port, Uri expected)
|
||||
public void CreateUri2(string uri, int port, Uri expected)
|
||||
{
|
||||
var result = uri.ReturnUri(port);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue