Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestNodeMetadata (1.37 sec)

  1. pkg/model/proxy_test.go

    	"google.golang.org/protobuf/types/known/durationpb"
    
    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pkg/model"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestNodeMetadata(t *testing.T) {
    	tests := []struct {
    		name  string
    		in    model.BootstrapNodeMetadata
    		out   string
    		inOut model.BootstrapNodeMetadata
    	}{
    		{
    			"empty",
    			model.BootstrapNodeMetadata{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. pkg/bootstrap/instance_test.go

    	} else if val != "baz" {
    		t.Fatalf("unexpected value node metadata %s. got %s, want: %s", originalKey, val, "baz")
    	}
    }
    
    func TestNodeMetadata(t *testing.T) {
    	envs := []string{
    		"ISTIO_META_ISTIO_VERSION=1.0.0",
    		`ISTIO_METAJSON_LABELS={"foo":"bar"}`,
    	}
    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:          "test",
    		Envs:        envs,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top