Ejemplo n.º 1
0
 private void OnGetRanker(RankerStatusPayload resp, Dictionary <string, object> customData)
 {
     Log.Debug("TestRetrieveAndRank.OnGetRanker()", "{0}", customData["json"].ToString());
     Test(resp != null);
     _getRankerTested = true;
     Runnable.Run(ReadyToContinue(_waitTime));
 }
Ejemplo n.º 2
0
 private void OnCreateRanker(RankerStatusPayload resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Create ranker response: {0}", data);
     _rankerIdToDelete   = resp.ranker_id;
     _createRankerTested = true;
     Invoke("ReadyToContinue", _waitTime);
 }
Ejemplo n.º 3
0
 private void OnGetRanker(RankerStatusPayload resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Get ranker response: {0}", data);
     Test(resp != null);
     _getRankerTested = true;
     Runnable.Run(ReadyToContinue(_waitTime));
 }
Ejemplo n.º 4
0
 private void OnCreateRanker(RankerStatusPayload resp, Dictionary <string, object> customData)
 {
     Log.Debug("ExampleRetrieveAndRank.OnCreateRanker()", "Retrieve and rank - Create ranker response: {0}", customData["json"].ToString());
     _rankerIdToDelete   = resp.ranker_id;
     _createRankerTested = true;
     Invoke("ReadyToContinue", _waitTime);
 }
Ejemplo n.º 5
0
 private void OnCreateRanker(RankerStatusPayload resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Create ranker response: {0}", data);
     _rankerIdToDelete = resp.ranker_id;
     Test(resp != null);
     _createRankerTested = true;
     Runnable.Run(ReadyToContinue(_waitTime));
 }
 private void OnGetRanker(RankerStatusPayload resp, string data)
 {
     if (resp != null)
     {
         Log.Debug("ExampleRetrieveAndRank", "GetRanker | ranker_id: {0}, url: {1}, name: {2}, created: {3}, status: {4}, status_description: {5}.", resp.ranker_id, resp.url, resp.name, resp.created, resp.status, resp.status_description);
     }
     else
     {
         Log.Debug("ExampleRetrieveAndRank", "GetRanker | GetRanker response is null!");
     }
 }
Ejemplo n.º 7
0
        private void OnCreateRanker(RankerStatusPayload resp, string data)
        {
            Test(resp != null);

            if (resp != null)
            {
                Log.Debug("TestRetrieveAndRank", "OnCreateRanker | ID: {0}, url: {1}, name: {2}, created: {3}, status: {4}, statusDescription: {5}.", resp.ranker_id, resp.url, resp.name, resp.created, resp.status, resp.status_description);
                m_CreatedRankerID = resp.ranker_id;
            }
            else
            {
                Log.Debug("TestRetrieveAndRank", "OnCreateRanker | Get Cluster Response is null!");
            }

            m_CreateRankerTested = true;
        }
Ejemplo n.º 8
0
        private void OnGetRanker(RankerStatusPayload resp, string data)
        {
            Test(resp != null);

            if (resp != null)
            {
                Log.Debug("TestRetrieveAndRank", "GetRanker | ranker_id: {0}, url: {1}, name: {2}, created: {3}, status: {4}, status_description: {5}.", resp.ranker_id, resp.url, resp.name, resp.created, resp.status, resp.status_description);
                if (resp.status != "Available")
                {
                    m_RetrieveAndRank.GetRanker(OnGetRanker, IsFullTest ? m_CreatedRankerID : m_ExampleRankerID);
                }
                else
                {
                    m_IsRankerReady = true;
                }
            }
            else
            {
                Log.Debug("TestRetrieveAndRank", "GetRanker | GetRanker response is null!");
            }

            m_GetRankerInfoTested = true;
        }
Ejemplo n.º 9
0
 private void OnGetRanker(RankerStatusPayload resp, string data)
 {
     Log.Debug("\tExampleRetrieveAndRank", "Retrieve and rank - Get ranker response: {0}", data);
     _getRankerTested = true;
     Invoke("ReadyToContinue", _waitTime);
 }