<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.
15 lines
340 B
Go
15 lines
340 B
Go
package dingtalk
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNewBot(t *testing.T) {
|
|
b := NewBot("client_id", "client_secret")
|
|
if b.ClientID() != "client_id" {
|
|
t.Fatalf("expected ClientID client_id, got %s", b.ClientID())
|
|
}
|
|
if b.ClientSecret() != "client_secret" {
|
|
t.Fatalf("expected ClientSecret client_secret, got %s", b.ClientSecret())
|
|
}
|
|
}
|