File tree 2 files changed +27
-1
lines changed
2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 44
44
},
45
45
"autoload-dev" : {
46
46
"psr-4" : {
47
+ "Test\\ Integration\\ Cog\\ OpenTsdbClient\\ " : " test/Integration" ,
47
48
"Test\\ Unit\\ Cog\\ OpenTsdbClient\\ " : " test/Unit"
48
49
}
49
50
},
Original file line number Diff line number Diff line change 20
20
21
21
final class OpenTsdbClientTest extends TestCase
22
22
{
23
- public function testSuccess (): void
23
+ public function testSendDataPointList (): void
24
+ {
25
+ if ($ _ENV ['APP_ENV ' ] === 'ci ' ) {
26
+ $ this ->markTestSkipped ('Only for development environment. Need to pull opentsdb container to GitHub. ' );
27
+ }
28
+
29
+ $ dataPointList [] = new DataPoint (
30
+ metric: 'temperature ' ,
31
+ timestamp: 1 ,
32
+ value: -38.04 ,
33
+ tags: ['place ' => 'south_pole ' ],
34
+ );
35
+ $ dataPointList [] = new DataPoint (
36
+ metric: 'temperature ' ,
37
+ timestamp: 1 ,
38
+ value: -2.12 ,
39
+ tags: ['place ' => 'north_pole ' ],
40
+ );
41
+
42
+ $ openTsdbClient = $ this ->initOpenTsdbClient ();
43
+
44
+ $ openTsdbClient ->sendDataPointList ($ dataPointList );
45
+ $ this ->assertTrue (true );
46
+ }
47
+
48
+ public function testSendDataPointListWithDebug (): void
24
49
{
25
50
if ($ _ENV ['APP_ENV ' ] === 'ci ' ) {
26
51
$ this ->markTestSkipped ('Only for development environment. Need to pull opentsdb container to GitHub. ' );
You can’t perform that action at this time.
0 commit comments