Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for faksens (0.07 sec)

  1. cni/pkg/nodeagent/net_test.go

    	nlDeps := fixture.nlDeps
    	pod := buildConvincingPod(false)
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    fakens,
    	}
    
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    	err := netServer.RemovePodFromMesh(ctx, pod, false)
    	assert.NoError(t, err)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      /** Sets the results for `hostname`.  */
      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
        hostAddresses[hostname] = addresses
        return this
      }
    
      /** Clears the results for `hostname`.  */
      fun clear(hostname: String): FakeDns {
        hostAddresses.remove(hostname)
        return this
      }
    
      @Throws(UnknownHostException::class)
      fun lookup(
        hostname: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jun 28 23:33:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

    // Most tests from URLConnectionTest
    class JavaNetAuthenticatorTest {
      private var authenticator = JavaNetAuthenticator()
      private val fakeDns = FakeDns()
      private val recordingAuthenticator = RecordingAuthenticator()
      private val factory =
        TestValueFactory()
          .apply {
            dns = fakeDns
          }
    
      @BeforeEach
      fun setup() {
        Authenticator.setDefault(recordingAuthenticator)
      }
    
      @AfterEach
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. docs/es/docs/deployment/index.md

    Esto difiere en las fases de **desarrollo**, donde estás constantemente cambiando el código, rompiéndolo y arreglándolo, deteniendo y reiniciando el servidor de desarrollo, etc.
    
    ## Estrategias de despliegue
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Feb 07 11:55:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    import java.net.UnknownHostException
    import kotlin.test.assertFailsWith
    import okhttp3.Address
    import okhttp3.ConnectionListener
    import okhttp3.FakeDns
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Request
    import okhttp3.Route
    import okhttp3.TestValueFactory
    import okhttp3.internal.connection.RouteSelector.Companion.socketHost
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. cni/pkg/plugin/plugin_test.go

    			Containers: []corev1.Container{app, proxy},
    		},
    	}
    
    	fakeNS := &corev1.Namespace{
    		TypeMeta: metav1.TypeMeta{
    			APIVersion: "core/v1",
    			Kind:       "Namespace",
    		},
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testNSName,
    			Namespace: "",
    			Labels:    map[string]string{},
    		},
    	}
    
    	return fakePod, fakeNS
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/podcgroupns_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestWithProcFs(t *testing.T) {
    	n := NewPodNetnsProcFinder(fakeFs())
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/ztunnelserver_test.go

    	}
    	sendAck(ztunClient)
    
    	ztunClient.Close()
    	// this will retry for a bit, so shouldn't flake
    	mt.Assert(ztunnelConnected.Name(), nil, monitortest.Exactly(0))
    }
    
    func podAndNetns() (*v1.Pod, *fakeNs) {
    	devNull, err := os.Open(os.DevNull)
    	if err != nil {
    		panic(err)
    	}
    	// we can't close this now, because we need to pass it from the ztunnel server to the client
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

        server!!.enqueue(
          MockResponse(
            code = 301,
            headers = headersOf("Location", "http://www.fakeurl:" + server!!.port),
          ),
        )
        server!!.enqueue(MockResponse())
        val dns = FakeDns()
        dns["fakeurl"] = client.dns.lookup(server!!.hostName)
        dns["www.fakeurl"] = client.dns.lookup(server!!.hostName)
        client =
          client.newBuilder()
            .dns(dns)
            .build()
        val call =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top