/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.8.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.client.ApiException;
import com.cloudera.api.swagger.model.ApiCertificateRequest;
import java.io.File;
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 CertManagerResourceApi
 */
@Ignore
public class CertManagerResourceApiTest {

    private final CertManagerResourceApi api = new CertManagerResourceApi();

    
    /**
     * Exchange a cert request token for a certificate.
     *
     * Exchange a cert request token for a certificate. The token must be a valid token generated by the certmanager utility. The resulting certificate will containin a TLS certificate in JKS and PEM formats. It might optionally contain a private key in JKS and PEM format, corresponding to the certificate.  The tar file is designed to be consumed by the \&quot;cm install_certs\&quot; command to install TLS certificates on a Cloudera Manager agent host.
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void generateCertificateTest() throws ApiException {
        ApiCertificateRequest body = null;
        File response = api.generateCertificate(body);

        // TODO: test validations
    }
    
    /**
     * Gets the Auto-TLS truststore contents.
     *
     * Gets the Auto-TLS truststore contents
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void getTruststoreTest() throws ApiException {
        String type = null;
        File response = api.getTruststore(type);

        // TODO: test validations
    }
    
    /**
     * Gets the configured CM truststore password.
     *
     * Gets the configured CM truststore password
     *
     * @throws ApiException
     *          if the Api call fails
     */
    @Test
    public void getTruststorePasswordTest() throws ApiException {
        String response = api.getTruststorePassword();

        // TODO: test validations
    }
    
}
