Swagger Sample

Default

addCustomizedTestCases

add several test cases to a project POST <br/>/api/v1/scenarios/<scenario_name>/customs? <br/>installer=<installer_name>& version=<version_name>&<br/>project=<project_name>


/api/v1/scenarios/{scenario}/customs

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/customs?installer=&version=&project="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | test cases to be added
        try {
            apiInstance.addCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | test cases to be added
        try {
            apiInstance.addCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *project = project_example; // project name
String *scenario = scenario_example; // 
array[String] *body = ; // test cases to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add customized test cases
[apiInstance addCustomizedTestCasesWith:installer
    version:version
    project:project
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var project = project_example; // {String} project name

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} test cases to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addCustomizedTestCases(installer, version, project, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addCustomizedTestCasesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var project = project_example;  // String | project name
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | test cases to be added (optional) 

            try
            {
                // add customized test cases
                apiInstance.addCustomizedTestCases(installer, version, project, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addCustomizedTestCases: " + e.Message );
            }
        }
    }
}

                                                    

addCustomizedTestCases($installer, $version, $project, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addCustomizedTestCases: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*
project*

Responses

Status: 200 - test cases are added.

Status: 404 - scenario/installer/version/project not existed


addInstallersUnderScenario

add one or multiple installers POST <br/>/api/v1/scenarios/<scenario_name>/installers


/api/v1/scenarios/{scenario}/installers

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/installers"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[ScenarioInstaller] body = ; // array[ScenarioInstaller] | installers to be added
        try {
            apiInstance.addInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[ScenarioInstaller] body = ; // array[ScenarioInstaller] | installers to be added
        try {
            apiInstance.addInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *scenario = scenario_example; // 
array[ScenarioInstaller] *body = ; // installers to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add installers to scenario
[apiInstance addInstallersUnderScenarioWith:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioInstaller]} installers to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addInstallersUnderScenario(scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addInstallersUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioInstaller](); // array[ScenarioInstaller] | installers to be added (optional) 

            try
            {
                // add installers to scenario
                apiInstance.addInstallersUnderScenario(scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addInstallersUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

addInstallersUnderScenario($scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addInstallersUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body

Responses

Status: 200 - installers are added.

Status: 400 - bad schema

Status: 404 - scenario not exist

Status: 409 - conflict, installer already exists


addProjectsUnderScenario

add one or multiple projects POST <br/>/api/v1/scenarios/<scenario_name>/projects? <br/>installer=<installer_name>& version=<version_name>


/api/v1/scenarios/{scenario}/projects

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/projects?installer=&version="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[ScenarioProject] body = ; // array[ScenarioProject] | projects to be added
        try {
            apiInstance.addProjectsUnderScenario(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addProjectsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[ScenarioProject] body = ; // array[ScenarioProject] | projects to be added
        try {
            apiInstance.addProjectsUnderScenario(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addProjectsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *scenario = scenario_example; // 
array[ScenarioProject] *body = ; // projects to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add projects to scenario
[apiInstance addProjectsUnderScenarioWith:installer
    version:version
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioProject]} projects to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addProjectsUnderScenario(installer, version, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addProjectsUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioProject](); // array[ScenarioProject] | projects to be added (optional) 

            try
            {
                // add projects to scenario
                apiInstance.addProjectsUnderScenario(installer, version, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addProjectsUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

addProjectsUnderScenario($installer, $version, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addProjectsUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*

Responses

Status: 200 - projects are added.

Status: 400 - bad schema

Status: 404 - scenario/installer/version not existed

Status: 409 - conflict, project already exists


addScoreRecord

add a new score record to a project POST <br/>/api/v1/scenarios/<scenario_name>/scores? <br/>installer=<installer_name>& version=<version_name>&<br/>project=<project_name>


/api/v1/scenarios/{scenario}/scores

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/scores?installer=&version=&project="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        ScenarioScore body = ; // ScenarioScore | score to be added
        try {
            apiInstance.addScoreRecord(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addScoreRecord");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        ScenarioScore body = ; // ScenarioScore | score to be added
        try {
            apiInstance.addScoreRecord(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addScoreRecord");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *project = project_example; // project name
String *scenario = scenario_example; // 
ScenarioScore *body = ; // score to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add a new score record
[apiInstance addScoreRecordWith:installer
    version:version
    project:project
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var project = project_example; // {String} project name

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {ScenarioScore} score to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addScoreRecord(installer, version, project, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addScoreRecordExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var project = project_example;  // String | project name
            var scenario = scenario_example;  // String | 
            var body = new ScenarioScore(); // ScenarioScore | score to be added (optional) 

            try
            {
                // add a new score record
                apiInstance.addScoreRecord(installer, version, project, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addScoreRecord: " + e.Message );
            }
        }
    }
}

                                                    

addScoreRecord($installer, $version, $project, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addScoreRecord: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*
project*

Responses

Status: 200 - score is created.

Status: 404 - scenario/installer/version/project not existed


addTrustIndicatorRecord

add a new trust indicator record to a project POST <br/>/api/v1/scenarios/<scenario_name>/trust_indicators? <br/>installer=<installer_name>& version=<version_name>&<br/>project=<project_name>


/api/v1/scenarios/{scenario}/trust_indicators

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/trust_indicators?installer=&version=&project="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        ScenarioTI body = ; // ScenarioTI | trust indicator to be added
        try {
            apiInstance.addTrustIndicatorRecord(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addTrustIndicatorRecord");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        ScenarioTI body = ; // ScenarioTI | trust indicator to be added
        try {
            apiInstance.addTrustIndicatorRecord(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addTrustIndicatorRecord");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *project = project_example; // project name
String *scenario = scenario_example; // 
ScenarioTI *body = ; // trust indicator to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add a new trust indicator record
[apiInstance addTrustIndicatorRecordWith:installer
    version:version
    project:project
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var project = project_example; // {String} project name

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {ScenarioTI} trust indicator to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addTrustIndicatorRecord(installer, version, project, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addTrustIndicatorRecordExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var project = project_example;  // String | project name
            var scenario = scenario_example;  // String | 
            var body = new ScenarioTI(); // ScenarioTI | trust indicator to be added (optional) 

            try
            {
                // add a new trust indicator record
                apiInstance.addTrustIndicatorRecord(installer, version, project, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addTrustIndicatorRecord: " + e.Message );
            }
        }
    }
}

                                                    

addTrustIndicatorRecord($installer, $version, $project, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addTrustIndicatorRecord: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*
project*

Responses

Status: 200 - trust indicator is added.

Status: 404 - scenario/installer/version/project not existed


addVersionsUnderScenario

add one or multiple versions POST <br/>/api/v1/scenarios/<scenario_name>/versions? <br/>installer=<installer_name>


/api/v1/scenarios/{scenario}/versions

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/versions?installer="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[ScenarioVersion] body = ; // array[ScenarioVersion] | versions to be added
        try {
            apiInstance.addVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[ScenarioVersion] body = ; // array[ScenarioVersion] | versions to be added
        try {
            apiInstance.addVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#addVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *scenario = scenario_example; // 
array[ScenarioVersion] *body = ; // versions to be added (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// add versions to scenario
[apiInstance addVersionsUnderScenarioWith:installer
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioVersion]} versions to be added
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addVersionsUnderScenario(installer, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class addVersionsUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioVersion](); // array[ScenarioVersion] | versions to be added (optional) 

            try
            {
                // add versions to scenario
                apiInstance.addVersionsUnderScenario(installer, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.addVersionsUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

addVersionsUnderScenario($installer, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->addVersionsUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*

Responses

Status: 200 - versions are added.

Status: 400 - bad schema

Status: 404 - scenario/installer not exist

Status: 409 - conflict, version already exists


changeScenarioOwner

substitute all projects, delete existed ones with new provides PUT <br/>/api/v1/scenarios/<scenario_name>/owner? <br/>installer=<installer_name>& version=<version_name>


/api/v1/scenarios/{scenario}/owner

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/owner?installer=&version="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        ScenarioChangeOwnerRequest body = ; // ScenarioChangeOwnerRequest | new owner
        try {
            apiInstance.changeScenarioOwner(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#changeScenarioOwner");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        ScenarioChangeOwnerRequest body = ; // ScenarioChangeOwnerRequest | new owner
        try {
            apiInstance.changeScenarioOwner(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#changeScenarioOwner");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *scenario = scenario_example; // 
ScenarioChangeOwnerRequest *body = ; // new owner (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// change scenario owner
[apiInstance changeScenarioOwnerWith:installer
    version:version
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {ScenarioChangeOwnerRequest} new owner
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.changeScenarioOwner(installer, version, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class changeScenarioOwnerExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var scenario = scenario_example;  // String | 
            var body = new ScenarioChangeOwnerRequest(); // ScenarioChangeOwnerRequest | new owner (optional) 

            try
            {
                // change scenario owner
                apiInstance.changeScenarioOwner(installer, version, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.changeScenarioOwner: " + e.Message );
            }
        }
    }
}

                                                    

changeScenarioOwner($installer, $version, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->changeScenarioOwner: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*

Responses

Status: 200 - change owner success.

Status: 404 - scenario/installer/version not existed


createPod


/api/v1/pods

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/pods"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        PodCreateRequest body = ; // PodCreateRequest | pod to be created
        try {
            apiInstance.createPod(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createPod");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        PodCreateRequest body = ; // PodCreateRequest | pod to be created
        try {
            apiInstance.createPod(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createPod");
            e.printStackTrace();
        }
    }
}

                                                  


PodCreateRequest *body = ; // pod to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// create a pod
[apiInstance createPodWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'body':  // {PodCreateRequest} pod to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createPod(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class createPodExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new PodCreateRequest(); // PodCreateRequest | pod to be created (optional) 

            try
            {
                // create a pod
                apiInstance.createPod(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createPod: " + e.Message );
            }
        }
    }
}

                                                    

createPod($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createPod: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - pod is created.

Status: 400 - body or name not provided

Status: 403 - pod already exists


createProject


/api/v1/projects

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ProjectCreateRequest body = ; // ProjectCreateRequest | project to be created
        try {
            apiInstance.createProject(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createProject");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ProjectCreateRequest body = ; // ProjectCreateRequest | project to be created
        try {
            apiInstance.createProject(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createProject");
            e.printStackTrace();
        }
    }
}

                                                  


ProjectCreateRequest *body = ; // project to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// create a project
[apiInstance createProjectWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'body':  // {ProjectCreateRequest} project to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createProject(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class createProjectExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new ProjectCreateRequest(); // ProjectCreateRequest | project to be created (optional) 

            try
            {
                // create a project
                apiInstance.createProject(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createProject: " + e.Message );
            }
        }
    }
}

                                                    

createProject($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createProject: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - project is created.

Status: 400 - body or name not provided

Status: 403 - project already exists


createScenario


/api/v1/scenarios

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ScenarioCreateRequest body = ; // ScenarioCreateRequest | scenario to be created
        try {
            apiInstance.createScenario(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ScenarioCreateRequest body = ; // ScenarioCreateRequest | scenario to be created
        try {
            apiInstance.createScenario(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createScenario");
            e.printStackTrace();
        }
    }
}

                                                  


ScenarioCreateRequest *body = ; // scenario to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// create a new scenario by name
[apiInstance createScenarioWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'body':  // {ScenarioCreateRequest} scenario to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createScenario(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class createScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new ScenarioCreateRequest(); // ScenarioCreateRequest | scenario to be created (optional) 

            try
            {
                // create a new scenario by name
                apiInstance.createScenario(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createScenario: " + e.Message );
            }
        }
    }
}

                                                    

createScenario($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - scenario is created.

Status: 400 - body or name not provided

Status: 403 - scenario already exists


createTestCase


/api/v1/projects/{project_name}/cases

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}/cases"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        TestcaseCreateRequest body = ; // TestcaseCreateRequest | testcase to be created
        try {
            apiInstance.createTestCase(projectName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTestCase");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        TestcaseCreateRequest body = ; // TestcaseCreateRequest | testcase to be created
        try {
            apiInstance.createTestCase(projectName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTestCase");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 
TestcaseCreateRequest *body = ; // testcase to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// create a testcase of a project by project_name
[apiInstance createTestCaseWith:projectName
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 

var opts = { 
  'body':  // {TestcaseCreateRequest} testcase to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createTestCase(projectName, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class createTestCaseExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 
            var body = new TestcaseCreateRequest(); // TestcaseCreateRequest | testcase to be created (optional) 

            try
            {
                // create a testcase of a project by project_name
                apiInstance.createTestCase(projectName, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createTestCase: " + e.Message );
            }
        }
    }
}

                                                    

createTestCase($projectName, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createTestCase: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*
Body parameters
Name Description
body

Responses

Status: 200 - testcase is created in this project.

Status: 400 - body or name not provided

Status: 403 - project not exist or testcase already exists in this project


createTestResult


/api/v1/results

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ResultCreateRequest body = ; // ResultCreateRequest | result to be created
        try {
            apiInstance.createTestResult(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTestResult");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ResultCreateRequest body = ; // ResultCreateRequest | result to be created
        try {
            apiInstance.createTestResult(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createTestResult");
            e.printStackTrace();
        }
    }
}

                                                  


ResultCreateRequest *body = ; // result to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// create a test result
[apiInstance createTestResultWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'body':  // {ResultCreateRequest} result to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.createTestResult(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class createTestResultExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new ResultCreateRequest(); // ResultCreateRequest | result to be created (optional) 

            try
            {
                // create a test result
                apiInstance.createTestResult(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createTestResult: " + e.Message );
            }
        }
    }
}

                                                    

createTestResult($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createTestResult: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - result is created.

Status: 400 - body/pod_name/project_name/case_name not provided

Status: 404 - pod/project/testcase not exist


deleteCustomizedTestCases

delete one or some customized test cases DELETE <br/>/api/v1/scenarios/<scenario_name>/customs? <br/>installer=<installer_name>& version=<version_name>&<br/>project=<project_name>


/api/v1/scenarios/{scenario}/customs

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/customs?installer=&version=&project="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | test case(s) to be deleted
        try {
            apiInstance.deleteCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | test case(s) to be deleted
        try {
            apiInstance.deleteCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *project = project_example; // project name
String *scenario = scenario_example; // 
array[String] *body = ; // test case(s) to be deleted (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete one or several customized test cases
[apiInstance deleteCustomizedTestCasesWith:installer
    version:version
    project:project
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var project = project_example; // {String} project name

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} test case(s) to be deleted
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteCustomizedTestCases(installer, version, project, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteCustomizedTestCasesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var project = project_example;  // String | project name
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | test case(s) to be deleted (optional) 

            try
            {
                // delete one or several customized test cases
                apiInstance.deleteCustomizedTestCases(installer, version, project, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteCustomizedTestCases: " + e.Message );
            }
        }
    }
}

                                                    

deleteCustomizedTestCases($installer, $version, $project, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteCustomizedTestCases: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*
project*

Responses

Status: 200 - delete test case(s) success.

Status: 404 - scenario/installer/version/project not existed


deleteInstallersUnderScenario

delete one or multiple installers DELETE <br/>/api/v1/scenarios/<scenario_name>/installers


/api/v1/scenarios/{scenario}/installers

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/installers"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | installers(names) to be deleted
        try {
            apiInstance.deleteInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | installers(names) to be deleted
        try {
            apiInstance.deleteInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *scenario = scenario_example; // 
array[String] *body = ; // installers(names) to be deleted (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete one or multiple installers
[apiInstance deleteInstallersUnderScenarioWith:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} installers(names) to be deleted
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteInstallersUnderScenario(scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteInstallersUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | installers(names) to be deleted (optional) 

            try
            {
                // delete one or multiple installers
                apiInstance.deleteInstallersUnderScenario(scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteInstallersUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

deleteInstallersUnderScenario($scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteInstallersUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body

Responses

Status: 200 - delete versions success.

Status: 404 - scenario/installer not exist


deleteProjectByName


/api/v1/projects/{project_name}

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.deleteProjectByName(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.deleteProjectByName(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete a project by project_name
[apiInstance deleteProjectByNameWith:projectName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectByName(projectName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteProjectByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 

            try
            {
                // delete a project by project_name
                apiInstance.deleteProjectByName(projectName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectByName: " + e.Message );
            }
        }
    }
}

                                                    

deleteProjectByName($projectName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*

Responses

Status: 200 - delete success

Status: 404 - project not exist


deleteProjectsUnderScenario

delete one or multiple projects DELETE <br/>/api/v1/scenarios/<scenario_name>/projects? <br/>installer=<installer_name>& version=<version_name>


/api/v1/scenarios/{scenario}/projects

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/projects?installer=&version="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | projects(names) to be deleted
        try {
            apiInstance.deleteProjectsUnderScenario(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | projects(names) to be deleted
        try {
            apiInstance.deleteProjectsUnderScenario(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteProjectsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *scenario = scenario_example; // 
array[String] *body = ; // projects(names) to be deleted (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete one or multiple projects
[apiInstance deleteProjectsUnderScenarioWith:installer
    version:version
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} projects(names) to be deleted
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteProjectsUnderScenario(installer, version, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteProjectsUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | projects(names) to be deleted (optional) 

            try
            {
                // delete one or multiple projects
                apiInstance.deleteProjectsUnderScenario(installer, version, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteProjectsUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

deleteProjectsUnderScenario($installer, $version, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteProjectsUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*

Responses

Status: 200 - delete project(s) success.

Status: 404 - scenario/installer/version not existed


deleteScenarioByName


/api/v1/scenarios/{name}

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        try {
            apiInstance.deleteScenarioByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteScenarioByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        try {
            apiInstance.deleteScenarioByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteScenarioByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *name = name_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete a scenario by name
[apiInstance deleteScenarioByNameWith:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var name = name_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteScenarioByName(name, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteScenarioByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var name = name_example;  // String | 

            try
            {
                // delete a scenario by name
                apiInstance.deleteScenarioByName(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteScenarioByName: " + e.Message );
            }
        }
    }
}

                                                    

deleteScenarioByName($name);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteScenarioByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
name*

Responses

Status: 200 - delete success

Status: 404 - scenario not exist:


deleteTestCaseByName


/api/v1/projects/{project_name}/cases/{case_name}

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}/cases/{case_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        try {
            apiInstance.deleteTestCaseByName(projectName, caseName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        try {
            apiInstance.deleteTestCaseByName(projectName, caseName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 
String *caseName = caseName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete a testcase by project_name and case_name
[apiInstance deleteTestCaseByNameWith:projectName
    caseName:caseName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 

var caseName = caseName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTestCaseByName(projectName, caseName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteTestCaseByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 
            var caseName = caseName_example;  // String | 

            try
            {
                // delete a testcase by project_name and case_name
                apiInstance.deleteTestCaseByName(projectName, caseName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteTestCaseByName: " + e.Message );
            }
        }
    }
}

                                                    

deleteTestCaseByName($projectName, $caseName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteTestCaseByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*
caseName*

Responses

Status: 200 - delete success

Status: 404 - testcase not exist


deleteVersionsUnderScenario

delete one or multiple versions DELETE <br/>/api/v1/scenarios/<scenario_name>/versions? <br/>installer=<installer_name>


/api/v1/scenarios/{scenario}/versions

Usage and SDK Samples


curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/versions?installer="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | versions(names) to be deleted
        try {
            apiInstance.deleteVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | versions(names) to be deleted
        try {
            apiInstance.deleteVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *scenario = scenario_example; // 
array[String] *body = ; // versions(names) to be deleted (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// delete one or multiple versions
[apiInstance deleteVersionsUnderScenarioWith:installer
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} versions(names) to be deleted
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteVersionsUnderScenario(installer, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class deleteVersionsUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | versions(names) to be deleted (optional) 

            try
            {
                // delete one or multiple versions
                apiInstance.deleteVersionsUnderScenario(installer, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteVersionsUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

deleteVersionsUnderScenario($installer, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteVersionsUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*

Responses

Status: 200 - delete versions success.

Status: 404 - scenario/installer not exist


getPodByName


/api/v1/pods/{pod_name}

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/pods/{pod_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String podName = podName_example; // String | 
        try {
            apiInstance.getPodByName(podName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPodByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String podName = podName_example; // String | 
        try {
            apiInstance.getPodByName(podName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getPodByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *podName = podName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get a single pod by pod_name
[apiInstance getPodByNameWith:podName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var podName = podName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getPodByName(podName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class getPodByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var podName = podName_example;  // String | 

            try
            {
                // get a single pod by pod_name
                apiInstance.getPodByName(podName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getPodByName: " + e.Message );
            }
        }
    }
}

                                                    

getPodByName($podName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getPodByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
podName*

Responses

Status: 200 - pod exist

Status: 404 - pod not exist


getProjectByName


/api/v1/projects/{project_name}

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.getProjectByName(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.getProjectByName(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get a single project by project_name
[apiInstance getProjectByNameWith:projectName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getProjectByName(projectName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class getProjectByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 

            try
            {
                // get a single project by project_name
                apiInstance.getProjectByName(projectName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getProjectByName: " + e.Message );
            }
        }
    }
}

                                                    

getProjectByName($projectName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getProjectByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*

Responses

Status: 200 - project exist

Status: 404 - project not exist


getScenarioByName


/api/v1/scenarios/{name}

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        try {
            apiInstance.getScenarioByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getScenarioByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        try {
            apiInstance.getScenarioByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getScenarioByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *name = name_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get a single scenario by name
[apiInstance getScenarioByNameWith:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var name = name_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getScenarioByName(name, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class getScenarioByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var name = name_example;  // String | 

            try
            {
                // get a single scenario by name
                apiInstance.getScenarioByName(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getScenarioByName: " + e.Message );
            }
        }
    }
}

                                                    

getScenarioByName($name);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getScenarioByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
name*

Responses

Status: 200 - scenario exist

Status: 404 - scenario not exist


getTestCaseByName


/api/v1/projects/{project_name}/cases/{case_name}

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}/cases/{case_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        try {
            apiInstance.getTestCaseByName(projectName, caseName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        try {
            apiInstance.getTestCaseByName(projectName, caseName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 
String *caseName = caseName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get a single testcase by case_name and project_name
[apiInstance getTestCaseByNameWith:projectName
    caseName:caseName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 

var caseName = caseName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getTestCaseByName(projectName, caseName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class getTestCaseByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 
            var caseName = caseName_example;  // String | 

            try
            {
                // get a single testcase by case_name and project_name
                apiInstance.getTestCaseByName(projectName, caseName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getTestCaseByName: " + e.Message );
            }
        }
    }
}

                                                    

getTestCaseByName($projectName, $caseName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getTestCaseByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*
caseName*

Responses

Status: 200 - testcase exist

Status: 404 - testcase not exist


getTestResultById


/api/v1/results/{result_id}

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results/{result_id}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String resultId = resultId_example; // String | 
        try {
            apiInstance.getTestResultById(resultId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTestResultById");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String resultId = resultId_example; // String | 
        try {
            apiInstance.getTestResultById(resultId);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getTestResultById");
            e.printStackTrace();
        }
    }
}

                                                  


String *resultId = resultId_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// get a single result by result_id
[apiInstance getTestResultByIdWith:resultId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var resultId = resultId_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getTestResultById(resultId, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class getTestResultByIdExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var resultId = resultId_example;  // String | 

            try
            {
                // get a single result by result_id
                apiInstance.getTestResultById(resultId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getTestResultById: " + e.Message );
            }
        }
    }
}

                                                    

getTestResultById($resultId);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getTestResultById: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
resultId*

Responses

Status: 200 - test result exist

Status: 404 - test result not exist


listAllPods


/api/v1/pods

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/pods"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllPods();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllPods");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllPods();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllPods");
            e.printStackTrace();
        }
    }
}

                                                  



DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list all pods
[apiInstance listAllPodsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listAllPods(callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class listAllPodsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // list all pods
                apiInstance.listAllPods();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listAllPods: " + e.Message );
            }
        }
    }
}

                                                    

listAllPods();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listAllPods: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Responses

Status: 200 - list all pods, empty list is no pod exist


listAllProjects


/api/v1/projects

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllProjects();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllProjects");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllProjects();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllProjects");
            e.printStackTrace();
        }
    }
}

                                                  



DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list all projects
[apiInstance listAllProjectsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listAllProjects(callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class listAllProjectsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // list all projects
                apiInstance.listAllProjects();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listAllProjects: " + e.Message );
            }
        }
    }
}

                                                    

listAllProjects();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listAllProjects: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Responses

Status: 200 - return all projects, empty list is no project exist


listAllTestCases


/api/v1/projects/{project_name}/cases

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}/cases"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.listAllTestCases(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllTestCases");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        try {
            apiInstance.listAllTestCases(projectName);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllTestCases");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list all testcases of a project by project_name
[apiInstance listAllTestCasesWith:projectName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listAllTestCases(projectName, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class listAllTestCasesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 

            try
            {
                // list all testcases of a project by project_name
                apiInstance.listAllTestCases(projectName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listAllTestCases: " + e.Message );
            }
        }
    }
}

                                                    

listAllTestCases($projectName);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listAllTestCases: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*

Responses

Status: 200 - return all testcases of this project, empty list is no testcase exist in this project


listAllVersions


/versions

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/versions"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllVersions();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllVersions");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            apiInstance.listAllVersions();
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listAllVersions");
            e.printStackTrace();
        }
    }
}

                                                  



DefaultApi *apiInstance = [[DefaultApi alloc] init];

// list all supported versions
[apiInstance listAllVersionsWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listAllVersions(callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class listAllVersionsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();

            try
            {
                // list all supported versions
                apiInstance.listAllVersions();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listAllVersions: " + e.Message );
            }
        }
    }
}

                                                    

listAllVersions();
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listAllVersions: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Responses

Status: 0 - success


queryScenarios

Retrieve scenario(s) Available filters for this request are :<br/><br/> - name : scenario name<br/><br/>GET /scenarios?name=scenario_1


/api/v1/scenarios

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios?project=&installer=&version=&name="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String project = project_example; // String | project name
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String name = name_example; // String | scenario name
        try {
            apiInstance.queryScenarios(project, installer, version, name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryScenarios");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String project = project_example; // String | project name
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String name = name_example; // String | scenario name
        try {
            apiInstance.queryScenarios(project, installer, version, name);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryScenarios");
            e.printStackTrace();
        }
    }
}

                                                  


String *project = project_example; // project name (optional)
String *installer = installer_example; // installer type (optional)
String *version = version_example; // version (optional)
String *name = name_example; // scenario name (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Retrieve scenario(s).
[apiInstance queryScenariosWith:project
    installer:installer
    version:version
    name:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'project': project_example, // {String} project name
  'installer': installer_example, // {String} installer type
  'version': version_example, // {String} version
  'name': name_example // {String} scenario name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.queryScenarios(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class queryScenariosExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var project = project_example;  // String | project name (optional) 
            var installer = installer_example;  // String | installer type (optional) 
            var version = version_example;  // String | version (optional) 
            var name = name_example;  // String | scenario name (optional) 

            try
            {
                // Retrieve scenario(s).
                apiInstance.queryScenarios(project, installer, version, name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.queryScenarios: " + e.Message );
            }
        }
    }
}

                                                    

queryScenarios($project, $installer, $version, $name);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->queryScenarios: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Query parameters
Name Description
project
installer
version
name

Responses

Status: 200 - all scenarios satisfy queries, empty list if no scenario is found


queryTestResults

Retrieve result(s) for a test project on a specific pod. Available filters <br/>for this request are :<br/><br/> - project : project name<br/> - case : case name<br/> - pod : pod name<br/> - version : platform version (Arno-R1, ...)<br/> - installer : fuel/apex/compass/joid/daisy<br/> - build_tag : Jenkins build tag name<br/> - period : x last days, incompatible with from/to<br/> - from : starting time in 2016-01-01 or 2016-01-01 00:01:23<br/> - to : ending time in 2016-01-01 or 2016-01-01 00:01:23<br/> - scenario : the test scenario (previously version)<br/> - criteria : the global criteria status passed or failed<br/> - trust_indicator : evaluate the stability of the test case to avoid <br/> running systematically long and stable test case<br/> - signed : get logined user result<br/><br/>GET /results/project=functest&case=vPing&version=Arno-R1 <br/>&pod=pod_name&period=15&signed


/api/v1/results

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results?case=&buildTag=&from=&last=&scenario=&trustIndicator=&period=&signed=&project=&to=&version=&descend=&criteria=&installer=&pod=&page="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String case = case_example; // String | case name
        String buildTag = buildTag_example; // String | i.e. v3.0
        String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String last = last_example; // String | last records stored until now
        String scenario = scenario_example; // String | i.e. odl
        Object trustIndicator = ; // Object | must be float
        String period = period_example; // String | last days
        String signed = signed_example; // String | user results or all results
        String project = project_example; // String | project name
        String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String version = version_example; // String | i.e. Colorado
        String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
        String criteria = criteria_example; // String | i.e. passed
        String installer = installer_example; // String | fuel/apex/joid/compass
        String pod = pod_example; // String | pod name
        Object page = ; // Object | which page to list, default to 1
        try {
            apiInstance.queryTestResults(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryTestResults");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String case = case_example; // String | case name
        String buildTag = buildTag_example; // String | i.e. v3.0
        String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String last = last_example; // String | last records stored until now
        String scenario = scenario_example; // String | i.e. odl
        Object trustIndicator = ; // Object | must be float
        String period = period_example; // String | last days
        String signed = signed_example; // String | user results or all results
        String project = project_example; // String | project name
        String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String version = version_example; // String | i.e. Colorado
        String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
        String criteria = criteria_example; // String | i.e. passed
        String installer = installer_example; // String | fuel/apex/joid/compass
        String pod = pod_example; // String | pod name
        Object page = ; // Object | which page to list, default to 1
        try {
            apiInstance.queryTestResults(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryTestResults");
            e.printStackTrace();
        }
    }
}

                                                  


String *case = case_example; // case name (optional)
String *buildTag = buildTag_example; // i.e. v3.0 (optional)
String *from = from_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *last = last_example; // last records stored until now (optional)
String *scenario = scenario_example; // i.e. odl (optional)
Object *trustIndicator = ; // must be float (optional)
String *period = period_example; // last days (optional)
String *signed = signed_example; // user results or all results (optional)
String *project = project_example; // project name (optional)
String *to = to_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *version = version_example; // i.e. Colorado (optional)
String *descend = descend_example; // true, newest2oldest; false, oldest2newest (optional)
String *criteria = criteria_example; // i.e. passed (optional)
String *installer = installer_example; // fuel/apex/joid/compass (optional)
String *pod = pod_example; // pod name (optional)
Object *page = ; // which page to list, default to 1 (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Retrieve result(s) for a test project on a specific pod.
[apiInstance queryTestResultsWith:case
    buildTag:buildTag
    from:from
    last:last
    scenario:scenario
    trustIndicator:trustIndicator
    period:period
    signed:signed
    project:project
    to:to
    version:version
    descend:descend
    criteria:criteria
    installer:installer
    pod:pod
    page:page
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'case': case_example, // {String} case name
  'buildTag': buildTag_example, // {String} i.e. v3.0
  'from': from_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
  'last': last_example, // {String} last records stored until now
  'scenario': scenario_example, // {String} i.e. odl
  'trustIndicator': , // {Object} must be float
  'period': period_example, // {String} last days
  'signed': signed_example, // {String} user results or all results
  'project': project_example, // {String} project name
  'to': to_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
  'version': version_example, // {String} i.e. Colorado
  'descend': descend_example, // {String} true, newest2oldest; false, oldest2newest
  'criteria': criteria_example, // {String} i.e. passed
  'installer': installer_example, // {String} fuel/apex/joid/compass
  'pod': pod_example, // {String} pod name
  'page':  // {Object} which page to list, default to 1
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.queryTestResults(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class queryTestResultsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var case = case_example;  // String | case name (optional) 
            var buildTag = buildTag_example;  // String | i.e. v3.0 (optional) 
            var from = from_example;  // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional) 
            var last = last_example;  // String | last records stored until now (optional) 
            var scenario = scenario_example;  // String | i.e. odl (optional) 
            var trustIndicator = new Object(); // Object | must be float (optional) 
            var period = period_example;  // String | last days (optional) 
            var signed = signed_example;  // String | user results or all results (optional) 
            var project = project_example;  // String | project name (optional) 
            var to = to_example;  // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional) 
            var version = version_example;  // String | i.e. Colorado (optional) 
            var descend = descend_example;  // String | true, newest2oldest; false, oldest2newest (optional) 
            var criteria = criteria_example;  // String | i.e. passed (optional) 
            var installer = installer_example;  // String | fuel/apex/joid/compass (optional) 
            var pod = pod_example;  // String | pod name (optional) 
            var page = new Object(); // Object | which page to list, default to 1 (optional) 

            try
            {
                // Retrieve result(s) for a test project on a specific pod.
                apiInstance.queryTestResults(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.queryTestResults: " + e.Message );
            }
        }
    }
}

                                                    

queryTestResults($case, $buildTag, $from, $last, $scenario, $trustIndicator, $period, $signed, $project, $to, $version, $descend, $criteria, $installer, $pod, $page);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->queryTestResults: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Query parameters
Name Description
case
buildTag
from
last
scenario
trustIndicator
period
signed
project
to
version
descend
criteria
installer
pod
page

Responses

Status: 200 - all test results consist with query, empty list if no result is found


queryTestResults_1

Retrieve result(s) for a test project on a specific pod. Available filters <br/>for this request are :<br/><br/> - project : project name<br/> - case : case name<br/> - pod : pod name<br/> - version : platform version (Arno-R1, ...)<br/> - installer : fuel/apex/compass/joid/daisy<br/> - build_tag : Jenkins build tag name<br/> - period : x last days, incompatible with from/to<br/> - from : starting time in 2016-01-01 or 2016-01-01 00:01:23<br/> - to : ending time in 2016-01-01 or 2016-01-01 00:01:23<br/> - scenario : the test scenario (previously version)<br/> - criteria : the global criteria status passed or failed<br/> - trust_indicator : evaluate the stability of the test case to avoid <br/> running systematically long and stable test case<br/> - signed : get logined user result<br/><br/>GET /results/project=functest&case=vPing&version=Arno-R1 <br/>&pod=pod_name&period=15&signed


/api/v1/results/upload

Usage and SDK Samples


curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results/upload?case=&buildTag=&from=&last=&scenario=&trustIndicator=&period=&signed=&project=&to=&version=&descend=&criteria=&installer=&pod=&page="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String case = case_example; // String | case name
        String buildTag = buildTag_example; // String | i.e. v3.0
        String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String last = last_example; // String | last records stored until now
        String scenario = scenario_example; // String | i.e. odl
        Object trustIndicator = ; // Object | must be float
        String period = period_example; // String | last days
        String signed = signed_example; // String | user results or all results
        String project = project_example; // String | project name
        String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String version = version_example; // String | i.e. Colorado
        String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
        String criteria = criteria_example; // String | i.e. passed
        String installer = installer_example; // String | fuel/apex/joid/compass
        String pod = pod_example; // String | pod name
        Object page = ; // Object | which page to list, default to 1
        try {
            apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryTestResults_0");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String case = case_example; // String | case name
        String buildTag = buildTag_example; // String | i.e. v3.0
        String from = from_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String last = last_example; // String | last records stored until now
        String scenario = scenario_example; // String | i.e. odl
        Object trustIndicator = ; // Object | must be float
        String period = period_example; // String | last days
        String signed = signed_example; // String | user results or all results
        String project = project_example; // String | project name
        String to = to_example; // String | i.e. 2016-01-01 or 2016-01-01 00:01:23
        String version = version_example; // String | i.e. Colorado
        String descend = descend_example; // String | true, newest2oldest; false, oldest2newest
        String criteria = criteria_example; // String | i.e. passed
        String installer = installer_example; // String | fuel/apex/joid/compass
        String pod = pod_example; // String | pod name
        Object page = ; // Object | which page to list, default to 1
        try {
            apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#queryTestResults_0");
            e.printStackTrace();
        }
    }
}

                                                  


String *case = case_example; // case name (optional)
String *buildTag = buildTag_example; // i.e. v3.0 (optional)
String *from = from_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *last = last_example; // last records stored until now (optional)
String *scenario = scenario_example; // i.e. odl (optional)
Object *trustIndicator = ; // must be float (optional)
String *period = period_example; // last days (optional)
String *signed = signed_example; // user results or all results (optional)
String *project = project_example; // project name (optional)
String *to = to_example; // i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional)
String *version = version_example; // i.e. Colorado (optional)
String *descend = descend_example; // true, newest2oldest; false, oldest2newest (optional)
String *criteria = criteria_example; // i.e. passed (optional)
String *installer = installer_example; // fuel/apex/joid/compass (optional)
String *pod = pod_example; // pod name (optional)
Object *page = ; // which page to list, default to 1 (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Retrieve result(s) for a test project on a specific pod.
[apiInstance queryTestResults_1With:case
    buildTag:buildTag
    from:from
    last:last
    scenario:scenario
    trustIndicator:trustIndicator
    period:period
    signed:signed
    project:project
    to:to
    version:version
    descend:descend
    criteria:criteria
    installer:installer
    pod:pod
    page:page
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'case': case_example, // {String} case name
  'buildTag': buildTag_example, // {String} i.e. v3.0
  'from': from_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
  'last': last_example, // {String} last records stored until now
  'scenario': scenario_example, // {String} i.e. odl
  'trustIndicator': , // {Object} must be float
  'period': period_example, // {String} last days
  'signed': signed_example, // {String} user results or all results
  'project': project_example, // {String} project name
  'to': to_example, // {String} i.e. 2016-01-01 or 2016-01-01 00:01:23
  'version': version_example, // {String} i.e. Colorado
  'descend': descend_example, // {String} true, newest2oldest; false, oldest2newest
  'criteria': criteria_example, // {String} i.e. passed
  'installer': installer_example, // {String} fuel/apex/joid/compass
  'pod': pod_example, // {String} pod name
  'page':  // {Object} which page to list, default to 1
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.queryTestResults_0(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class queryTestResults_0Example
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var case = case_example;  // String | case name (optional) 
            var buildTag = buildTag_example;  // String | i.e. v3.0 (optional) 
            var from = from_example;  // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional) 
            var last = last_example;  // String | last records stored until now (optional) 
            var scenario = scenario_example;  // String | i.e. odl (optional) 
            var trustIndicator = new Object(); // Object | must be float (optional) 
            var period = period_example;  // String | last days (optional) 
            var signed = signed_example;  // String | user results or all results (optional) 
            var project = project_example;  // String | project name (optional) 
            var to = to_example;  // String | i.e. 2016-01-01 or 2016-01-01 00:01:23 (optional) 
            var version = version_example;  // String | i.e. Colorado (optional) 
            var descend = descend_example;  // String | true, newest2oldest; false, oldest2newest (optional) 
            var criteria = criteria_example;  // String | i.e. passed (optional) 
            var installer = installer_example;  // String | fuel/apex/joid/compass (optional) 
            var pod = pod_example;  // String | pod name (optional) 
            var page = new Object(); // Object | which page to list, default to 1 (optional) 

            try
            {
                // Retrieve result(s) for a test project on a specific pod.
                apiInstance.queryTestResults_0(case, buildTag, from, last, scenario, trustIndicator, period, signed, project, to, version, descend, criteria, installer, pod, page);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.queryTestResults_0: " + e.Message );
            }
        }
    }
}

                                                    

queryTestResults_0($case, $buildTag, $from, $last, $scenario, $trustIndicator, $period, $signed, $project, $to, $version, $descend, $criteria, $installer, $pod, $page);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->queryTestResults_0: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Query parameters
Name Description
case
buildTag
from
last
scenario
trustIndicator
period
signed
project
to
version
descend
criteria
installer
pod
page

Responses

Status: 200 - all test results consist with query, empty list if no result is found


updateCustomizedTestCases

substitute all the customized test cases PUT <br/>/api/v1/scenarios/<scenario_name>/customs? <br/>installer=<installer_name>& version=<version_name>&<br/>project=<project_name>


/api/v1/scenarios/{scenario}/customs

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/customs?installer=&version=&project="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | new supported test cases
        try {
            apiInstance.updateCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String project = project_example; // String | project name
        String scenario = scenario_example; // String | 
        array[String] body = ; // array[String] | new supported test cases
        try {
            apiInstance.updateCustomizedTestCases(installer, version, project, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateCustomizedTestCases");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *project = project_example; // project name
String *scenario = scenario_example; // 
array[String] *body = ; // new supported test cases (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update customized test cases
[apiInstance updateCustomizedTestCasesWith:installer
    version:version
    project:project
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var project = project_example; // {String} project name

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[String]} new supported test cases
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateCustomizedTestCases(installer, version, project, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateCustomizedTestCasesExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var project = project_example;  // String | project name
            var scenario = scenario_example;  // String | 
            var body = new array[String](); // array[String] | new supported test cases (optional) 

            try
            {
                // update customized test cases
                apiInstance.updateCustomizedTestCases(installer, version, project, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateCustomizedTestCases: " + e.Message );
            }
        }
    }
}

                                                    

updateCustomizedTestCases($installer, $version, $project, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateCustomizedTestCases: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*
project*

Responses

Status: 200 - substitute test cases success.

Status: 404 - scenario/installer/version/project not existed


updateInstallersUnderScenario

substitute all installers as a totality PUT <br/>/api/v1/scenarios/<scenario_name>/installers


/api/v1/scenarios/{scenario}/installers

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/installers"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[ScenarioInstaller] body = ; // array[ScenarioInstaller] | new installers
        try {
            apiInstance.updateInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String scenario = scenario_example; // String | 
        array[ScenarioInstaller] body = ; // array[ScenarioInstaller] | new installers
        try {
            apiInstance.updateInstallersUnderScenario(scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateInstallersUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *scenario = scenario_example; // 
array[ScenarioInstaller] *body = ; // new installers (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// replace all installers
[apiInstance updateInstallersUnderScenarioWith:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioInstaller]} new installers
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateInstallersUnderScenario(scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateInstallersUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioInstaller](); // array[ScenarioInstaller] | new installers (optional) 

            try
            {
                // replace all installers
                apiInstance.updateInstallersUnderScenario(scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateInstallersUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

updateInstallersUnderScenario($scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateInstallersUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body

Responses

Status: 200 - replace versions success.

Status: 400 - bad schema

Status: 404 - scenario/installer not exist


updateProjectByName


/api/v1/projects/{project_name}

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        ProjectUpdateRequest body = ; // ProjectUpdateRequest | project to be updated
        try {
            apiInstance.updateProjectByName(projectName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        ProjectUpdateRequest body = ; // ProjectUpdateRequest | project to be updated
        try {
            apiInstance.updateProjectByName(projectName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateProjectByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 
ProjectUpdateRequest *body = ; // project to be updated (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update a single project by project_name
[apiInstance updateProjectByNameWith:projectName
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 

var opts = { 
  'body':  // {ProjectUpdateRequest} project to be updated
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateProjectByName(projectName, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateProjectByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 
            var body = new ProjectUpdateRequest(); // ProjectUpdateRequest | project to be updated (optional) 

            try
            {
                // update a single project by project_name
                apiInstance.updateProjectByName(projectName, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateProjectByName: " + e.Message );
            }
        }
    }
}

                                                    

updateProjectByName($projectName, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateProjectByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*
Body parameters
Name Description
body

Responses

Status: 200 - update success

Status: 403 - new project name already exist or nothing to update

Status: 404 - project not exist


updateScenarioName


/api/v1/scenarios/{name}

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        ScenarioUpdateRequest body = ; // ScenarioUpdateRequest | fields to be updated
        try {
            apiInstance.updateScenarioName(name, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateScenarioName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String name = name_example; // String | 
        ScenarioUpdateRequest body = ; // ScenarioUpdateRequest | fields to be updated
        try {
            apiInstance.updateScenarioName(name, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateScenarioName");
            e.printStackTrace();
        }
    }
}

                                                  


String *name = name_example; // 
ScenarioUpdateRequest *body = ; // fields to be updated (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update scenario, only rename is supported currently
[apiInstance updateScenarioNameWith:name
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var name = name_example; // {String} 

var opts = { 
  'body':  // {ScenarioUpdateRequest} fields to be updated
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateScenarioName(name, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateScenarioNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var name = name_example;  // String | 
            var body = new ScenarioUpdateRequest(); // ScenarioUpdateRequest | fields to be updated (optional) 

            try
            {
                // update scenario, only rename is supported currently
                apiInstance.updateScenarioName(name, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateScenarioName: " + e.Message );
            }
        }
    }
}

                                                    

updateScenarioName($name, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateScenarioName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
name*
Body parameters
Name Description
body

Responses

Status: 200 - update success

Status: 403 - nothing to update

Status: 404 - scenario not exist


updateScenarioProjects

substitute all projects, delete existed ones with new provides PUT <br/>/api/v1/scenarios/<scenario_name>/projects? <br/>installer=<installer_name>& version=<version_name>


/api/v1/scenarios/{scenario}/projects

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/projects?installer=&version="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[ScenarioProject] body = ; // array[ScenarioProject] | new projects
        try {
            apiInstance.updateScenarioProjects(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateScenarioProjects");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String version = version_example; // String | version
        String scenario = scenario_example; // String | 
        array[ScenarioProject] body = ; // array[ScenarioProject] | new projects
        try {
            apiInstance.updateScenarioProjects(installer, version, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateScenarioProjects");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *version = version_example; // version
String *scenario = scenario_example; // 
array[ScenarioProject] *body = ; // new projects (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// replace all projects
[apiInstance updateScenarioProjectsWith:installer
    version:version
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var version = version_example; // {String} version

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioProject]} new projects
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateScenarioProjects(installer, version, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateScenarioProjectsExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var version = version_example;  // String | version
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioProject](); // array[ScenarioProject] | new projects (optional) 

            try
            {
                // replace all projects
                apiInstance.updateScenarioProjects(installer, version, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateScenarioProjects: " + e.Message );
            }
        }
    }
}

                                                    

updateScenarioProjects($installer, $version, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateScenarioProjects: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*
version*

Responses

Status: 200 - replace projects success.

Status: 400 - bad schema

Status: 404 - scenario/installer/version not existed


updateTestCaseByName


/api/v1/projects/{project_name}/cases/{case_name}

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/projects/{project_name}/cases/{case_name}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        TestcaseUpdateRequest body = ; // TestcaseUpdateRequest | testcase to be updated
        try {
            apiInstance.updateTestCaseByName(projectName, caseName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String projectName = projectName_example; // String | 
        String caseName = caseName_example; // String | 
        TestcaseUpdateRequest body = ; // TestcaseUpdateRequest | testcase to be updated
        try {
            apiInstance.updateTestCaseByName(projectName, caseName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTestCaseByName");
            e.printStackTrace();
        }
    }
}

                                                  


String *projectName = projectName_example; // 
String *caseName = caseName_example; // 
TestcaseUpdateRequest *body = ; // testcase to be updated (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update a single testcase by project_name and case_name
[apiInstance updateTestCaseByNameWith:projectName
    caseName:caseName
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var projectName = projectName_example; // {String} 

var caseName = caseName_example; // {String} 

var opts = { 
  'body':  // {TestcaseUpdateRequest} testcase to be updated
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateTestCaseByName(projectName, caseName, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateTestCaseByNameExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var projectName = projectName_example;  // String | 
            var caseName = caseName_example;  // String | 
            var body = new TestcaseUpdateRequest(); // TestcaseUpdateRequest | testcase to be updated (optional) 

            try
            {
                // update a single testcase by project_name and case_name
                apiInstance.updateTestCaseByName(projectName, caseName, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateTestCaseByName: " + e.Message );
            }
        }
    }
}

                                                    

updateTestCaseByName($projectName, $caseName, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateTestCaseByName: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
projectName*
caseName*
Body parameters
Name Description
body

Responses

Status: 200 - update success

Status: 403 - new testcase name already exist in project or nothing to update

Status: 404 - testcase or project not exist


updateTestResultById


/api/v1/results/{result_id}

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results/{result_id}"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String resultId = resultId_example; // String | 
        ResultUpdateRequest body = ; // ResultUpdateRequest | fields to be updated
        try {
            apiInstance.updateTestResultById(resultId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTestResultById");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String resultId = resultId_example; // String | 
        ResultUpdateRequest body = ; // ResultUpdateRequest | fields to be updated
        try {
            apiInstance.updateTestResultById(resultId, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateTestResultById");
            e.printStackTrace();
        }
    }
}

                                                  


String *resultId = resultId_example; // 
ResultUpdateRequest *body = ; // fields to be updated (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// update a single result by _id
[apiInstance updateTestResultByIdWith:resultId
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var resultId = resultId_example; // {String} 

var opts = { 
  'body':  // {ResultUpdateRequest} fields to be updated
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateTestResultById(resultId, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateTestResultByIdExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var resultId = resultId_example;  // String | 
            var body = new ResultUpdateRequest(); // ResultUpdateRequest | fields to be updated (optional) 

            try
            {
                // update a single result by _id
                apiInstance.updateTestResultById(resultId, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateTestResultById: " + e.Message );
            }
        }
    }
}

                                                    

updateTestResultById($resultId, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateTestResultById: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
resultId*
Body parameters
Name Description
body

Responses

Status: 200 - update success

Status: 403 - nothing to update

Status: 404 - result not exist


updateVersionsUnderScenario

substitute all versions as a totality PUT <br/>/api/v1/scenarios/<scenario_name>/versions? <br/>installer=<installer_name>


/api/v1/scenarios/{scenario}/versions

Usage and SDK Samples


curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/scenarios/{scenario}/versions?installer="



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[ScenarioVersion] body = ; // array[ScenarioVersion] | new versions
        try {
            apiInstance.updateVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String installer = installer_example; // String | installer type
        String scenario = scenario_example; // String | 
        array[ScenarioVersion] body = ; // array[ScenarioVersion] | new versions
        try {
            apiInstance.updateVersionsUnderScenario(installer, scenario, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateVersionsUnderScenario");
            e.printStackTrace();
        }
    }
}

                                                  


String *installer = installer_example; // installer type
String *scenario = scenario_example; // 
array[ScenarioVersion] *body = ; // new versions (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// replace all versions
[apiInstance updateVersionsUnderScenarioWith:installer
    scenario:scenario
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var installer = installer_example; // {String} installer type

var scenario = scenario_example; // {String} 

var opts = { 
  'body':  // {array[ScenarioVersion]} new versions
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateVersionsUnderScenario(installer, scenario, opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class updateVersionsUnderScenarioExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var installer = installer_example;  // String | installer type
            var scenario = scenario_example;  // String | 
            var body = new array[ScenarioVersion](); // array[ScenarioVersion] | new versions (optional) 

            try
            {
                // replace all versions
                apiInstance.updateVersionsUnderScenario(installer, scenario, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateVersionsUnderScenario: " + e.Message );
            }
        }
    }
}

                                                    

updateVersionsUnderScenario($installer, $scenario, $body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateVersionsUnderScenario: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Path parameters
Name Description
scenario*
Body parameters
Name Description
body
Query parameters
Name Description
installer*

Responses

Status: 200 - replace versions success.

Status: 400 - bad schema

Status: 404 - scenario/installer not exist


uploadTestResult


/api/v1/results/upload

Usage and SDK Samples


curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://testresults.opnfv.org/test/api/v1/results/upload"



import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import .DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        ResultCreateRequest body = ; // ResultCreateRequest | result to be created
        try {
            apiInstance.uploadTestResult(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#uploadTestResult");
            e.printStackTrace();
        }
    }
}

                                                  

import .DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        ResultCreateRequest body = ; // ResultCreateRequest | result to be created
        try {
            apiInstance.uploadTestResult(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#uploadTestResult");
            e.printStackTrace();
        }
    }
}

                                                  


ResultCreateRequest *body = ; // result to be created (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// upload and create a test result
[apiInstance uploadTestResultWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];

                                                    

var  = require('');

var api = new .DefaultApi()

var opts = { 
  'body':  // {ResultCreateRequest} result to be created
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.uploadTestResult(opts, callback);

                                                    

using System;
using System.Diagnostics;
using .Api;
using .Client;
using ;

namespace Example
{
    public class uploadTestResultExample
    {
        public void main()
        {
            
            var apiInstance = new DefaultApi();
            var body = new ResultCreateRequest(); // ResultCreateRequest | result to be created (optional) 

            try
            {
                // upload and create a test result
                apiInstance.uploadTestResult(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.uploadTestResult: " + e.Message );
            }
        }
    }
}

                                                    

uploadTestResult($body);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->uploadTestResult: ', $e->getMessage(), PHP_EOL;
}

                                                  

Parameters

Body parameters
Name Description
body

Responses

Status: 200 - result is created.

Status: 400 - body/pod_name/project_name/case_name not provided

Status: 404 - pod/project/testcase not exist


Generated 2017-10-27T01:37:23.879-07:00