This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Following groups are available : | |
[g5, g1, g2, g3, g4] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/test; | |
import ballerina/io; | |
// This is the mock function which will replace the real intAdd function. | |
@test:Mock { | |
// Since we don't have a package declaration, `.` is the current package | |
// We can include any package here e.g : `ballerina.io` etc. | |
packageName: ".", | |
functionName: "intAdd" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/test; | |
import ballerina/io; | |
any[] outputs = []; | |
int counter = 0; | |
// This is the mock function which will replace the real function | |
@test:Mock { | |
packageName: "ballerina.io", | |
functionName: "println" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/io; | |
boolean isHelloServiceStarted; | |
// Before function to start the service | |
function startMock () { | |
isHelloServiceStarted = test:startServices("mock"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ballerina/http; | |
import ballerina/test; | |
import ballerina/config; | |
string uri = "http://0.0.0.0:9095/v1"; | |
boolean isServiceSkeletonStarted; | |
function init() { | |
// Starting the swagger based service | |
isServiceSkeletonStarted = test:startServiceSkeleton("mockservice", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This method is responsible for creating the Jenkins job. | |
* @param jobName jobName | |
* @param timerConfig cron expression to schedule the job | |
* @return | |
*/ | |
def createJenkinsJob(def jobName, def timerConfig) { | |
echo "Creating the job ${jobName}" | |
// Here I'm using a shared library in the pipeline, so I have loaded my shared library here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.ycr.aws; | |
import com.amazonaws.services.ec2.AmazonEC2; | |
import com.amazonaws.services.ec2.AmazonEC2ClientBuilder; | |
import com.amazonaws.services.ec2.model.DescribeInstancesRequest; | |
import com.amazonaws.services.ec2.model.DescribeInstancesResult; | |
import com.amazonaws.services.ec2.model.Instance; | |
import com.amazonaws.services.ec2.model.Reservation; | |
import com.amazonaws.services.ec2.model.Tag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR - StandardContext Error configuring application listener of class org.springframework.web.context.ContextLoaderListener | |
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener | |
at org.wso2.carbon.webapp.mgt.loader.CarbonWebappClassLoader.loadClass(CarbonWebappClassLoader.java:153) | |
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1750) | |
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:534) | |
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:516) | |
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:148) | |
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5034) | |
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR {org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient} - Error occurred while parsing error response. Response: '{"schemas":"urn:ietf:params:scim:api:messages:2.0:Error","detail":"Cannot retrieve group through scim to user store . SCIM is not enabled for user store PRIMARY","status":"500"}' java.lang.UnsupportedOperationException: JsonObject | |
at com.google.gson.JsonElement.getAsString(JsonElement.java:192) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.getErrorMessage(ExternalIdPClient.java:558) | |
at org.wso2.carbon.analytics.idp.client.external.ExternalIdPClient.getAdminRole(ExternalIdPClient.java:195) | |
at org.wso2.carbon.status.dashboard.core.internal.roles.provider.RolesProvider.readSysAdminConfigs(RolesProvider.java:97) | |
at org.wso2.carbon.status.dashboard.core.internal.roles.provider.RolesProvider.getSysAdminRolesList(RolesProvider.java:53) | |
at org.wso2.carbon.status.dashboard.core.internal.services.PermissionGrantServiceComponent.initPermission(PermissionGrantService |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR {org.wso2.carbon.registry.core.dataaccess.TransactionManager} - Failed to start new registry transaction. | |
org.apache.tomcat.jdbc.pool.PoolExhaustedException: [pool-24-thread-3] Timeout: Pool empty. Unable to fetch a connection in 60 seconds, none available[size:50; busy:50; idle:0; lastwait:60000]. | |
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:703) | |
at org.apache.tomcat.jdbc.pool.ConnectionPool.getConnection(ConnectionPool.java:200) | |
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:128) | |
at org.wso2.carbon.registry.core.jdbc.dataaccess.JDBCTransactionManager.beginTransaction(JDBCTransactionManager.java:80) | |
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.beginTransaction(EmbeddedRegistry.java:443) | |
at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.get(EmbeddedRegistry.java:505) | |
at org.wso2.carbon.registry.core.session.UserRegistry.getInternal(UserRegistry.java:617) | |
at org.wso2.carbon.registry.core.session.UserRegistry. |
OlderNewer