mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
event: Enhance event message struct to provide origin server. (#3557)
`principalId` i.e user identity is kept as AccessKey in
accordance with S3 spec.
Additionally responseElements{} are added starting with
`x-amz-request-id` is a hexadecimal of the event time itself in nanosecs.
`x-minio-origin-server` - points to the server generating the event.
Fixes #3556
This commit is contained in:
@@ -63,7 +63,7 @@ func TestGetListenIPs(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestFinalizeEndpoints(t *testing.T) {
|
||||
func TestFinalizeAPIEndpoints(t *testing.T) {
|
||||
testCases := []struct {
|
||||
tls bool
|
||||
addr string
|
||||
@@ -75,7 +75,7 @@ func TestFinalizeEndpoints(t *testing.T) {
|
||||
}
|
||||
|
||||
for i, test := range testCases {
|
||||
endPoints := finalizeEndpoints(test.tls, &http.Server{Addr: test.addr})
|
||||
endPoints := finalizeAPIEndpoints(test.tls, &http.Server{Addr: test.addr})
|
||||
if len(endPoints) <= 0 {
|
||||
t.Errorf("Test case %d returned with no API end points for %s",
|
||||
i+1, test.addr)
|
||||
|
||||
Reference in New Issue
Block a user