@@ -19,6 +19,7 @@ type ConfigTestSuite struct {
19
19
endpoint string
20
20
projectName string
21
21
logstoreName string
22
+ compressType string
22
23
accessKeyID string
23
24
accessKeySecret string
24
25
client Client
@@ -49,6 +50,7 @@ func (s *ConfigTestSuite) SetupSuite() {
49
50
s .endpoint = os .Getenv ("LOG_TEST_ENDPOINT" )
50
51
s .projectName = fmt .Sprintf ("test-go-log-config-%d" , time .Now ().Unix ())
51
52
s .logstoreName = fmt .Sprintf ("logstore-%d" , time .Now ().Unix ())
53
+ s .compressType = "lz4"
52
54
s .accessKeyID = os .Getenv ("LOG_TEST_ACCESS_KEY_ID" )
53
55
s .accessKeySecret = os .Getenv ("LOG_TEST_ACCESS_KEY_SECRET" )
54
56
s .client .AccessKeyID = s .accessKeyID
@@ -107,6 +109,7 @@ func (s *ConfigTestSuite) TestNormalFileConfig() {
107
109
OutputDetail : OutputDetail {
108
110
ProjectName : s .projectName ,
109
111
LogStoreName : s .logstoreName ,
112
+ CompressType : s .compressType ,
110
113
},
111
114
}
112
115
regexConfig .Key = []string {"content" }
@@ -129,6 +132,7 @@ func (s *ConfigTestSuite) TestNormalFileConfig() {
129
132
s .Equal (destConfig .InputType , InputTypeFile )
130
133
s .Equal (destConfig .OutputDetail .ProjectName , s .projectName )
131
134
s .Equal (destConfig .OutputDetail .LogStoreName , s .logstoreName )
135
+ s .Equal (destConfig .OutputDetail .CompressType , s .compressType )
132
136
s .Equal (destConfig .OutputType , OutputTypeLogService )
133
137
regexConfigDest , ok := ConvertToRegexConfigInputDetail (destConfig .InputDetail )
134
138
s .True (ok )
0 commit comments