param_table_test.go 2.9 KB
Newer Older
X
XuanYang-cn 已提交
1 2 3 4 5 6 7 8 9 10 11
package datanode

import (
	"log"
	"testing"
)

func TestParamTable_DataNode(t *testing.T) {

	Params.Init()

X
XuanYang-cn 已提交
12 13 14
	t.Run("Test NodeID", func(t *testing.T) {
		id := Params.NodeID
		log.Println("NodeID:", id)
X
XuanYang-cn 已提交
15 16 17 18
	})

	t.Run("Test flowGraphMaxQueueLength", func(t *testing.T) {
		length := Params.FlowGraphMaxQueueLength
19
		log.Println("flowGraphMaxQueueLength:", length)
X
XuanYang-cn 已提交
20 21 22 23
	})

	t.Run("Test flowGraphMaxParallelism", func(t *testing.T) {
		maxParallelism := Params.FlowGraphMaxParallelism
24
		log.Println("flowGraphMaxParallelism:", maxParallelism)
X
XuanYang-cn 已提交
25 26 27 28
	})

	t.Run("Test FlushInsertBufSize", func(t *testing.T) {
		size := Params.FlushInsertBufferSize
29
		log.Println("FlushInsertBufferSize:", size)
X
XuanYang-cn 已提交
30 31 32 33
	})

	t.Run("Test FlushDdBufSize", func(t *testing.T) {
		size := Params.FlushDdBufferSize
34
		log.Println("FlushDdBufferSize:", size)
X
XuanYang-cn 已提交
35 36 37 38
	})

	t.Run("Test InsertBinlogRootPath", func(t *testing.T) {
		path := Params.InsertBinlogRootPath
39
		log.Println("InsertBinlogRootPath:", path)
X
XuanYang-cn 已提交
40 41
	})

42 43
	t.Run("Test DdlBinlogRootPath", func(t *testing.T) {
		path := Params.DdlBinlogRootPath
44
		log.Println("DdBinlogRootPath:", path)
X
XuanYang-cn 已提交
45 46 47 48
	})

	t.Run("Test PulsarAddress", func(t *testing.T) {
		address := Params.PulsarAddress
49
		log.Println("PulsarAddress:", address)
X
XuanYang-cn 已提交
50 51 52 53
	})

	t.Run("Test insertChannelNames", func(t *testing.T) {
		names := Params.InsertChannelNames
54
		log.Println("InsertChannelNames:", names)
X
XuanYang-cn 已提交
55 56 57 58
	})

	t.Run("Test ddChannelNames", func(t *testing.T) {
		names := Params.DDChannelNames
59
		log.Println("DDChannelNames:", names)
X
XuanYang-cn 已提交
60 61 62 63
	})

	t.Run("Test SegmentStatisticsChannelName", func(t *testing.T) {
		name := Params.SegmentStatisticsChannelName
64
		log.Println("SegmentStatisticsChannelName:", name)
X
XuanYang-cn 已提交
65 66 67 68
	})

	t.Run("Test timeTickChannelName", func(t *testing.T) {
		name := Params.TimeTickChannelName
69
		log.Println("TimeTickChannelName:", name)
X
XuanYang-cn 已提交
70 71 72 73
	})

	t.Run("Test msgChannelSubName", func(t *testing.T) {
		name := Params.MsgChannelSubName
74
		log.Println("MsgChannelSubName:", name)
X
XuanYang-cn 已提交
75 76 77 78
	})

	t.Run("Test EtcdAddress", func(t *testing.T) {
		addr := Params.EtcdAddress
79
		log.Println("EtcdAddress:", addr)
X
XuanYang-cn 已提交
80 81 82 83
	})

	t.Run("Test MetaRootPath", func(t *testing.T) {
		path := Params.MetaRootPath
84
		log.Println("MetaRootPath:", path)
X
XuanYang-cn 已提交
85 86 87 88
	})

	t.Run("Test SegFlushMetaSubPath", func(t *testing.T) {
		path := Params.SegFlushMetaSubPath
89
		log.Println("SegFlushMetaSubPath:", path)
X
XuanYang-cn 已提交
90 91 92 93
	})

	t.Run("Test DDLFlushMetaSubPath", func(t *testing.T) {
		path := Params.DDLFlushMetaSubPath
94
		log.Println("DDLFlushMetaSubPath:", path)
X
XuanYang-cn 已提交
95 96 97 98
	})

	t.Run("Test minioAccessKeyID", func(t *testing.T) {
		id := Params.MinioAccessKeyID
99
		log.Println("MinioAccessKeyID:", id)
X
XuanYang-cn 已提交
100 101 102 103
	})

	t.Run("Test minioSecretAccessKey", func(t *testing.T) {
		key := Params.MinioSecretAccessKey
104
		log.Println("MinioSecretAccessKey:", key)
X
XuanYang-cn 已提交
105 106 107 108
	})

	t.Run("Test MinioUseSSL", func(t *testing.T) {
		useSSL := Params.MinioUseSSL
109
		log.Println("MinioUseSSL:", useSSL)
X
XuanYang-cn 已提交
110 111 112 113
	})

	t.Run("Test MinioBucketName", func(t *testing.T) {
		name := Params.MinioBucketName
114
		log.Println("MinioBucketName:", name)
X
XuanYang-cn 已提交
115 116 117
	})

}