Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StartTestTLSServer (0.23 sec)

  1. cmd/test-utils_test.go

    // The generated certificate contains IP SAN, that way we don't need
    // to enable InsecureSkipVerify in TLS config
    
    // Starts the test server and returns the TestServer with TLS configured instance.
    func StartTestTLSServer(t TestErrHandler, instanceType string, cert, key []byte) TestServer {
    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  2. cmd/server_test.go

    // Starting the Test server with temporary backend.
    func (s *TestSuiteCommon) SetUpSuite(c *check) {
    	if s.secure {
    		cert, key, err := generateTLSCertKey("127.0.0.1")
    		c.Assert(err, nil)
    
    		s.testServer = StartTestTLSServer(c, s.serverType, cert, key)
    	} else {
    		s.testServer = StartTestServer(c, s.serverType)
    	}
    
    	s.client = s.testServer.Server.Client()
    	s.endPoint = s.testServer.Server.URL
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top