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: http-api-test.go
    path of file: ./repos/agones/test/sdk/restapi
    
    the code of the file until where you have to start completion: // Copyright 2019 Google LLC All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package main

import (
	"log"
	"os"
	"strings"
	"time"

	alpha "agones.dev/agones/test/sdk/restapi/alpha/swagger"
	"agones.dev/agones/test/sdk/restapi/swagger"
	"github.com/google/go-cmp/cmp"
	"golang.org/x/net/context"
)

func main() {
	log.Println("Client is starting")
	conf := swagger.NewConfiguration()
	portStr := os.Getenv("AGONES_SDK_HTTP_PORT")
	conf.BasePath = "http://localhost:" + portStr
	cli := swagger.NewAPIClient(conf)

	log.Pri
    
func testCounters(ctx context.Context, alphaCli *alpha.APIClient) {
	// Tests are expected to run sequentially on the same pre-defined Counter in the localsdk server
	counterName := "rooms"

	expectedCounter := alpha.AlphaCounter{Name: counterName, Count: "1", Capacity: "10"}
	if counter, _, err := alphaCli.SDKApi.GetCounter(ctx, counterName); err != nil {
		log.Fatalf("Error getting Counter: %s", err)
	} else {
		if !cmp.Equal(expectedCounter, counter) {
			log.Fatalf("GetCounter expected Counter: %v, got Counter: %v", expectedCounter, counter)
		}
	}

	// Test updatecounter, setcapacitycounter
	expectedCounter = alpha.AlphaCounter{Name: counterName, Count: "0", Capacity: "42"}
	if counter, _, err := alphaCli.SDKApi.UpdateCounter(ctx, alpha.TheRequestedUpdateToMakeToTheCounter{CountDiff: "-1", Capacity: "42"}, counterName); err != nil {
		log.Fatalf("Error getting Counter: %s", err)
	} else {
		if !cmp.Equal(expectedCounter, counter) {
			log.Fatalf("UpdateCounter expected Counter: %v, got Counter: %v", expectedCounter, counter)
		}
	}

	// Test setcountcounter
	expectedCounter = alpha.AlphaCounter{Name: counterName, Count: "40", Capacity: "42"}
	if counter, _, err := alphaCli.SDKApi.UpdateCounter(ctx, alpha.TheRequestedUpdateToMakeToTheCounter{Count: "40", Capacity: "42"}, counterName); err != nil {
		log.Fatalf("Error getting Counter: %s", err)
	} else {
		if !cmp.Equal(expectedCounter, counter) {
			log.Fatalf("UpdateCounter expected Counter: %v, got Counter: %v", expectedCounter, counter)
		}
	}
}