@@ -49,8 +49,8 @@ func NewGCP() GCP {
4949
5050// IsComponentInstalled checks if a given gcloud component is installed
5151func (g GCP ) IsComponentInstalled (t testing.TB , componentID string ) bool {
52- filter := fmt .Sprintf ("\" id='%s'\" " ,componentID )
53- components := g .Runf (t , "components list --filter %s" , filter ).Array ()
52+ filter := fmt .Sprintf ("\" id='%s'\" " , componentID )
53+ components := g .Runf (t , "components list --filter %s" , filter ).Array ()
5454 if len (components ) == 0 {
5555 return false
5656 }
@@ -158,12 +158,12 @@ func (g GCP) HasTagKey(t testing.TB, orgID, tag string) bool {
158158}
159159
160160// EnableApis enables the apis in the given project
161- func (g GCP ) EnableApis (t testing.TB , project string , apis []string ) {
161+ func (g GCP ) EnableAPIs (t testing.TB , project string , apis []string ) {
162162 g .Runf (t , "services enable %s --project %s" , strings .Join (apis , " " ), project )
163163}
164164
165- // IsApiEnabled checks if the api is enabled in the given project
166- func (g GCP ) IsApiEnabled (t testing.TB , project , api string ) bool {
165+ // IsAPIEnabled checks if the api is enabled in the given project
166+ func (g GCP ) IsAPIEnabled (t testing.TB , project , api string ) bool {
167167 filter := fmt .Sprintf ("config.name=%s" , api )
168168 return len (g .Runf (t , "services list --enabled --project %s --filter %s" , project , filter ).Array ()) > 0
169169}
0 commit comments