Search in sources :

Example 11 with Account

use of io.syndesis.qe.account.Account in project syndesis-qe by syndesisio.

the class GMailSteps method deleteMailsFromCreds.

@Given("^delete emails from credentials \"([^\"]*)\" with subject \"([^\"]*)\"$")
public void deleteMailsFromCreds(String creds, String subject) {
    Account account = AccountsDirectory.getInstance().get(creds);
    gmu.deleteMessages(account.getProperty("username"), subject);
}
Also used : Account(io.syndesis.qe.account.Account) GoogleAccount(io.syndesis.qe.utils.google.GoogleAccount) Given(io.cucumber.java.en.Given)

Example 12 with Account

use of io.syndesis.qe.account.Account in project syndesis-qe by syndesisio.

the class TwitterSend method fillRealUserName.

public void fillRealUserName(String account) {
    Account acc = AccountsDirectory.getInstance().get(account);
    this.fillInputByDataTestid("user", acc.getProperty("screenName"));
}
Also used : Account(io.syndesis.qe.account.Account)

Example 13 with Account

use of io.syndesis.qe.account.Account in project syndesis-qe by syndesisio.

the class FHIR method initProperties.

private void initProperties() {
    Account account = AccountsDirectory.getInstance().get(Account.Name.FHIR);
    Map<String, String> properties = new HashMap<>();
    account.getProperties().forEach((key, value) -> properties.put(key.toLowerCase(), value));
    appName = properties.get("host");
    fhirPort = Integer.parseInt(properties.get("port"));
}
Also used : Account(io.syndesis.qe.account.Account) HashMap(java.util.HashMap) IntOrString(io.fabric8.kubernetes.api.model.IntOrString)

Example 14 with Account

use of io.syndesis.qe.account.Account in project syndesis-qe by syndesisio.

the class Kudu method createAccount.

public void createAccount() {
    Account kudu = new Account();
    kudu.setService("Apache Kudu");
    Map<String, String> accountParameters = new HashMap<>();
    accountParameters.put("host", "syndesis-kudu");
    kudu.setProperties(accountParameters);
    AccountsDirectory.getInstance().addAccount("kudu", kudu);
}
Also used : Account(io.syndesis.qe.account.Account) HashMap(java.util.HashMap) IntOrString(io.fabric8.kubernetes.api.model.IntOrString)

Example 15 with Account

use of io.syndesis.qe.account.Account in project syndesis-qe by syndesisio.

the class IRC method addAccount.

public void addAccount() {
    Account irc = new Account();
    Map<String, String> params = new HashMap<>();
    params.put("hostname", "irc-server");
    params.put("port", "6667");
    irc.setService("irc");
    irc.setProperties(params);
    AccountsDirectory.getInstance().getAccounts().put("irc", irc);
}
Also used : Account(io.syndesis.qe.account.Account) HashMap(java.util.HashMap) IntOrString(io.fabric8.kubernetes.api.model.IntOrString)

Aggregations

Account (io.syndesis.qe.account.Account)51 HashMap (java.util.HashMap)21 GoogleAccount (io.syndesis.qe.utils.google.GoogleAccount)10 IntOrString (io.fabric8.kubernetes.api.model.IntOrString)9 Then (io.cucumber.java.en.Then)6 When (io.cucumber.java.en.When)6 Given (io.cucumber.java.en.Given)5 ArrayList (java.util.ArrayList)5 TimeoutException (java.util.concurrent.TimeoutException)5 List (java.util.List)4 ElementsCollection (com.codeborne.selenide.ElementsCollection)3 Form (io.syndesis.qe.fragments.common.form.Form)3 AsynchronousJiraRestClientFactory (com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory)2 SelenideElement (com.codeborne.selenide.SelenideElement)2 ElementNotFound (com.codeborne.selenide.ex.ElementNotFound)2 DataTable (io.cucumber.datatable.DataTable)2 ContainerPort (io.fabric8.kubernetes.api.model.ContainerPort)2 ContainerPortBuilder (io.fabric8.kubernetes.api.model.ContainerPortBuilder)2 EnvVar (io.fabric8.kubernetes.api.model.EnvVar)2 ServicePortBuilder (io.fabric8.kubernetes.api.model.ServicePortBuilder)2