...

Source file src/github.com/aws/smithy-go/transport/http/identity_test.go

Documentation: github.com/aws/smithy-go/transport/http

     1  package http
     2  
     3  import (
     4  	"context"
     5  	"testing"
     6  	smithy "github.com/aws/smithy-go"
     7  	"github.com/aws/smithy-go/auth"
     8  )
     9  
    10  func TestIdentity(t *testing.T) {
    11  	var expected auth.Identity = &auth.AnonymousIdentity{}
    12  
    13  	resolver := auth.AnonymousIdentityResolver{}
    14  	actual, _ := resolver.GetIdentity(context.TODO(), smithy.Properties{})
    15  	if expected != actual {
    16  		t.Errorf("Anonymous identity resolver does not produce correct identity")
    17  	}
    18  }

View as plain text