Example #1
0
        private void OnDeleteCollections(CollectionsResponse resp, string data)
        {
            Test(resp != null);

            if (resp != null)
            {
                if (resp.responseHeader != null)
                {
                    Log.Debug("TestRetrieveAndRank", "OnDeleteCollections | status: {0}, QTime: {1}.", resp.responseHeader.status, resp.responseHeader.QTime);
                }
                if (resp.collections != null)
                {
                    if (resp.collections.Length == 0)
                    {
                        Log.Debug("TestRetrieveAndRank", "OnDeleteCollections | There are no collections!");
                    }
                    else
                    {
                        foreach (string collection in resp.collections)
                        {
                            Log.Debug("TestRetrieveAndRank", "\tOnDeleteCollections | collection: {0}", collection);
                        }
                    }
                }
            }
            else
            {
                Log.Debug("TestRetrieveAndRank", "OnDeleteCollections | GetCollections Response is null!");
            }

            m_DeleteCollectionRequestTested = true;
        }
Example #2
0
 private void OnDeleteCollection(CollectionsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("TestRetrieveAndRank.OnDeleteCollection()", "{0}", customData["json"].ToString());
     Test(resp != null);
     _deleteCollectionTested = true;
     Runnable.Run(ReadyToContinue(_waitTime));
 }
 private void OnDeleteCollection(CollectionsResponse resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Get collections response: {0}", data);
     Test(resp != null);
     _deleteCollectionTested = true;
     Runnable.Run(ReadyToContinue(_waitTime));
 }
Example #4
0
        private void OnListCollections(CollectionsResponse resp, string data)
        {
            Test(resp != null);

            if (resp != null)
            {
                if (resp.responseHeader != null)
                {
                    Log.Debug("TestRetrieveAndRank", "OnListCollections | status: {0}, QTime: {1}.", resp.responseHeader.status, resp.responseHeader.QTime);
                }
                if (resp.collections != null)
                {
                    if (resp.collections.Length == 0)
                    {
                        Log.Debug("TestRetrieveAndRank", "OnListCollections | There are no collections!");
                    }
                    else
                    {
                        foreach (string collection in resp.collections)
                        {
                            Log.Debug("TestRetrieveAndRank", "\tOnListCollections | collection: {0}", collection);

                            if (collection == (IsFullTest ? m_CollectionToCreateName : m_ExampleCollectionName))
                            {
                                Log.Debug("TestRetrieveAndRank", "\t\tOnListCollections | created collection found!: {0}", collection);
                            }
                            else
                            {
                                Log.Debug("TestRetrieveAndRank", "\t\tOnListCollections | created collection not found!: {0}", collection);
                            }
                        }
                    }
                }
            }
            else
            {
                Log.Debug("TestRetrieveAndRank", "OnListCollections | GetCollections Response is null!");
            }

            m_ListCollectionRequestTested = true;
        }
Example #5
0
 private void OnDeleteCollection(CollectionsResponse resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Get collections response: {0}", data);
     _deleteCollectionTested = true;
     Invoke("ReadyToContinue", _waitTime);
 }
Example #6
0
 private void OnDeleteCollection(CollectionsResponse resp, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleRetrieveAndRank.OnDeleteCollection()", "Retrieve and rank - Get collections response: {0}", customData["json"].ToString());
     _deleteCollectionTested = true;
     Invoke("ReadyToContinue", _waitTime);
 }