File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 4444 },
4545 "autoload-dev" : {
4646 "psr-4" : {
47+ "Test\\ Integration\\ Cog\\ OpenTsdbClient\\ " : " test/Integration" ,
4748 "Test\\ Unit\\ Cog\\ OpenTsdbClient\\ " : " test/Unit"
4849 }
4950 },
Original file line number Diff line number Diff line change 2020
2121final class OpenTsdbClientTest extends TestCase
2222{
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
2449 {
2550 if ($ _ENV ['APP_ENV ' ] === 'ci ' ) {
2651 $ 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