mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Add Test Description to e2e User-Agent
Co-Authored-By: Guinevere Saenger <guineveresaenger@gmail.com>
This commit is contained in:
parent
09cdfc5287
commit
229ecedac5
@ -155,6 +155,15 @@ func (f *Framework) BeforeEach() {
|
|||||||
if f.ClientSet == nil {
|
if f.ClientSet == nil {
|
||||||
By("Creating a kubernetes client")
|
By("Creating a kubernetes client")
|
||||||
config, err := LoadConfig()
|
config, err := LoadConfig()
|
||||||
|
testDesc := CurrentGinkgoTestDescription()
|
||||||
|
if len(testDesc.ComponentTexts) > 0 {
|
||||||
|
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
|
||||||
|
config.UserAgent = fmt.Sprintf(
|
||||||
|
"%v -- %v",
|
||||||
|
rest.DefaultKubernetesUserAgent(),
|
||||||
|
componentTexts)
|
||||||
|
}
|
||||||
|
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
config.QPS = f.Options.ClientQPS
|
config.QPS = f.Options.ClientQPS
|
||||||
config.Burst = f.Options.ClientBurst
|
config.Burst = f.Options.ClientBurst
|
||||||
|
Loading…
Reference in New Issue
Block a user