kylixs commented on a change in pull request #261:
URL: https://github.com/apache/dubbo-samples/pull/261#discussion_r557891433



##########
File path: dubbo-samples-http/case-configuration.yml
##########
@@ -0,0 +1,74 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+
+props:
+  project_name: dubbo-samples-http
+  main_class: org.apache.dubbo.samples.http.HttpProvider
+  zookeeper_port: 2181
+  zookeeper_version: latest
+  dubbo_port: 8080
+  project_dir: .
+
+services:
+  zookeeper:
+    image: zookeeper:${zookeeper_version}
+
+  ${project_name}-tomcat:
+    type: app
+    basedir: ${project_dir}
+    mainClass: ${main_class}
+    systemProps:
+      - zookeeper.address=zookeeper
+      - zookeeper.port=2181
+      - servlet.port=8080
+      - servlet.container=tomcat
+    waitPortsBeforeRun:
+      - zookeeper:2181
+    checkPorts:
+      - 8080
+    checkLog: "dubbo service started"
+
+  ${project_name}-jetty:
+    type: app
+    basedir: ${project_dir}
+    mainClass: ${main_class}
+    systemProps:
+      - zookeeper.address=zookeeper
+      - zookeeper.port=2181
+      - servlet.port=8081
+      - servlet.container=jetty
+    waitPortsBeforeRun:
+      - zookeeper:2181
+    checkPorts:
+      - 8081
+    checkLog: "dubbo service started"
+
+  ${project_name}-test:
+    type: test
+    basedir: ${project_dir}
+    tests:
+      - "**/*IT.class"
+    systemProps:
+      - zookeeper.address=zookeeper
+      - zookeeper.port=2181
+      - dubbo.address=${project_name}
+      - dubbo.port=${dubbo_port}

Review comment:
       这两个系统属性没有使用到,而且也不正确:
   
   ```
     - dubbo.address=${project_name}
     - dubbo.port=${dubbo_port}
   ```

##########
File path: dubbo-samples-http/case-configuration.yml
##########
@@ -0,0 +1,78 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#from: app-builtin-zookeeper.yml
+
+props:
+  project_name: dubbo-samples-http
+  main_class: org.apache.dubbo.samples.http.HttpProvider

Review comment:
       `${project_name}-tomcat`  这种写法比较别扭,还是直接替换掉吧。
   `zookeeper_port: 2181`  像这个属性,抽取了后面也没使用,反而会造成误导




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to