chore: initialize go-sip repository
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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",
|
||||
"executor.openapi.yaml", "saas.openapi.yaml", "cell-agent.openapi.yaml",
|
||||
} {
|
||||
data, err := contracts.Read(name)
|
||||
if err != nil {
|
||||
t.Fatalf("%s: %v", name, err)
|
||||
}
|
||||
if len(data) == 0 {
|
||||
t.Fatalf("%s is empty", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user