You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/10/01 01:52:30 UTC
[GitHub] [skywalking] kezhenxu94 commented on a change in pull request #7849: Fix wrong rules for checking lists in E2E
kezhenxu94 commented on a change in pull request #7849:
URL: https://github.com/apache/skywalking/pull/7849#discussion_r719884471
##########
File path: test/e2e-v2/cases/satellite/native-protocols/expected/dependency-services.yml
##########
@@ -14,35 +14,18 @@
# limitations under the License.
nodes:
-{{- range .nodes }}
Review comment:
FYI @mrproliu @wankai123 @dmsolr @arugal , `range` + `if` is not designed to verify lists containing specific elements, can you please review other repos E2E and see whether this style is used, if so, please also update them?
For example, the following rules expect there are 4 nodes, but it still passed even if there is only one node (one arbitrary node in the 4 listed):
```yaml
nodes:
{{- range .nodes }}
{{- if eq .name "User" }}
- id: {{ b64enc "User" }}.0
name: User
type: USER
isreal: false
{{- end }}
{{- if eq .name "e2e-service-provider" }}
- id: {{ b64enc "e2e-service-provider"}}.1
name: e2e-service-provider
type: Tomcat
isreal: true
{{- end }}
{{- if eq .name "e2e-service-consumer" }}
- id: {{ b64enc "e2e-service-consumer"}}.1
name: e2e-service-consumer
type: Tomcat
isreal: true
{{- end }}
{{- if eq .name "localhost:-1" }}
- id: {{ b64enc "localhost:-1" }}.0
name: localhost:-1
type: H2
isreal: false
{{- end }}
{{- end }}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org