Skip to content

Commit

Permalink
Revert "add tracing integration test (apache#156)" (apache#162)
Browse files Browse the repository at this point in the history
This reverts commit 7c8fc1c.
  • Loading branch information
LaurenceLiZhixin authored Jul 7, 2021
1 parent 7c8fc1c commit 7e51e8a
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 416 deletions.
6 changes: 2 additions & 4 deletions start_integrate_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# tracing integrate test
array=("tracing/dubbo/go-server")

# async
array+=("async/go-server")
array=("async/go-server")
array+=("attachment/go-server")
array+=("config-api/go-server")
# config center
Expand Down Expand Up @@ -79,6 +76,7 @@ array+=("registry/servicediscovery/nacos/go-server")
array+=("router/uniform-router/file/go-server")
array+=("router/uniform-router/file/go-server2")


for((i=0;i<${#array[*]};i++))
do
./integrate_test.sh "${array[i]}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package main
import (
"context"
"fmt"
"github.com/apache/dubbo-go-samples/tracing/dubbo/go-client/pkg"
"os"
"os/signal"
"syscall"
Expand Down Expand Up @@ -51,25 +50,19 @@ import (
)

var (
userProvider = new(pkg.UserProvider)
survivalTimeout int = 10e9
)

func init() {
config.SetConsumerService(userProvider)
hessian.RegisterPOJO(&pkg.User{})
}

// they are necessary:
// export CONF_CONSUMER_FILE_PATH="xxx"
// export APP_LOG_CONF_FILE="xxx"
func main() {
hessian.RegisterPOJO(&pkg.User{})
hessian.RegisterPOJO(&User{})
config.Load()

initZipkin()
gxlog.CInfo("\n\n\nstart to test dubbo")
user := &pkg.User{}
user := &User{}
span, ctx := opentracing.StartSpanFromContext(context.Background(), "Test-Client-Service")
err := userProvider.GetUser(ctx, []interface{}{"A001"}, user)
span.Finish()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,27 @@
* limitations under the License.
*/

package pkg
package main

import (
"context"
"time"
)

import (
"dubbo.apache.org/dubbo-go/v3/config"
hessian "github.com/apache/dubbo-go-hessian2"
)

var (
userProvider = &UserProvider{}
)

func init() {
config.SetConsumerService(userProvider)
hessian.RegisterPOJO(&User{})
}

type User struct {
ID string
Name string
Expand Down
File renamed without changes.
61 changes: 0 additions & 61 deletions tracing/dubbo/go-client/conf/client.yml

This file was deleted.

28 changes: 0 additions & 28 deletions tracing/dubbo/go-client/conf/log.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"dubbo.apache.org/dubbo-go/v3/config"
_ "dubbo.apache.org/dubbo-go/v3/protocol/dubbo"
_ "dubbo.apache.org/dubbo-go/v3/registry/protocol"
"github.com/apache/dubbo-go-samples/tracing/dubbo/go-server/pkg"

_ "dubbo.apache.org/dubbo-go/v3/common/proxy/proxy_factory"
_ "dubbo.apache.org/dubbo-go/v3/filter/filter_impl"
Expand All @@ -57,7 +56,7 @@ var (
// export APP_LOG_CONF_FILE="xxx"
func main() {

hessian.RegisterPOJO(&pkg.User{})
hessian.RegisterPOJO(&User{})
config.Load()

initZipkin()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package pkg
package main

import (
"context"
Expand Down
File renamed without changes.
61 changes: 0 additions & 61 deletions tracing/dubbo/go-server/conf/client.yml

This file was deleted.

28 changes: 0 additions & 28 deletions tracing/dubbo/go-server/conf/log.yml

This file was deleted.

62 changes: 0 additions & 62 deletions tracing/dubbo/go-server/conf/server.yml

This file was deleted.

8 changes: 0 additions & 8 deletions tracing/dubbo/go-server/docker/docker-compose.yml

This file was deleted.

Loading

0 comments on commit 7e51e8a

Please sign in to comment.