mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Remove test/integration/* from hack/.golint_failures
This commit is contained in:
		@@ -46,7 +46,7 @@ type base64Plugin struct {
 | 
			
		||||
	encryptRequest chan *kmsapi.EncryptRequest
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewBase64Plugin() (*base64Plugin, error) {
 | 
			
		||||
func newBase64Plugin() (*base64Plugin, error) {
 | 
			
		||||
	listener, err := net.Listen(unixProtocol, sockFile)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, fmt.Errorf("failed to listen on the unix socket, error: %v", err)
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,7 @@ func (r rawDEKKEKSecret) getPayload() []byte {
 | 
			
		||||
// 4. The payload (ex. Secret) should be encrypted via AES CBC transform
 | 
			
		||||
// 5. Prefix-EncryptedDEK-EncryptedPayload structure should be deposited to ETCD
 | 
			
		||||
func TestKMSProvider(t *testing.T) {
 | 
			
		||||
	pluginMock, err := NewBase64Plugin()
 | 
			
		||||
	pluginMock, err := newBase64Plugin()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		t.Fatalf("failed to create mock of KMS Plugin: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
@@ -353,7 +353,7 @@ func TestWatchSucceedsWithoutArgs(t *testing.T) {
 | 
			
		||||
	resp.Body.Close()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var hpaV1 string = `
 | 
			
		||||
var hpaV1 = `
 | 
			
		||||
{
 | 
			
		||||
  "apiVersion": "autoscaling/v1",
 | 
			
		||||
  "kind": "HorizontalPodAutoscaler",
 | 
			
		||||
@@ -374,7 +374,7 @@ var hpaV1 string = `
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 | 
			
		||||
var deploymentExtensions string = `
 | 
			
		||||
var deploymentExtensions = `
 | 
			
		||||
{
 | 
			
		||||
  "apiVersion": "extensions/v1beta1",
 | 
			
		||||
  "kind": "Deployment",
 | 
			
		||||
@@ -401,7 +401,7 @@ var deploymentExtensions string = `
 | 
			
		||||
}
 | 
			
		||||
`
 | 
			
		||||
 | 
			
		||||
var deploymentApps string = `
 | 
			
		||||
var deploymentApps = `
 | 
			
		||||
{
 | 
			
		||||
  "apiVersion": "apps/v1",
 | 
			
		||||
  "kind": "Deployment",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user