SEBWIN-296: Implemented unit tests for XML serializer.

This commit is contained in:
dbuechel 2019-02-21 10:39:36 +01:00
parent 418a834a0a
commit 71c5046275
4 changed files with 1093 additions and 1 deletions

View file

@ -14,6 +14,7 @@ using System.Reflection;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SafeExamBrowser.Configuration.ConfigurationData;
using SafeExamBrowser.Configuration.DataFormats;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.DataFormats;
@ -80,6 +81,24 @@ namespace SafeExamBrowser.Configuration.UnitTests.DataFormats
Assert.AreEqual(4, (dictThree["dictThreeKeyTwo"] as List<object>)[3]);
}
[TestMethod]
public void MustCorrectlyParseTestSettings()
{
var data = LoadTestSettings();
var result = sut.TryParse(data);
Assert.AreEqual(LoadStatus.Success, result.Status);
Assert.AreEqual(FormatType.Xml, result.Format);
Assert.IsNull(result.Encryption);
Assert.IsNotNull(result.RawData);
Assert.AreEqual(true, result.RawData[Keys.Browser.AllowConfigurationDownloads]);
Assert.AreEqual(0, result.RawData[Keys.ConfigurationFile.ConfigurationPurpose]);
Assert.AreEqual("https://safeexambrowser.org/start", result.RawData[Keys.General.StartUrl]);
Assert.AreEqual(true, result.RawData[Keys.Input.Keyboard.EnableF5]);
Assert.IsInstanceOfType(result.RawData[Keys.Network.Certificates.EmbeddedCertificates], typeof(List<object>));
}
[TestMethod]
public void MustCheckForRootDictionary()
{
@ -172,5 +191,13 @@ namespace SafeExamBrowser.Configuration.UnitTests.DataFormats
return data;
}
private Stream LoadTestSettings()
{
var path = $"{nameof(SafeExamBrowser)}.{nameof(Configuration)}.{nameof(UnitTests)}.{nameof(DataFormats)}.XmlTestSettings.xml";
var data = Assembly.GetAssembly(GetType()).GetManifestResourceStream(path);
return data;
}
}
}

View file

@ -6,17 +6,282 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using SafeExamBrowser.Configuration.DataFormats;
using SafeExamBrowser.Contracts.Configuration;
using SafeExamBrowser.Contracts.Configuration.DataFormats;
using SafeExamBrowser.Contracts.Logging;
namespace SafeExamBrowser.Configuration.UnitTests.DataFormats
{
[TestClass]
public class XmlSerializerTests
{
private Mock<ILogger> logger;
private XmlSerializer sut;
[TestInitialize]
public void Initialize()
{
logger = new Mock<ILogger>();
sut = new XmlSerializer(logger.Object);
}
[TestMethod]
public void MustOnlySupportXmlFormat()
{
var values = Enum.GetValues(typeof(FormatType));
foreach (var value in values)
{
if (value is FormatType format && format != FormatType.Xml)
{
Assert.IsFalse(sut.CanSerialize(format));
}
}
Assert.IsTrue(sut.CanSerialize(FormatType.Xml));
}
[TestMethod]
public void MustCorrectlySerializeEmptyDictionary()
{
var result = sut.TrySerialize(new Dictionary<string, object>());
Assert.AreEqual(SaveStatus.Success, result.Status);
Assert.IsNotNull(result.Data);
Assert.AreNotEqual(0, result.Data.Length);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
Assert.AreEqual(XmlElement.Dictionary, (xml.Root.Nodes().First() as XElement).Name);
Assert.IsTrue((xml.Root.Nodes().First() as XElement).IsEmpty);
}
[TestMethod]
public void MustCorrectlySerializeDictionary()
{
var data = new Dictionary<string, object> { { "abc", 1 }, { "def", 2 }, { "ghi", 3 } };
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.Success, result.Status);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
var dictionary = xml.Root.Nodes().First() as XElement;
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(0) as XElement).Name);
Assert.AreEqual("abc", (dictionary.Nodes().ElementAt(0) as XElement).Value);
Assert.AreEqual(XmlElement.Integer, (dictionary.Nodes().ElementAt(1) as XElement).Name);
Assert.AreEqual(1, Convert.ToInt32((dictionary.Nodes().ElementAt(1) as XElement).Value));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(2) as XElement).Name);
Assert.AreEqual("def", (dictionary.Nodes().ElementAt(2) as XElement).Value);
Assert.AreEqual(XmlElement.Integer, (dictionary.Nodes().ElementAt(3) as XElement).Name);
Assert.AreEqual(2, Convert.ToInt32((dictionary.Nodes().ElementAt(3) as XElement).Value));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(4) as XElement).Name);
Assert.AreEqual("ghi", (dictionary.Nodes().ElementAt(4) as XElement).Value);
Assert.AreEqual(XmlElement.Integer, (dictionary.Nodes().ElementAt(5) as XElement).Name);
Assert.AreEqual(3, Convert.ToInt32((dictionary.Nodes().ElementAt(5) as XElement).Value));
}
[TestMethod]
public void MustCorrectlySerializeArray()
{
var data = new Dictionary<string, object> { { "test", new List<object> { 12.3, 23.4, 34.5, 45.6 } } };
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.Success, result.Status);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
var dictionary = xml.Root.Nodes().First() as XElement;
var array = dictionary.Nodes().ElementAt(1) as XElement;
var values = array.Nodes().Cast<XElement>();
Assert.AreEqual(XmlElement.Array, array.Name);
Assert.AreEqual(4, values.Count());
Assert.AreEqual(XmlElement.Real, values.ElementAt(0).Name);
Assert.AreEqual(12.3, Convert.ToDouble(values.ElementAt(0).Value));
Assert.AreEqual(XmlElement.Real, values.ElementAt(1).Name);
Assert.AreEqual(23.4, Convert.ToDouble(values.ElementAt(1).Value));
Assert.AreEqual(XmlElement.Real, values.ElementAt(2).Name);
Assert.AreEqual(34.5, Convert.ToDouble(values.ElementAt(2).Value));
Assert.AreEqual(XmlElement.Real, values.ElementAt(3).Name);
Assert.AreEqual(45.6, Convert.ToDouble(values.ElementAt(3).Value));
}
[TestMethod]
public void MustCorrectlySerializeNestedCollections()
{
var data = new Dictionary<string, object>
{
{ "ArrayOfDictionaries",
new List<object>
{
new Dictionary<string, object>
{
{ "Double", 123.5 },
{ "Text", "Hello World!" }
},
new Dictionary<string, object>
{
{ "InnerArray", new List<object> { 6, 7, 8 } }
}
}
},
{ "SomeDictionary", new Dictionary<string, object> { { "blubb", 123 } } },
{ "SomeArray", new List<object> { 1, 2, 3, 4 } }
};
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.Success, result.Status);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
var dictionary = xml.Root.Nodes().First() as XElement;
var arrayOfDictionaries = dictionary.Nodes().ElementAt(1) as XElement;
var innerDictionaryOne = arrayOfDictionaries.Nodes().ElementAt(0) as XElement;
var innerDictionaryTwo = arrayOfDictionaries.Nodes().ElementAt(1) as XElement;
var innerDictionaryTwoArray = innerDictionaryTwo.Nodes().ElementAt(1) as XElement;
var someArray = dictionary.Nodes().ElementAt(3) as XElement;
var someDictionary = dictionary.Nodes().ElementAt(5) as XElement;
Assert.AreEqual(6, dictionary.Nodes().Count());
Assert.AreEqual(2, arrayOfDictionaries.Nodes().Count());
Assert.AreEqual(4, someArray.Nodes().Count());
Assert.AreEqual(2, someDictionary.Nodes().Count());
Assert.AreEqual(XmlElement.Array, arrayOfDictionaries.Name);
Assert.AreEqual(XmlElement.Array, someArray.Name);
Assert.AreEqual(XmlElement.Dictionary, someDictionary.Name);
Assert.AreEqual(123.5, Convert.ToDouble((innerDictionaryOne.Nodes().ElementAt(1) as XElement).Value));
Assert.AreEqual("Hello World!", (innerDictionaryOne.Nodes().ElementAt(3) as XElement).Value);
Assert.AreEqual(6, Convert.ToInt32((innerDictionaryTwoArray.Nodes().ElementAt(0) as XElement).Value));
Assert.AreEqual(7, Convert.ToInt32((innerDictionaryTwoArray.Nodes().ElementAt(1) as XElement).Value));
Assert.AreEqual(8, Convert.ToInt32((innerDictionaryTwoArray.Nodes().ElementAt(2) as XElement).Value));
Assert.AreEqual(1, Convert.ToInt32((someArray.Nodes().ElementAt(0) as XElement).Value));
Assert.AreEqual(2, Convert.ToInt32((someArray.Nodes().ElementAt(1) as XElement).Value));
Assert.AreEqual(3, Convert.ToInt32((someArray.Nodes().ElementAt(2) as XElement).Value));
Assert.AreEqual(4, Convert.ToInt32((someArray.Nodes().ElementAt(3) as XElement).Value));
Assert.AreEqual(123, Convert.ToInt32((someDictionary.Nodes().ElementAt(1) as XElement).Value));
}
[TestMethod]
public void MustCorectlySerializeSimpleTypes()
{
var data = new Dictionary<string, object>
{
{ "SomeData", Convert.FromBase64String("/5vlF76sb+5vgkhjiNTOn7l1SN3Ho2UAMJD3TtLo49M=") },
{ "SomeDate", new DateTime(2019, 02, 20, 14, 30, 00, 123, DateTimeKind.Utc) },
{ "SomeBoolean", true },
{ "AnotherBoolean", false },
{ "SomeInteger", 4567 },
{ "SomeDouble", 4567.8912 },
{ "SomeText", "Here goes some text" }
};
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.Success, result.Status);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
var dictionary = xml.Root.Nodes().First() as XElement;
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(0) as XElement).Name);
Assert.AreEqual("AnotherBoolean", (dictionary.Nodes().ElementAt(0) as XElement).Value);
Assert.AreEqual(false, Convert.ToBoolean((dictionary.Nodes().ElementAt(1) as XElement).Name.LocalName));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(2) as XElement).Name);
Assert.AreEqual("SomeBoolean", (dictionary.Nodes().ElementAt(2) as XElement).Value);
Assert.AreEqual(true, Convert.ToBoolean((dictionary.Nodes().ElementAt(3) as XElement).Name.LocalName));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(4) as XElement).Name);
Assert.AreEqual("SomeData", (dictionary.Nodes().ElementAt(4) as XElement).Value);
Assert.AreEqual(XmlElement.Data, (dictionary.Nodes().ElementAt(5) as XElement).Name);
Assert.AreEqual("/5vlF76sb+5vgkhjiNTOn7l1SN3Ho2UAMJD3TtLo49M=", (dictionary.Nodes().ElementAt(5) as XElement).Value);
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(6) as XElement).Name);
Assert.AreEqual("SomeDate", (dictionary.Nodes().ElementAt(6) as XElement).Value);
Assert.AreEqual(XmlElement.Date, (dictionary.Nodes().ElementAt(7) as XElement).Name);
Assert.AreEqual("2019-02-20T14:30:00.123Z", (dictionary.Nodes().ElementAt(7) as XElement).Value);
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(8) as XElement).Name);
Assert.AreEqual("SomeDouble", (dictionary.Nodes().ElementAt(8) as XElement).Value);
Assert.AreEqual(XmlElement.Real, (dictionary.Nodes().ElementAt(9) as XElement).Name);
Assert.AreEqual(4567.8912, Convert.ToDouble((dictionary.Nodes().ElementAt(9) as XElement).Value));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(10) as XElement).Name);
Assert.AreEqual("SomeInteger", (dictionary.Nodes().ElementAt(10) as XElement).Value);
Assert.AreEqual(XmlElement.Integer, (dictionary.Nodes().ElementAt(11) as XElement).Name);
Assert.AreEqual(4567, Convert.ToInt32((dictionary.Nodes().ElementAt(11) as XElement).Value));
Assert.AreEqual(XmlElement.Key, (dictionary.Nodes().ElementAt(12) as XElement).Name);
Assert.AreEqual("SomeText", (dictionary.Nodes().ElementAt(12) as XElement).Value);
Assert.AreEqual(XmlElement.String, (dictionary.Nodes().ElementAt(13) as XElement).Name);
Assert.AreEqual("Here goes some text", (dictionary.Nodes().ElementAt(13) as XElement).Value);
}
[TestMethod]
public void MustSerializeNullAsString()
{
var data = new Dictionary<string, object> { { "test", null } };
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.Success, result.Status);
result.Data.Seek(0, SeekOrigin.Begin);
var xml = XDocument.Load(result.Data);
Assert.AreEqual(XmlElement.Root, xml.Root.Name);
Assert.AreEqual(1, xml.Root.Nodes().Count());
var dictionary = xml.Root.Nodes().First() as XElement;
Assert.IsTrue((dictionary.Nodes().ElementAt(1) as XElement).IsEmpty);
Assert.AreEqual(XmlElement.String, (dictionary.Nodes().ElementAt(1) as XElement).Name);
}
[TestMethod]
public void MustFailForUnknownSimpleType()
{
var data = new Dictionary<string, object> { { "test", new Tuple<int>(123) } };
var result = sut.TrySerialize(data);
Assert.AreEqual(SaveStatus.InvalidData, result.Status);
}
}
}

View file

@ -0,0 +1,795 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>originatorVersion</key>
<string>SEB_Win_2.1.1</string>
<key>startURL</key>
<string>https://safeexambrowser.org/start</string>
<key>startResource</key>
<string />
<key>sebServerURL</key>
<string />
<key>hashedAdminPassword</key>
<string />
<key>allowQuit</key>
<true />
<key>ignoreExitKeys</key>
<true />
<key>hashedQuitPassword</key>
<string />
<key>exitKey1</key>
<integer>2</integer>
<key>exitKey2</key>
<integer>10</integer>
<key>exitKey3</key>
<integer>5</integer>
<key>sebMode</key>
<integer>0</integer>
<key>browserMessagingSocket</key>
<string>ws://localhost:8706</string>
<key>browserMessagingPingTime</key>
<integer>120000</integer>
<key>sebConfigPurpose</key>
<integer>0</integer>
<key>allowPreferencesWindow</key>
<true />
<key>useAsymmetricOnlyEncryption</key>
<false />
<key>browserViewMode</key>
<integer>0</integer>
<key>mainBrowserWindowWidth</key>
<string>100%</string>
<key>mainBrowserWindowHeight</key>
<string>100%</string>
<key>mainBrowserWindowPositioning</key>
<integer>1</integer>
<key>enableBrowserWindowToolbar</key>
<false />
<key>hideBrowserWindowToolbar</key>
<false />
<key>showMenuBar</key>
<false />
<key>showTaskBar</key>
<true />
<key>taskBarHeight</key>
<integer>40</integer>
<key>touchOptimized</key>
<false />
<key>enableZoomText</key>
<true />
<key>enableZoomPage</key>
<true />
<key>zoomMode</key>
<integer>0</integer>
<key>allowSpellCheck</key>
<false />
<key>allowDictionaryLookup</key>
<false />
<key>allowSpellCheckDictionary</key>
<array></array>
<key>additionalDictionaries</key>
<array></array>
<key>showReloadButton</key>
<true />
<key>showTime</key>
<true />
<key>showInputLanguage</key>
<true />
<key>enableTouchExit</key>
<false />
<key>oskBehavior</key>
<integer>2</integer>
<key>audioControlEnabled</key>
<true />
<key>audioMute</key>
<false />
<key>audioVolumeLevel</key>
<integer>25</integer>
<key>audioSetVolumeLevel</key>
<false />
<key>browserScreenKeyboard</key>
<false />
<key>newBrowserWindowByLinkPolicy</key>
<integer>2</integer>
<key>newBrowserWindowByScriptPolicy</key>
<integer>2</integer>
<key>newBrowserWindowByLinkBlockForeign</key>
<false />
<key>newBrowserWindowByScriptBlockForeign</key>
<false />
<key>newBrowserWindowByLinkWidth</key>
<string>1000</string>
<key>newBrowserWindowByLinkHeight</key>
<string>100%</string>
<key>newBrowserWindowByLinkPositioning</key>
<integer>2</integer>
<key>enablePlugIns</key>
<true />
<key>enableJava</key>
<false />
<key>enableJavaScript</key>
<true />
<key>blockPopUpWindows</key>
<false />
<key>allowVideoCapture</key>
<false />
<key>allowAudioCapture</key>
<false />
<key>allowBrowsingBackForward</key>
<false />
<key>newBrowserWindowNavigation</key>
<true />
<key>removeBrowserProfile</key>
<false />
<key>removeLocalStorage</key>
<false />
<key>enableSebBrowser</key>
<true />
<key>browserWindowAllowReload</key>
<true />
<key>newBrowserWindowAllowReload</key>
<true />
<key>showReloadWarning</key>
<true />
<key>newBrowserWindowShowReloadWarning</key>
<false />
<key>browserUserAgentWinDesktopMode</key>
<integer>0</integer>
<key>browserUserAgentWinDesktopModeCustom</key>
<string />
<key>browserUserAgentWinTouchMode</key>
<integer>0</integer>
<key>browserUserAgentWinTouchModeIPad</key>
<string>Mozilla/5.0 (iPad; CPU OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.3 Mobile/15E216 Safari/605.1.15</string>
<key>browserUserAgentWinTouchModeCustom</key>
<string />
<key>browserUserAgent</key>
<string />
<key>browserUserAgentMac</key>
<integer>0</integer>
<key>browserUserAgentMacCustom</key>
<string />
<key>browserWindowTitleSuffix</key>
<string />
<key>allowDownUploads</key>
<true />
<key>downloadDirectoryOSX</key>
<string>~/Downloads</string>
<key>downloadDirectoryWin</key>
<string />
<key>openDownloads</key>
<false />
<key>chooseFileToUploadPolicy</key>
<integer>0</integer>
<key>downloadPDFFiles</key>
<false />
<key>allowPDFPlugIn</key>
<false />
<key>downloadAndOpenSebConfig</key>
<true />
<key>examKeySalt</key>
<data>/5vlF76sb+5vgkhjiNTOn7l1SN3Ho2UAMJD3TtLo49M=</data>
<key>browserExamKey</key>
<string />
<key>browserURLSalt</key>
<true />
<key>sendBrowserExamKey</key>
<false />
<key>quitURL</key>
<string />
<key>quitURLConfirm</key>
<true />
<key>restartExamURL</key>
<string />
<key>restartExamUseStartURL</key>
<false />
<key>restartExamText</key>
<string />
<key>restartExamPasswordProtected</key>
<true />
<key>additionalResources</key>
<array></array>
<key>monitorProcesses</key>
<true />
<key>allowSwitchToApplications</key>
<false />
<key>allowFlashFullscreen</key>
<false />
<key>permittedProcesses</key>
<array>
<dict>
<key>active</key>
<true />
<key>autostart</key>
<true />
<key>iconInTaskbar</key>
<true />
<key>runInBackground</key>
<false />
<key>allowUserToChooseApp</key>
<false />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>title</key>
<string>SEB</string>
<key>description</key>
<string />
<key>executable</key>
<string>firefox.exe</string>
<key>originalName</key>
<string>firefox.exe</string>
<key>path</key>
<string>../xulrunner/</string>
<key>identifier</key>
<string>Firefox</string>
<key>windowHandlingProcess</key>
<string />
<key>arguments</key>
<array></array>
</dict>
</array>
<key>prohibitedProcesses</key>
<array>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>join.me</string>
<key>originalName</key>
<string>join.me</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>RPCSuite</string>
<key>originalName</key>
<string>RPCSuite</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>RPCService</string>
<key>originalName</key>
<string>RPCService</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>RemotePCDesktop</string>
<key>originalName</key>
<string>RemotePCDesktop</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>beamyourscreen-host</string>
<key>originalName</key>
<string>beamyourscreen-host</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>AeroAdmin</string>
<key>originalName</key>
<string>AeroAdmin</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>Mikogo-host</string>
<key>originalName</key>
<string>Mikogo-host</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>chromoting</string>
<key>originalName</key>
<string>chromoting</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>vncserverui</string>
<key>originalName</key>
<string>vncserverui</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>vncviewer</string>
<key>originalName</key>
<string>vncviewer</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>vncserver</string>
<key>originalName</key>
<string>vncserver</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>TeamViewer</string>
<key>originalName</key>
<string>TeamViewer</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>GotoMeetingWinStore</string>
<key>originalName</key>
<string>GotoMeetingWinStore</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>g2mcomm.exe</string>
<key>originalName</key>
<string>g2mcomm.exe</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>SkypeHost</string>
<key>originalName</key>
<string>SkypeHost</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
<dict>
<key>active</key>
<true />
<key>currentUser</key>
<true />
<key>strongKill</key>
<false />
<key>os</key>
<integer>1</integer>
<key>executable</key>
<string>Skype</string>
<key>originalName</key>
<string>Skype</string>
<key>description</key>
<string />
<key>identifier</key>
<string />
<key>windowHandlingProcess</key>
<string />
<key>user</key>
<string />
</dict>
</array>
<key>enableURLFilter</key>
<false />
<key>enableURLContentFilter</key>
<false />
<key>URLFilterRules</key>
<array></array>
<key>URLFilterEnable</key>
<false />
<key>URLFilterEnableContentFilter</key>
<false />
<key>blacklistURLFilter</key>
<string />
<key>whitelistURLFilter</key>
<string />
<key>urlFilterTrustedContent</key>
<true />
<key>urlFilterRegex</key>
<true />
<key>embeddedCertificates</key>
<array></array>
<key>pinEmbeddedCertificates</key>
<false />
<key>proxySettingsPolicy</key>
<integer>0</integer>
<key>proxies</key>
<dict>
<key>ExceptionsList</key>
<array></array>
<key>ExcludeSimpleHostnames</key>
<false />
<key>AutoDiscoveryEnabled</key>
<false />
<key>AutoConfigurationEnabled</key>
<false />
<key>AutoConfigurationJavaScript</key>
<string />
<key>AutoConfigurationURL</key>
<string />
<key>FTPPassive</key>
<true />
<key>HTTPEnable</key>
<false />
<key>HTTPPort</key>
<integer>80</integer>
<key>HTTPProxy</key>
<string />
<key>HTTPRequiresPassword</key>
<false />
<key>HTTPUsername</key>
<string />
<key>HTTPPassword</key>
<string />
<key>HTTPSEnable</key>
<false />
<key>HTTPSPort</key>
<integer>443</integer>
<key>HTTPSProxy</key>
<string />
<key>HTTPSRequiresPassword</key>
<false />
<key>HTTPSUsername</key>
<string />
<key>HTTPSPassword</key>
<string />
<key>FTPEnable</key>
<false />
<key>FTPPort</key>
<integer>21</integer>
<key>FTPProxy</key>
<string />
<key>FTPRequiresPassword</key>
<false />
<key>FTPUsername</key>
<string />
<key>FTPPassword</key>
<string />
<key>SOCKSEnable</key>
<false />
<key>SOCKSPort</key>
<integer>1080</integer>
<key>SOCKSProxy</key>
<string />
<key>SOCKSRequiresPassword</key>
<false />
<key>SOCKSUsername</key>
<string />
<key>SOCKSPassword</key>
<string />
<key>RTSPEnable</key>
<false />
<key>RTSPPort</key>
<integer>554</integer>
<key>RTSPProxy</key>
<string />
<key>RTSPRequiresPassword</key>
<false />
<key>RTSPUsername</key>
<string />
<key>RTSPPassword</key>
<string />
</dict>
<key>sebServicePolicy</key>
<integer>1</integer>
<key>allowVirtualMachine</key>
<false />
<key>allowScreenSharing</key>
<false />
<key>enablePrivateClipboard</key>
<true />
<key>createNewDesktop</key>
<true />
<key>killExplorerShell</key>
<false />
<key>enableLogging</key>
<true />
<key>logDirectoryOSX</key>
<string>~/Documents</string>
<key>logDirectoryWin</key>
<string />
<key>allowWlan</key>
<false />
<key>lockOnMessageSocketClose</key>
<true />
<key>minMacOSVersion</key>
<integer>4</integer>
<key>enableAppSwitcherCheck</key>
<true />
<key>forceAppFolderInstall</key>
<true />
<key>allowUserAppFolderInstall</key>
<false />
<key>allowSiri</key>
<false />
<key>allowDictation</key>
<false />
<key>detectStoppedProcess</key>
<true />
<key>allowDisplayMirroring</key>
<false />
<key>allowedDisplaysMaxNumber</key>
<integer>1</integer>
<key>allowedDisplayBuiltin</key>
<true />
<key>insideSebEnableSwitchUser</key>
<false />
<key>insideSebEnableLockThisComputer</key>
<false />
<key>insideSebEnableChangeAPassword</key>
<false />
<key>insideSebEnableStartTaskManager</key>
<false />
<key>insideSebEnableLogOff</key>
<false />
<key>insideSebEnableShutDown</key>
<false />
<key>insideSebEnableEaseOfAccess</key>
<false />
<key>insideSebEnableVmWareClientShade</key>
<false />
<key>insideSebEnableEnableNetworkConnectionSelector</key>
<false />
<key>hookKeys</key>
<true />
<key>enableEsc</key>
<true />
<key>enableCtrlEsc</key>
<false />
<key>enableAltEsc</key>
<false />
<key>enableAltTab</key>
<true />
<key>enableAltF4</key>
<false />
<key>enableStartMenu</key>
<false />
<key>enableRightMouse</key>
<true />
<key>enablePrintScreen</key>
<false />
<key>enableAltMouseWheel</key>
<false />
<key>enableF1</key>
<true />
<key>enableF2</key>
<true />
<key>enableF3</key>
<true />
<key>enableF4</key>
<true />
<key>enableF5</key>
<true />
<key>enableF6</key>
<true />
<key>enableF7</key>
<true />
<key>enableF8</key>
<true />
<key>enableF9</key>
<true />
<key>enableF10</key>
<true />
<key>enableF11</key>
<true />
<key>enableF12</key>
<true />
</dict>
</plist>

View file

@ -81,6 +81,8 @@
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="ConfigurationRepositoryTests.cs" />
@ -97,6 +99,7 @@
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<EmbeddedResource Include="DataFormats\XmlTestSettings.xml" />
<None Include="packages.config" />
<EmbeddedResource Include="UnitTestCert.pfx" />
</ItemGroup>
@ -111,7 +114,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="DataFormats\XmlTestData.xml" />
<EmbeddedResource Include="DataFormats\XmlTestData.xml">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />