// internal/tools/dashboards_test.go
package tools
import (
"testing"
"github.com/chussenot/datadog-mcp/internal/testutil"
"github.com/chussenot/datadog-mcp/internal/types"
)
func TestListDashboardsArgs(t *testing.T) {
// Test that our argument types work correctly
args := types.ListDashboardsArgs{
Filter: testutil.StringPtr("test"),
}
if args.Filter == nil {
t.Error("Expected Filter to be set")
}
if *args.Filter != "test" {
t.Errorf("Expected Filter to be 'test', got '%s'", *args.Filter)
}
}
func TestGetDashboardArgs(t *testing.T) {
// Test dashboard ID argument
args := types.GetDashboardArgs{
DashboardID: "test-dashboard-123",
}
if args.DashboardID != "test-dashboard-123" {
t.Errorf("Expected DashboardID to be 'test-dashboard-123', got '%s'", args.DashboardID)
}
}