being executed in a pod MUST be sent to the pod's logs.
Note this test needs to be fixed to also test for stderr
Notational Conventions when documenting the tests with the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119).
Note: Please see the Summary at the end of this document to find the number of tests documented for conformance.
// TODO(mml): Remove this once we have all-go-srcs build rules. See https://github.com/kubernetes/repo-infra/pull/45
ifstrings.HasSuffix(path,".go"){
scanfile(path)
ifstrings.HasSuffix(path,".go"){
tests:=scanfile(path,nil)
for_,cd:=rangetests{
fmt.Printf("## [%s](%s)\n\n",cd.TestName,cd.URL)
fmt.Printf("%s\n\n",cd.Description)
iflen(cd.Description)<10{
missingComments++
}
}
}
returnnil
})
}
if*confDoc{
fmt.Println("\n## **Summary**")
fmt.Printf("\nTotal Conformance Tests: %d, total legacy tests that need conversion: %d, while total tests that need comment sections: %d\n\n",totalConfTests,totalLegacyTests,missingComments)
Description:`By default the stdout and stderr from the process
being executed in a pod MUST be sent to the pod's logs.`+"\n\n"}},
},
// Describe + It
{"e2e/foo.go",`
var _ = Describe("Feature", func() {
//It should have comment
framework.ConformanceIt("should work properly", func() {})
})`,[]conformanceData{{URL:"https://github.com/kubernetes/kubernetes/tree/master/e2e/foo.go#L5",TestName:"Feature should work properly",Description:"It should have comment\n\n"}},
},
// KubeDescribe + It
{"e2e/foo.go",`
var _ = framework.KubeDescribe("Feature", func() {
/*It should have comment*/
framework.ConformanceIt("should work properly", func() {})
})`,[]conformanceData{{URL:"https://github.com/kubernetes/kubernetes/tree/master/e2e/foo.go#L5",TestName:"Feature should work properly",Description:"It should have comment\n\n"}},
},
// KubeDescribe + Context + It
{"e2e/foo.go",`
var _ = framework.KubeDescribe("Feature", func() {
Context("when offline", func() {
//Testname: Kubelet-OutputToLogs
//Description: By default the stdout and stderr from the process
//being executed in a pod MUST be sent to the pod's logs.