package mock

import (
	"context"
	"testing"

	"github.com/pfeifferj/container-mom-go/pkg/operator/mongodb"
	"github.com/stretchr/testify/assert"
)

func TestMockMongoDBUtils(t *testing.T) {
	mock := NewMockMongoDB()

	// Test GetClient
	assert.Nil(t, mock.GetClient())

	// Test Database
	assert.Nil(t, mock.Database("containermom"))

	// Test Disconnect
	assert.NoError(t, mock.Disconnect(nil))

	// Test UpdateDeployment
	deployment := &mongodb.MongoDeployment{
		ID:        "test-deployment",
		Name:      "test-deployment",
		Namespace: "default",
	}
	err := mock.UpdateDeployment(context.Background(), deployment)
	assert.NoError(t, err)
}
