Skip to content

Commit

Permalink
Merge remote-tracking branch 'couchbase/unstable' into HEAD
Browse files Browse the repository at this point in the history
http://ci-eventing.northscale.in/eventing-26.09.2019-21.15.fail.html

- TestUndeployWhenTimersAreFired which is known to fail

Change-Id: I153945c821cb3fafee54754923c83eae02425fef
  • Loading branch information
jeelanp2003 committed Sep 27, 2019
2 parents 39f5fda + 080d88e commit 6ac9ce1
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 11 deletions.
44 changes: 39 additions & 5 deletions common/common.go
Expand Up @@ -52,11 +52,13 @@ const (
)

const (
WaitingForMutation = "WaitingForMutation" // Debugger has been started and consumers are waiting to trap
MutationTrapped = "MutationTrapped" // One of the consumers have trapped the mutation
DebuggerTokenKey = "debugger"
MetakvEventingPath = "/eventing/"
MetakvDebuggerPath = MetakvEventingPath + "debugger/"
WaitingForMutation = "WaitingForMutation" // Debugger has been started and consumers are waiting to trap
MutationTrapped = "MutationTrapped" // One of the consumers have trapped the mutation
DebuggerTokenKey = "debugger"
MetakvEventingPath = "/eventing/"
MetakvDebuggerPath = MetakvEventingPath + "debugger/"
MetakvTempAppsPath = MetakvEventingPath + "tempApps/"
MetakvCredentialsPath = MetakvEventingPath + "credentials/"
)

type DebuggerInstance struct {
Expand All @@ -67,6 +69,32 @@ type DebuggerInstance struct {
NodesExternalIP []string `json:"nodes_external_ip"` // List of external IP address of the nodes in the cluster
}

type Application struct {
AppHandlers string `json:"appcode"`
DeploymentConfig DepCfg `json:"depcfg"`
EventingVersion string `json:"version"`
FunctionID uint32 `json:"function_id"`
ID int `json:"id"`
FunctionInstanceID string `json:"function_instance_id"`
Name string `json:"appname"`
Settings map[string]interface{} `json:"settings"`
UsingTimer bool `json:"using_timer"`
SrcMutationEnabled bool `json:"src_mutation"`
}

type DepCfg struct {
Buckets []Bucket `json:"buckets"`
Curl []Curl `json:"curl"`
MetadataBucket string `json:"metadata_bucket"`
SourceBucket string `json:"source_bucket"`
}

type Bucket struct {
Alias string `json:"alias"`
BucketName string `json:"bucket_name"`
Access string `json:"access"`
}

type Curl struct {
Hostname string `json:"hostname"`
Value string `json:"value"`
Expand All @@ -78,6 +106,12 @@ type Curl struct {
ValidateSSLCertificate bool `json:"validate_ssl_certificate"`
}

type Credential struct {
Username string `json:"username"`
Password string `json:"password"`
BearerKey string `json:"bearer_key"`
}

var ErrRetryTimeout = errors.New("retry timeout")

// EventingProducer interface to export functions from eventing_producer
Expand Down
3 changes: 2 additions & 1 deletion tests/ci/skip.txt
Expand Up @@ -19,4 +19,5 @@ TestCurlPutFormDigestAuth
TestCurlPutFormBasicAuth
TestCurlPutFormCookie
TestCurlPutFormDigestAuthCookie
TestCurlPutFormBasicAuthCookie
TestCurlPutFormBasicAuthCookie
TestUndeployWhenTimersAreFired

0 comments on commit 6ac9ce1

Please sign in to comment.