24 lines
534 B
Go
24 lines
534 B
Go
package contract
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"git.ipao.vip/rogee/go-sip/contracts"
|
|
)
|
|
|
|
func TestContractBundleIsReadable(t *testing.T) {
|
|
for _, name := range []string{
|
|
"mq.schema.json", "event-payloads.schema.json", "ai-config.schema.json",
|
|
"ai-authorization.schema.json", "oss-upload.schema.json",
|
|
"static-cell-artifact.schema.json", "p1-development-profile.schema.json",
|
|
} {
|
|
data, err := contracts.Read(name)
|
|
if err != nil {
|
|
t.Fatalf("%s: %v", name, err)
|
|
}
|
|
if len(data) == 0 {
|
|
t.Fatalf("%s is empty", name)
|
|
}
|
|
}
|
|
}
|