@@ -54,7 +54,7 @@ const (
5454)
5555
5656func init () {
57- ginkgo .Describe ("QAT plugin in DPDK mode" , describeQatDpdkPlugin )
57+ ginkgo .Describe ("QAT plugin in DPDK mode [Device:qat] [Mode:dpdk] " , describeQatDpdkPlugin )
5858}
5959
6060func describeQatDpdkPlugin () {
@@ -118,7 +118,7 @@ func describeQatDpdkPlugin() {
118118 }
119119 })
120120
121- ginkgo .Context ("When QAT Gen4 resources are available with crypto (cy) services enabled" , func () {
121+ ginkgo .Context ("When QAT Gen4 resources are available with crypto (cy) services enabled [Resource:cy] " , func () {
122122 // This BeforeEach runs even before the JustBeforeEach above.
123123 ginkgo .BeforeEach (func () {
124124 ginkgo .By ("creating a configMap before plugin gets deployed" )
@@ -128,21 +128,25 @@ func describeQatDpdkPlugin() {
128128 resourceName = "qat.intel.com/cy"
129129 })
130130
131- ginkgo .It ("deploys a crypto pod (openssl) requesting QAT resources" , func (ctx context.Context ) {
131+ ginkgo .It ("deploys a crypto pod (openssl) requesting QAT resources [App:openssl] " , func (ctx context.Context ) {
132132 runCpaSampleCode (ctx , f , symmetric , resourceName )
133133 })
134134
135- ginkgo .It ("deploys a crypto pod (dpdk crypto-perf) requesting QAT resources" , func (ctx context.Context ) {
135+ ginkgo .It ("deploys a crypto pod (dpdk crypto-perf) requesting QAT resources [App:crypto-perf] " , func (ctx context.Context ) {
136136 ginkgo .By ("submitting a crypto pod requesting QAT resources" )
137137 e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "apply" , "-k" , filepath .Dir (cryptoTestGen4YamlPath ))
138138
139139 ginkgo .By ("waiting the crypto pod to finish successfully" )
140140 err := e2epod .WaitForPodSuccessInNamespaceTimeout (ctx , f .ClientSet , "qat-dpdk-test-crypto-perf-tc1-gen4" , f .Namespace .Name , 300 * time .Second )
141141 gomega .Expect (err ).To (gomega .BeNil (), utils .GetPodLogs (ctx , f , "qat-dpdk-test-crypto-perf-tc1-gen4" , "crypto-perf" ))
142142 })
143+
144+ ginkgo .When ("there is no app to run [App:noapp]" , func () {
145+ ginkgo .It ("does nothing" , func () {})
146+ })
143147 })
144148
145- ginkgo .Context ("When QAT Gen4 resources are available with compress (dc) services enabled" , func () {
149+ ginkgo .Context ("When QAT Gen4 resources are available with compress (dc) services enabled [Resource:dc] " , func () {
146150 ginkgo .BeforeEach (func () {
147151 ginkgo .By ("creating a configMap before plugin gets deployed" )
148152 e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "create" , "configmap" , "--from-literal" , "qat.conf=ServicesEnabled=dc" , "qat-config" )
@@ -151,18 +155,22 @@ func describeQatDpdkPlugin() {
151155 resourceName = "qat.intel.com/dc"
152156 })
153157
154- ginkgo .It ("deploys a compress pod (openssl) requesting QAT resources" , func (ctx context.Context ) {
158+ ginkgo .It ("deploys a compress pod (openssl) requesting QAT resources [App:openssl] " , func (ctx context.Context ) {
155159 runCpaSampleCode (ctx , f , compression , resourceName )
156160 })
161+
162+ ginkgo .When ("there is no app to run [App:noapp]" , func () {
163+ ginkgo .It ("does nothing" , func () {})
164+ })
157165 })
158166
159- ginkgo .Context ("When QAT Gen2 resources are available" , func () {
167+ ginkgo .Context ("When QAT Gen2 resources are available [Resource:generic] " , func () {
160168 ginkgo .BeforeEach (func () {
161169 ginkgo .By ("setting resourceName for Gen2 resources" )
162170 resourceName = "qat.intel.com/generic"
163171 })
164172
165- ginkgo .It ("deploys a crypto pod requesting QAT resources" , func (ctx context.Context ) {
173+ ginkgo .It ("deploys a crypto pod requesting QAT resources [App:crypto-perf] " , func (ctx context.Context ) {
166174 ginkgo .By ("submitting a crypto pod requesting QAT resources" )
167175 e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "apply" , "-k" , filepath .Dir (cryptoTestYamlPath ))
168176
@@ -172,7 +180,7 @@ func describeQatDpdkPlugin() {
172180 gomega .Expect (err ).To (gomega .BeNil (), utils .GetPodLogs (ctx , f , demoPodName , demoPodContainerName ))
173181 })
174182
175- ginkgo .It ("deploys a compress pod requesting QAT resources" , func (ctx context.Context ) {
183+ ginkgo .It ("deploys a compress pod requesting QAT resources [App:compress-perf] " , func (ctx context.Context ) {
176184 ginkgo .By ("submitting a compress pod requesting QAT resources" )
177185 e2ekubectl .RunKubectlOrDie (f .Namespace .Name , "apply" , "-k" , filepath .Dir (compressTestYamlPath ))
178186
@@ -181,6 +189,10 @@ func describeQatDpdkPlugin() {
181189 err := e2epod .WaitForPodSuccessInNamespaceTimeout (ctx , f .ClientSet , demoPodName , f .Namespace .Name , 60 * time .Second )
182190 gomega .Expect (err ).To (gomega .BeNil (), utils .GetPodLogs (ctx , f , demoPodName , demoPodContainerName ))
183191 })
192+
193+ ginkgo .When ("there is no app to run [App:noapp]" , func () {
194+ ginkgo .It ("does nothing" , func () {})
195+ })
184196 })
185197}
186198
0 commit comments