Package com.streamreduce.core.model

Examples of com.streamreduce.core.model.ConnectionCredentials


                .username("test_user_" + new Date().getTime() + "@nodeable.com")
                .build();

        connection = new Connection.Builder()
                .provider(ConnectionProvidersForTests.AWS_CLOUD_PROVIDER)
                .credentials(new ConnectionCredentials(awsAccessKeyId, awsSecretKey))
                .alias("Test AWS Connection")
                .user(testUser)
                .authType(AuthType.USERNAME_PASSWORD)
                .build();
View Full Code Here


        Thread.sleep(TimeUnit.SECONDS.toMillis(10));

        String expectedBucketName = "com.streamreduce." + testIMGConnection.getAccount().getId();
        String key = "processed/" + sobaMessage.getConnectionId() + "/" + sobaMessage.getId();

        ConnectionCredentials creds = new ArrayList<>(
                testIMGConnection.getOutboundConfigurations()).get(0).getCredentials();
        s3TestUtils = new S3TestUtils(creds);

        Blob payload = s3TestUtils.getExpectedBlob(expectedBucketName, key);
View Full Code Here

                .build();
        sobaMessage.setId(new ObjectId());

        outboundStorageService.sendSobaMessage(sobaMessage, testIMGConnection);

        ConnectionCredentials creds = new ArrayList<>(
                testIMGConnection.getOutboundConfigurations()).get(0).getCredentials();
        s3TestUtils = new S3TestUtils(creds);

        String expectedBucketName = "com.streamreduce." + testIMGConnection.getAccount().getId();
        String prefix = "processed/" + sobaMessage.getConnectionId() + "/";
View Full Code Here

        sobaMessage.setId(new ObjectId());

        outboundStorageService.sendSobaMessage(sobaMessage, testIMGConnection);
        Thread.sleep(TimeUnit.SECONDS.toMillis(10));     //give this some time to go through the queue

        ConnectionCredentials creds = new ArrayList<>(
                testIMGConnection.getOutboundConfigurations()).get(0).getCredentials();
        s3TestUtils = new S3TestUtils(creds);

        String expectedBucketName = "com.streamreduce." + testIMGConnection.getAccount().getId();
        String prefix = "insight/" + sobaMessage.getConnectionId() + "/";
View Full Code Here

                .build();
        sobaMessage.setId(new ObjectId());

        outboundStorageService.sendSobaMessage(sobaMessage, testIMGConnection);

        ConnectionCredentials creds = new ArrayList<>(
                testIMGConnection.getOutboundConfigurations()).get(0).getCredentials();
        s3TestUtils = new S3TestUtils(creds);

        String expectedBucketName = "com.streamreduce." + testIMGConnection.getAccount().getId();
        String prefix = "insight/" + sobaMessage.getConnectionId() + "/";
View Full Code Here

        Thread.sleep(TimeUnit.SECONDS.toMillis(10));

        String expectedBucketName = "com.streamreduce." + testIMGConnection.getAccount().getId();
        String key = "processed/" + sobaMessage.getConnectionId() + "/" + sobaMessage.getId();

        ConnectionCredentials credentials = new ArrayList<>(
                testIMGConnection.getOutboundConfigurations()).get(0).getCredentials();
        s3TestUtils = new S3TestUtils(credentials);

        Blob payload = s3TestUtils.getExpectedBlob(expectedBucketName, key);
View Full Code Here

                .fullname("Nodeable Test User")
                .username("test_user_" + new Date().getTime() + "@nodeable.com")
                .build();

        connection = new Connection.Builder()
                .credentials(new ConnectionCredentials(githubUsername, githubPassword))
                .provider(ConnectionProvidersForTests.GITHUB_PROVIDER)
                .alias("Test GitHub Connection")
                .authType(AuthType.USERNAME_PASSWORD)
                .user(testUser)
                .build();
View Full Code Here

                .username("test_user_" + new Date().getTime() + "@nodeable.com")
                .build();

        connection = new Connection.Builder()
                .provider(jiraProjectHostingProvider)
                .credentials(new ConnectionCredentials(jiraUsername, jiraPassword))
                .url(jiraUrl)
                .alias("Test Jira Connection")
                .user(testUser)
                .authType(AuthType.USERNAME_PASSWORD)
                .build();
View Full Code Here

        }
    }

    @Test
    public void testTwitterPolling() throws Exception {
        ConnectionCredentials credentials = new ConnectionCredentials();

        credentials.setOauthToken(twitterProperties.getString("nodeable.integrations.twitter.oauth_token"));
        credentials.setOauthTokenSecret(twitterProperties.getString("nodeable.integrations.twitter.oauth_secret"));

        ConnectionProvider twitterProvider =
                connectionProviderFactory.connectionProviderFromId(ProviderIdConstants.TWITTER_PROVIDER_ID);
        connection = connectionService.createConnection(
                new Connection.Builder()
View Full Code Here

    @Test
    public void testAWSInventoryPolling() throws Exception {
        ConnectionProvider awsProvider =
                connectionProviderFactory.connectionProviderFromId(ProviderIdConstants.AWS_PROVIDER_ID);
        connection = new Connection.Builder()
                .credentials(new ConnectionCredentials(cloudProperties.getString("nodeable.aws.accessKeyId"),
                        cloudProperties.getString("nodeable.aws.secretKey")))
                .description("This is Nodeable's AWS cloud.")
                .alias("AWS Inventory Polling Connection " + new Date().getTime())
                .provider(awsProvider)
                .user(getTestUser())
View Full Code Here

TOP

Related Classes of com.streamreduce.core.model.ConnectionCredentials

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.