INNER CODE UNIT · Go

testDescribePolicy

minio/kes · api_test.go:551

func testDescribePolicy(t *testing.T) {
	t.Parallel()

	ctx := testContext(t)
	srv, url := startServer(ctx, nil)
	defer srv.Close()

	policies := make(map[string]Policy)
	for _, test := range validNameTests {
		if validName(test.Name) {
			policies[test.Name] = Policy{}
		}
	}
	if err := srv.UpdatePolicies(policies); err != nil {
		t.Fatalf("Failed to update server policies: %v", err)
	}

	client := defaultClient(url)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…