You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: requests_test.go
    path of file: ./repos/magistrala/bootstrap/api
    
    the code of the file until where you have to start completion: // Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0

package api

import (
	"fmt"

    
func TestUpdateCertReqValidation(t *testing.T) {
	cases := []struct {
		desc    string
		token   string
		thingID string
		err     error
	}{
		{
			desc:    "empty token",
			token:   "",
			thingID: "thingID",
			err:     apiutil.ErrBearerToken,
		},
		{
			desc:    "empty thing id",
			token:   "token",
			thingID: "",
			err:     apiutil.ErrMissingID,
		},
	}

	for _, tc := range cases {
		req := updateCertReq{
			token:   tc.token,
			thingID: tc.thingID,
		}

		err := req.validate()
		assert.Equal(t, tc.err, err, fmt.Sprintf("%s: expected %s got %s\n", tc.desc, tc.err, err))
	}
}