mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Merge pull request #11747 from mwielgus/kubectl_version
E2E test for kubectl version
This commit is contained in:
		@@ -348,6 +348,18 @@ var _ = Describe("Kubectl client", func() {
 | 
				
			|||||||
			})
 | 
								})
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Describe("Kubectl version", func() {
 | 
				
			||||||
 | 
							It("should check is all data is printed", func() {
 | 
				
			||||||
 | 
								version := runKubectl("version")
 | 
				
			||||||
 | 
								requiredItems := []string{"Client Version:", "Server Version:", "Major:", "Minor:", "GitCommit:"}
 | 
				
			||||||
 | 
								for _, item := range requiredItems {
 | 
				
			||||||
 | 
									if !strings.Contains(version, item) {
 | 
				
			||||||
 | 
										Failf("Required item %s not found in %s", item, version)
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							})
 | 
				
			||||||
 | 
						})
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func curl(addr string) (string, error) {
 | 
					func curl(addr string) (string, error) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user