Beispiel #1
0
        public void GetValueTestStorageUnsafeSsl()
        {
            APIConnectionInformation apiInformation = new APIConnectionInformation();
            string line = "storage-unsafe-ssl=true";

            var fileinfo = new ConfigurationFileReader();

            fileinfo.GetValue(line, apiInformation);
            Assert.AreEqual(apiInformation.StorageUnsafeSsl, true);
        }
Beispiel #2
0
        public void GetValueTestDisableBucketPathSanitization()
        {
            APIConnectionInformation apiInformation = new APIConnectionInformation();
            string line = "disable-path-sanitization=true";

            var fileinfo = new ConfigurationFileReader();

            fileinfo.GetValue(line, apiInformation);
            Assert.AreEqual(apiInformation.DisableBucketPathsSanitization, true);
        }
Beispiel #3
0
        public void GetValueTestForcePathStyle()
        {
            APIConnectionInformation apiInformation = new APIConnectionInformation();
            string line = "force-path=true";

            var fileinfo = new ConfigurationFileReader();

            fileinfo.GetValue(line, apiInformation);
            Assert.AreEqual(apiInformation.ForcePathStyle, true);
        }
Beispiel #4
0
        public void GetValueAccountEmail()
        {
            APIConnectionInformation apiInformation = new APIConnectionInformation();
            string line = "[email protected]";

            var fileinfo = new ConfigurationFileReader();

            fileinfo.GetValue(line, apiInformation);
            Assert.AreEqual(apiInformation.AccountEmail, "*****@*****.**");
        }
Beispiel #5
0
        public void GetValueTestSplitAStorageLine()
        {
            APIConnectionInformation apiInformation = new APIConnectionInformation();
            string line = "storage=TOKEN123";

            var fileinfo = new ConfigurationFileReader();

            fileinfo.GetValue(line, apiInformation);
            Assert.AreEqual(apiInformation.StorageUri, "TOKEN123");
        }