public void HappyPathTest()
        {
            var utilities = new Shared.misc.testUtilities.TestUtilities();

            utilities.CleanUpLocal(hostOnly, userName, false);

            EndPoint_TestPage();

            EndPoint_Register();
            var token = EndPoint_Login();
            var resultBeforeUpsert = EndPoint_Get(token);

            Assert.IsNotNull(resultBeforeUpsert);
            Assert.IsTrue(resultBeforeUpsert.Count == 0);

            EndPoint_Upsert(token);

            var resultsAfterUpsert = EndPoint_Get(token);

            Assert.IsNotNull(resultsAfterUpsert);
            Assert.IsTrue(resultsAfterUpsert.Count == 1);
            var bucketListItem = resultsAfterUpsert[0];

            var tempIdHack = System.Convert.ToInt32(bucketListItem.Id.Value);

            EndPoint_Delete(token, tempIdHack);

            EndPoint_Get(token);
            Assert.IsNotNull(resultBeforeUpsert);
            Assert.IsTrue(resultBeforeUpsert.Count == 0);

            //misc endpoints
            EndPoint_GetSystemStatistics(token);
            EndPoint_GetSystemBuildStatistics(token);
            EndPoint_Log(token);
            EndPoint_TestPage();
        }
        public void CleanUpLocal(string host, bool onlyDeleteBucketListItems = false)
        {
            var utilities = new Shared.misc.testUtilities.TestUtilities();

            utilities.CleanUpLocal(host, "testUser", onlyDeleteBucketListItems);
        }
Beispiel #3
0
        private void CleanUser()
        {
            var utilities = new Shared.misc.testUtilities.TestUtilities();

            utilities.CleanUpLocal(userName);
        }
Beispiel #4
0
        public void CleanUpLocal()
        {
            var utilities = new Shared.misc.testUtilities.TestUtilities();

            utilities.CleanUpLocal(Constants.TEST_USER);
        }