This commit is contained in:
Ettore Di Giacinto
2025-04-08 22:18:32 +02:00
parent 894dde9256
commit e7111c6554
97 changed files with 329 additions and 329 deletions

View File

@@ -13,9 +13,9 @@ func TestE2E(t *testing.T) {
RunSpecs(t, "E2E test suite")
}
var testModel = os.Getenv("LOCALAGENT_MODEL")
var testModel = os.Getenv("LOCALAGI_MODEL")
var apiURL = os.Getenv("LOCALAI_API_URL")
var localagentURL = os.Getenv("LOCALAGENT_API_URL")
var localagiURL = os.Getenv("LOCALAGI_API_URL")
func init() {
if testModel == "" {

View File

@@ -3,7 +3,7 @@ package e2e_test
import (
"time"
localagent "github.com/mudler/LocalAgent/pkg/client"
localagi "github.com/mudler/LocalAGI/pkg/client"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
@@ -12,9 +12,9 @@ import (
var _ = Describe("Agent test", func() {
Context("Creates an agent and it answers", func() {
It("create agent", func() {
client := localagent.NewClient(localagentURL, "", 5*time.Minute)
client := localagi.NewClient(localagiURL, "", 5*time.Minute)
err := client.CreateAgent(&localagent.AgentConfig{
err := client.CreateAgent(&localagi.AgentConfig{
Name: "testagent",
})
Expect(err).ToNot(HaveOccurred())