/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.13.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.cloudera.api.swagger;

import com.cloudera.api.swagger.model.ApiBulkCommandList;
import com.cloudera.api.swagger.model.ApiRoleNameList;
import org.junit.Test;
import org.junit.Ignore;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * API tests for RoleCommandsResourceApi
 */
@Ignore
public class RoleCommandsResourceApiTest {

    private final RoleCommandsResourceApi api = new RoleCommandsResourceApi();

    /**
     * Format HDFS NameNodes.
     *
     * Format HDFS NameNodes. &lt;p&gt; Submit a format request to a list of NameNodes on a service. Note that trying to format a previously formatted NameNode will fail. &lt;p&gt; Note about high availability: when two NameNodes are working in an HA pair, only one of them should be formatted. &lt;p&gt; Bulk command operations are not atomic, and may contain partial failures. The returned list will contain references to all successful commands, and a list of error messages identifying the roles on which the command failed.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void formatCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.formatCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Bootstrap HDFS stand-by NameNodes.
     *
     * Bootstrap HDFS stand-by NameNodes. &lt;p&gt; Submit a request to synchronize HDFS NameNodes with their assigned HA partners. The command requires that the target NameNodes are part of existing HA pairs, which can be accomplished by setting the nameservice configuration parameter in the NameNode&#x27;s configuration. &lt;p&gt; The HA partner must already be formatted and running for this command to run.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsBootstrapStandByCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsBootstrapStandByCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Enter safemode for namenodes.
     *
     * Enter safemode for namenodes &lt;p/&gt; Available since API v4.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsEnterSafemodeTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsEnterSafemode(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Finalize HDFS NameNode metadata upgrade.
     *
     * Finalize HDFS NameNode metadata upgrade. &lt;p/&gt; Available since API v3.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsFinalizeMetadataUpgradeTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsFinalizeMetadataUpgrade(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Initialize HDFS HA failover controller metadata.
     *
     * Initialize HDFS HA failover controller metadata. &lt;p&gt; The controllers being initialized must already exist and be properly configured. The command will make sure the needed data is initialized for the controller to work. &lt;p&gt; Only one controller per nameservice needs to be initialized.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsInitializeAutoFailoverCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsInitializeAutoFailoverCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Initialize HDFS NameNodes&#x27; shared edit directory.
     *
     * Initialize HDFS NameNodes&#x27; shared edit directory. &lt;p&gt; Shared edit directories are used when two HDFS NameNodes are operating as a high-availability pair. This command initializes the shared directory to include the necessary metadata. &lt;p&gt; The provided role names should reflect one of the NameNodes in the respective HA pair; the role must be stopped and its data directory must already have been formatted. The shared edits directory must be empty for this command to succeed.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsInitializeSharedDirCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsInitializeSharedDirCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Leave safemode for namenodes.
     *
     * Leave safemode for namenodes &lt;p/&gt; Available since API v4.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsLeaveSafemodeTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsLeaveSafemode(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Save namespace for namenodes.
     *
     * Save namespace for namenodes &lt;p/&gt; Available since API v4.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void hdfsSaveNamespaceTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.hdfsSaveNamespace(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Run the jmapDump diagnostic command.
     *
     * Run the jmapDump diagnostic command. The command runs the jmap utility to capture a dump of the role&#x27;s java heap. &lt;p/&gt; Available since API v8.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void jmapDumpTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.jmapDump(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Run the jmapHisto diagnostic command.
     *
     * Run the jmapHisto diagnostic command. The command runs the jmap utility to capture a histogram of the objects on the role&#x27;s java heap. &lt;p/&gt; Available since API v8.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void jmapHistoTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.jmapHisto(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Run the jstack diagnostic command.
     *
     * Run the jstack diagnostic command. The command runs the jstack utility to capture a role&#x27;s java thread stacks. &lt;p/&gt; Available since API v8.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void jstackTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.jstack(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Run the lsof diagnostic command.
     *
     * Run the lsof diagnostic command. This command runs the lsof utility to list a role&#x27;s open files. &lt;p/&gt; Available since API v8.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void lsofTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.lsof(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Refresh a role&#x27;s data.
     *
     * Refresh a role&#x27;s data. &lt;p&gt; For MapReduce services, this command should be executed on JobTracker roles. It refreshes the role&#x27;s queue and node information. &lt;p&gt; For HDFS services, this command should be executed on NameNode or DataNode roles. For NameNodes, it refreshes the role&#x27;s node list. For DataNodes, it refreshes the role&#x27;s data directory list and other configuration. &lt;p&gt; For YARN services, this command should be executed on ResourceManager roles. It refreshes the role&#x27;s queue and node information. &lt;p&gt; Available since API v1. DataNode data directories refresh available since API v10.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void refreshCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.refreshCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Restart a set of role instances.
     *
     * Restart a set of role instances &lt;p&gt; Bulk command operations are not atomic, and may contain partial failures. The returned list will contain references to all successful commands, and a list of error messages identifying the roles on which the command failed.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void restartCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.restartCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Execute a role command by name.
     *
     * Execute a role command by name. &lt;p/&gt; Available since API v6.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void roleCommandByNameTest() throws Exception {
        String clusterName = null;
        String commandName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.roleCommandByName(clusterName, commandName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Start a set of role instances.
     *
     * Start a set of role instances. &lt;p&gt; Bulk command operations are not atomic, and may contain partial failures. The returned list will contain references to all successful commands, and a list of error messages identifying the roles on which the command failed.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void startCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.startCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Stop a set of role instances.
     *
     * Stop a set of role instances. &lt;p&gt; Bulk command operations are not atomic, and may contain partial failures. The returned list will contain references to all successful commands, and a list of error messages identifying the roles on which the command failed.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void stopCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.stopCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Create / update the Hue database schema.
     *
     * Create / update the Hue database schema. &lt;p&gt; This command is to be run whenever a new database has been specified or, as necessary, after an upgrade. &lt;p&gt; This request should be sent to Hue servers only.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void syncHueDbCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.syncHueDbCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Cleanup a list of ZooKeeper server roles.
     *
     * Cleanup a list of ZooKeeper server roles. &lt;p&gt; This command removes snapshots and transaction log files kept by ZooKeeper for backup purposes. Refer to the ZooKeeper documentation for more details.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void zooKeeperCleanupCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.zooKeeperCleanupCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
    /**
     * Initialize a list of ZooKeeper server roles.
     *
     * Initialize a list of ZooKeeper server roles. &lt;p&gt; This applies to ZooKeeper services from CDH4. Before ZooKeeper server roles can be used, they need to be initialized.
     *
     * @throws Exception
     *          if the Api call fails
     */
    @Test
    public void zooKeeperInitCommandTest() throws Exception {
        String clusterName = null;
        String serviceName = null;
        ApiRoleNameList body = null;
        ApiBulkCommandList response = api.zooKeeperInitCommand(clusterName, serviceName, body);

        // TODO: test validations
    }
}
