19 lines
530 B
Go
19 lines
530 B
Go
package profile
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
// 1695/AC6: the node's report carries the capability file-references.
|
|
func TestTheProfileSaysTheNodeEngineReadsFileReferences(t *testing.T) {
|
|
got := Detect(context.Background(), Default(func(context.Context, string, ...string) (string, error) {
|
|
return "", nil
|
|
}), time.Second)
|
|
v := verdictOf(t, got, CapFileReferences)
|
|
if !v.Present || v.Detail == "" || v.How == "" || CapFileReferences != "file-references" {
|
|
t.Errorf("1695/AC6: file-references = %+v", v)
|
|
}
|
|
}
|