Hi Automation Team, I am trying to write a automation test for ESB in tenant mode. As per offline information I got from NuwanW, we only have to use the following
init(TestUserMode.TENANT_ADMIN); instead of init(); to run the test case in tenant mode. When I try that approach I saw that artifacts are getting deployed to the super tenant even if we initialize the tenant mode. Reason for that is Login method always logs into super tenant to deploy artifacts. So I did the following change in the LoginLogoutClient. public String login() throws LoginAuthenticationExceptionException, IOException, XMLStreamException, URISyntaxException, SAXException, XPathExpressionException { - String userName; - userName = automationContext.getContextTenant().getContextUser().getUserName(); + + // Get the tenant + Tenant tenant = automationContext.getContextTenant(); + + String userName = + tenant.getContextUser().getUserName().concat("@").concat(tenant.getDomain()); + return loginClient.login(userName, automationContext.getContextTenant().getContextUser().getPassword() , automationContext.getInstance().getHosts().get("default")); } After making that modification now I am getting the following error. "Invalid domain or unactivated tenant login" Then I tried to manually log into the management console using the tenant admin credentials defined in the automation.xml and it wasn't successful. What am I missing here ? Or else is this way of running tests in tenant mode is not tested and still under development ? Thanks. -- *Isuru Udana* Senior * Software Engineer* WSO2 Inc.; http://wso2.com email: isu...@wso2.com cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/ twitter: http://twitter.com/isudana
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev