Package com.heroku.api.request.sharing

Examples of com.heroku.api.request.sharing.SharingAdd


     * Add a collaborator to an app.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param collaborator Username of the collaborator to add. This is usually in the form of "user@company.com".
     */
    public void addCollaborator(String appName, String collaborator) {
        connection.execute(new SharingAdd(appName, collaborator), apiKey);
    }
View Full Code Here


        assertNotNull(response);
    }

    @Test(dataProvider = "app", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testSharingAddCommand(App app) throws IOException {
        SharingAdd cmd = new SharingAdd(app.getName(), sharingUser.getUsername());
        Unit response = connection.execute(cmd, apiKey);
        assertNotNull(response);
    }
View Full Code Here

        assertNotNull(response);
    }

    @Test(dataProvider = "app", retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testSharingAddWithBrandNewUserCommand(App app) throws IOException {
        SharingAdd cmd = new SharingAdd(app.getName(), randomEmail());
        Unit response = connection.execute(cmd, apiKey);
        assertNotNull(response);
    }
View Full Code Here

        sharedUserAPI.destroyApp(transferredApp.getName());
    }

    @Test(dataProvider = "newApp", invocationCount = 5, successPercentage = 20, retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testSharingRemoveCommand(App app) throws IOException {
        SharingAdd sharingAddCommand = new SharingAdd(app.getName(), sharingUser.getUsername());
        Unit sharingAddResp = connection.execute(sharingAddCommand, apiKey);
        assertNotNull(sharingAddResp);

        SharingRemove cmd = new SharingRemove(app.getName(), sharingUser.getUsername());
        Unit response = connection.execute(cmd, apiKey);
View Full Code Here

TOP

Related Classes of com.heroku.api.request.sharing.SharingAdd

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.