<message> - Introduce Feishu and DingTalk adapters in the robot lifecycle for enhanced integration capabilities. - Update the integration dispatcher to include new adapters for handling events from Feishu and DingTalk. - Modify the configuration structure to support settings for both Feishu and DingTalk integrations. - Enhance the integration parsing logic to recognize and process configurations for Feishu and DingTalk.
18 lines
372 B
Go
18 lines
372 B
Go
package feishu
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNewBot(t *testing.T) {
|
|
b := NewBot("cli_xxx", "secret_yyy")
|
|
if b.AppID() != "cli_xxx" {
|
|
t.Fatalf("expected AppID cli_xxx, got %s", b.AppID())
|
|
}
|
|
if b.AppSecret() != "secret_yyy" {
|
|
t.Fatalf("expected AppSecret secret_yyy, got %s", b.AppSecret())
|
|
}
|
|
if b.Client() == nil {
|
|
t.Fatal("Client() should not be nil")
|
|
}
|
|
}
|