-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add e2e test to validate cross-project insertAfter references
To ensure that corss-project insertAfter references work fine, this new e2e test is added to verify that.
- Loading branch information
Showing
6 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
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
31 changes: 31 additions & 0 deletions
31
.../integrationtest/v2/test-resources/settings-ordered/cross-project-reference/manifest.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
manifestVersion: 1.0 | ||
|
||
projects: | ||
- name: source | ||
- name: target | ||
|
||
environmentGroups: | ||
- name: default | ||
environments: | ||
- name: classic_env | ||
url: | ||
type: environment | ||
value: URL_ENVIRONMENT_1 | ||
auth: | ||
token: | ||
name: TOKEN_ENVIRONMENT_1 | ||
- name: platform_env | ||
url: | ||
type: environment | ||
value: PLATFORM_URL_ENVIRONMENT_2 | ||
auth: | ||
token: | ||
name: TOKEN_ENVIRONMENT_2 | ||
oAuth: | ||
clientId: | ||
name: OAUTH_CLIENT_ID | ||
clientSecret: | ||
name: OAUTH_CLIENT_SECRET | ||
tokenEndpoint: | ||
type: environment | ||
value: OAUTH_TOKEN_ENDPOINT |
16 changes: 16 additions & 0 deletions
16
...tings-ordered/cross-project-reference/source/builtincontainer.monitoring-rule/config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
configs: | ||
- id: source-id #monaco-test:no-replace | ||
config: | ||
template: template.json | ||
skip: false | ||
type: | ||
settings: | ||
schema: builtin:container.monitoring-rule | ||
schemaVersion: 0.0.1 | ||
scope: environment | ||
insertAfter: | ||
configId: target-id #monaco-test:no-replace | ||
project: target | ||
configType: builtin:container.monitoring-rule | ||
property: id | ||
type: reference |
7 changes: 7 additions & 0 deletions
7
...ngs-ordered/cross-project-reference/source/builtincontainer.monitoring-rule/template.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"enabled": true, | ||
"mode": "MONITORING_OFF", | ||
"property": "CONTAINER_NAME", | ||
"operator": "STARTS", | ||
"value": "aaaa" | ||
} |
10 changes: 10 additions & 0 deletions
10
...tings-ordered/cross-project-reference/target/builtincontainer.monitoring-rule/config.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
configs: | ||
- id: target-id #monaco-test:no-replace | ||
config: | ||
template: template.json | ||
skip: false | ||
type: | ||
settings: | ||
schema: builtin:container.monitoring-rule | ||
schemaVersion: 0.0.1 | ||
scope: environment |
7 changes: 7 additions & 0 deletions
7
...ngs-ordered/cross-project-reference/target/builtincontainer.monitoring-rule/template.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"enabled": true, | ||
"mode": "MONITORING_OFF", | ||
"property": "CONTAINER_NAME", | ||
"operator": "STARTS", | ||
"value": "bbb" | ||
} |