-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tmscan tests, add new params for PYEXECUTE, rework XINFO (#146)
* Fix test periodically failed because of inconsistency of COUNT * Rework pyexecute: add new params * Re-implement xifno using marshaling * Format * Add XINFO and update dashboard * Add Test data for Time-series and JSON * Fix tests Co-authored-by: Mikhail <[email protected]>
- Loading branch information
1 parent
d5c95c0
commit ab8a470
Showing
12 changed files
with
472 additions
and
111 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// +build integration | ||
|
||
package main | ||
|
||
import ( | ||
"fmt" | ||
"testing" | ||
|
||
"github.com/mediocregopher/radix/v3" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
/** | ||
* XINFO | ||
*/ | ||
func TestXInfoStreamIntegration(t *testing.T) { | ||
// Client | ||
radixClient, _ := radix.NewPool("tcp", fmt.Sprintf("127.0.0.1:%d", integrationTestPort), 10) | ||
client := radixV3Impl{radixClient: radixClient} | ||
|
||
// Customers | ||
t.Run("query stream queue:customers", func(t *testing.T) { | ||
resp := queryXInfoStream(queryModel{Key: "queue:customers"}, &client) | ||
require.Len(t, resp.Frames, 1) | ||
require.Len(t, resp.Frames[0].Fields, 9) | ||
require.Equal(t, 1, resp.Frames[0].Fields[0].Len()) | ||
}) | ||
|
||
// Orders | ||
t.Run("query stream queue:orders", func(t *testing.T) { | ||
resp := queryXInfoStream(queryModel{Key: "queue:orders"}, &client) | ||
require.Len(t, resp.Frames, 1) | ||
require.Len(t, resp.Frames[0].Fields, 9) | ||
require.Equal(t, 1, resp.Frames[0].Fields[0].Len()) | ||
}) | ||
} |
Oops, something went wrong.