@@ -125,18 +125,18 @@ func testCaseKafkaOAuthBearer(t *testing.T, nameSuffix string) *resource.TestCas
125
125
CheckDestroy : CheckDestroyStreamConnection ,
126
126
Steps : []resource.TestStep {
127
127
{
128
- Config : dataSourcesConfig + configureKafka (projectID , instanceName , connectionName , getKafkaAuthenticationConfig ("OAUTHBEARER" , "" , "" , tokenEndpointUrl , clientId , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem ), "localhost:9092,localhost:9092" , "earliest" , "" , false ),
128
+ Config : dataSourcesConfig + configureKafka (projectID , instanceName , connectionName , getKafkaAuthenticationConfig ("OAUTHBEARER" , "" , "" , tokenEndpointURL , clientID , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem ), "localhost:9092,localhost:9092" , "earliest" , "" , false ),
129
129
Check : resource .ComposeAggregateTestCheckFunc (
130
- checkKafkaOAuthAttributes (resourceName , instanceName , connectionName , tokenEndpointUrl , clientId , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9092,localhost:9092" , "earliest" , networkingTypePublic , false , true ),
131
- checkKafkaOAuthAttributes (dataSourceName , instanceName , connectionName , tokenEndpointUrl , clientId , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9092,localhost:9092" , "earliest" , networkingTypePublic , false , false ),
130
+ checkKafkaOAuthAttributes (resourceName , instanceName , connectionName , tokenEndpointURL , clientID , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9092,localhost:9092" , "earliest" , networkingTypePublic , false , true ),
131
+ checkKafkaOAuthAttributes (dataSourceName , instanceName , connectionName , tokenEndpointURL , clientID , clientSecret , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9092,localhost:9092" , "earliest" , networkingTypePublic , false , false ),
132
132
streamConnectionsAttributeChecks (pluralDataSourceName , nil , nil ),
133
133
),
134
134
},
135
135
{
136
- Config : dataSourcesWithPagination + configureKafka (projectID , instanceName , connectionName , getKafkaAuthenticationConfig ("OAUTHBEARER" , "" , "" , tokenEndpointUrl , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem ), "localhost:9093" , "latest" , kafkaNetworkingPublic , false ),
136
+ Config : dataSourcesWithPagination + configureKafka (projectID , instanceName , connectionName , getKafkaAuthenticationConfig ("OAUTHBEARER" , "" , "" , tokenEndpointURL , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem ), "localhost:9093" , "latest" , kafkaNetworkingPublic , false ),
137
137
Check : resource .ComposeAggregateTestCheckFunc (
138
- checkKafkaOAuthAttributes (resourceName , instanceName , connectionName , tokenEndpointUrl , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9093" , "latest" , networkingTypePublic , false , true ),
139
- checkKafkaOAuthAttributes (dataSourceName , instanceName , connectionName , tokenEndpointUrl , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9093" , "latest" , networkingTypePublic , false , false ),
138
+ checkKafkaOAuthAttributes (resourceName , instanceName , connectionName , tokenEndpointURL , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9093" , "latest" , networkingTypePublic , false , true ),
139
+ checkKafkaOAuthAttributes (dataSourceName , instanceName , connectionName , tokenEndpointURL , "clientId2" , "clientSecret" , scope , saslOauthbearerExtentions , httpsCaPem , "localhost:9093" , "latest" , networkingTypePublic , false , false ),
140
140
streamConnectionsAttributeChecks (pluralDataSourceName , conversion .Pointer (2 ), conversion .Pointer (1 )),
141
141
),
142
142
},
0 commit comments