Package com.heroku.api.request.addon

Examples of com.heroku.api.request.addon.AddonInstall


     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param addonName Addon name. See {@link #listAllAddons} to get a list of addons that can be used.
     * @return
     */
    public AddonChange addAddon(String appName, String addonName) {
        return connection.execute(new AddonInstall(appName, addonName), apiKey);
    }
View Full Code Here


        assertNotNull(response, "Expected a response from listing addons, but the result is null.");
    }

    @Test(dataProvider = "newApp", retryAnalyzer = GeneralRetryAnalyzer.class)
    public void testListAppAddons(App app) {
        connection.execute(new AddonInstall(app.getName(), "heroku-postgresql:dev"), apiKey);
        Request<List<Addon>> req = new AppAddonsList(app.getName());
        List<Addon> response = connection.execute(req, apiKey);
        assertNotNull(response);
        assertTrue(response.size() > 0, "Expected at least one addon to be present.");
        assertNotNull(response.get(0).getName());
View Full Code Here

        assertNotNull(response.get(0).getName());
    }

    @Test(dataProvider = "app", retryAnalyzer = GeneralRetryAnalyzer.class)
    public void testAddAddonToApp(App app) {
        AddonInstall req = new AddonInstall(app.getName(), "heroku-postgresql:dev");
        AddonChange response = connection.execute(req, apiKey);
        assertEquals(response.getStatus(), "Installed");
    }
View Full Code Here

TOP

Related Classes of com.heroku.api.request.addon.AddonInstall

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.