mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-05 07:58:32 -06:00
20 lines
373 B
Go
20 lines
373 B
Go
package models
|
|
|
|
import (
|
|
"github.com/forceu/gokapi/internal/test"
|
|
"testing"
|
|
)
|
|
|
|
func TestIsAwsProvided(t *testing.T) {
|
|
config := AwsConfig{}
|
|
test.IsEqualBool(t, config.IsAllProvided(), false)
|
|
config = AwsConfig{
|
|
Bucket: "test",
|
|
Region: "test",
|
|
Endpoint: "",
|
|
KeyId: "test",
|
|
KeySecret: "test",
|
|
}
|
|
test.IsEqualBool(t, config.IsAllProvided(), true)
|
|
}
|