Package com.heroku.api.request.config

Examples of com.heroku.api.request.config.ConfigRemove


     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param configVarName Name of the environment variable. See {@link #listConfig} for variables that can be removed
     * @return
     */
    public Map<String, String> removeConfig(String appName, String configVarName) {
        return connection.execute(new ConfigRemove(appName, configVarName), apiKey);
    }
View Full Code Here


    }

    @Test(dataProvider = "newApp", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testConfigRemoveCommand(App app) {
        addConfig(app, "회사", "히로쿠", "JOHN", "DOE");
        Request<Map<String, String>> removeRequest = new ConfigRemove(app.getName(), "회사");
        Map<String, String> response = connection.execute(removeRequest, apiKey);
        assertNotNull(response.get("JOHN"), "Config var 'JOHN' should still exist, but it's not there.");
        assertNull(response.get("회사"));
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.request.config.ConfigRemove

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.