mirror of https://github.com/portainer/portainer
				
				
				
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Go
		
	
	
package openamt
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"github.com/portainer/portainer/pkg/fips"
 | 
						|
 | 
						|
	"github.com/stretchr/testify/require"
 | 
						|
)
 | 
						|
 | 
						|
func TestNewService(t *testing.T) {
 | 
						|
	fips.InitFIPS(false)
 | 
						|
 | 
						|
	service := NewService(true)
 | 
						|
	require.NotNil(t, service)
 | 
						|
	require.True(t, service.httpsClient.Transport.(*http.Transport).TLSClientConfig.InsecureSkipVerify) //nolint:forbidigo
 | 
						|
}
 |