Skip to content

Commit 30ec314

Browse files
authored
feat: [CHAOS-8639]: add service discovery SDK support (#664)
* feat: [CHAOS-8639]: add service discovery SDK support Signed-off-by: Sagar Kumar <[email protected]> * feat: [CHAOS-8639]: update connector ref in chaos sdk test Signed-off-by: Sagar Kumar <[email protected]> --------- Signed-off-by: Sagar Kumar <[email protected]>
1 parent 7c2a014 commit 30ec314

File tree

529 files changed

+81255
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

529 files changed

+81255
-2
lines changed

harness/chaos/chaos_sdk_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ var (
2424
orgIdentifier = "<replace-with-your-org-identifier>"
2525
projectID = "<replace-with-your-project-identifier>"
2626
envID = "<replace-with-your-env-identifier>"
27+
connectorRef = "<replace-with-your-connector-ref>"
2728
infraNamespace = "<replace-with-your-infra-namespace>"
2829
serviceAccount = "<replace-with-your-service-account>"
29-
testInfraPrefix = "<replace-with-your-test-infra-prefix>"
30+
testInfraPrefix = "test-sdk"
3031
)
3132

3233
// TestMain handles setup and teardown
@@ -325,7 +326,7 @@ func createPlatformInfrastructure(t *testing.T, client *chaos.APIClient, ctx con
325326
deploymentType: Kubernetes
326327
type: KubernetesDirect
327328
spec:
328-
connectorRef: org.workshop
329+
connectorRef: %s
329330
namespace: %s
330331
releaseName: release-<+INFRA_KEY>
331332
allowSimultaneousDeployments: false`,
@@ -334,6 +335,7 @@ func createPlatformInfrastructure(t *testing.T, client *chaos.APIClient, ctx con
334335
orgIdentifier,
335336
projectID,
336337
envID,
338+
connectorRef,
337339
infraNamespace,
338340
)
339341

harness/chaos/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ func NewAPIClient(cfg *Configuration) *APIClient {
7272

7373
// Api Config
7474
c.ApiKey = cfg.ApiKey
75+
c.AccountId = cfg.AccountId
76+
c.Endpoint = cfg.BasePath
7577

7678
// API Services
7779
c.ChaosSdkApi = (*ChaosSdkApiService)(&c.common)

harness/svcdiscovery/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.exe
23+
*.test
24+
*.prof
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.68

harness/svcdiscovery/.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: go
2+
3+
install:
4+
- go get -d -v .
5+
6+
script:
7+
- go build -v ./
8+

harness/svcdiscovery/README.md

Lines changed: 350 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)