@@ -28,7 +28,7 @@ func TestAppSyncAuthorizers(t *testing.T) {
2828 cases := []auth_case {
2929 {
3030 name : "api_key" ,
31- namespace : "api-key-e2e" ,
31+ namespace : require_env ( t , "APPSYNC_E2E_NS_API_KEY" ) ,
3232 authz : func (endpoint string ) (authorizer.Authorizer , error ) {
3333 return authorizer .ApiKey (authorizer.ApiKeyAuthorizerConfig {
3434 ApiKey : require_env (t , "APPSYNC_E2E_API_KEY" ),
@@ -38,7 +38,7 @@ func TestAppSyncAuthorizers(t *testing.T) {
3838 },
3939 {
4040 name : "iam" ,
41- namespace : "iam-e2e" ,
41+ namespace : require_env ( t , "APPSYNC_E2E_NS_IAM" ) ,
4242 authz : func (endpoint string ) (authorizer.Authorizer , error ) {
4343 return authorizer .IAM (authorizer.IAMAuthorizerConfig {
4444 Region : aws_region ,
@@ -48,7 +48,7 @@ func TestAppSyncAuthorizers(t *testing.T) {
4848 },
4949 {
5050 name : "lambda" ,
51- namespace : "lambda-e2e" ,
51+ namespace : require_env ( t , "APPSYNC_E2E_NS_LAMBDA" ) ,
5252 authz : func (endpoint string ) (authorizer.Authorizer , error ) {
5353 return authorizer .Token (authorizer.TokenAuthorizerConfig {
5454 AuthToken : require_env (t , "APPSYNC_E2E_LAMBDA_TOKEN" ),
@@ -58,7 +58,7 @@ func TestAppSyncAuthorizers(t *testing.T) {
5858 },
5959 {
6060 name : "cognito" ,
61- namespace : "cognito-e2e" ,
61+ namespace : require_env ( t , "APPSYNC_E2E_NS_COGNITO" ) ,
6262 authz : func (endpoint string ) (authorizer.Authorizer , error ) {
6363 return authorizer .Token (authorizer.TokenAuthorizerConfig {
6464 AuthToken : require_env (t , "APPSYNC_E2E_COGNITO_ID_TOKEN" ),
@@ -68,7 +68,7 @@ func TestAppSyncAuthorizers(t *testing.T) {
6868 },
6969 {
7070 name : "oidc" ,
71- namespace : "oidc-e2e" ,
71+ namespace : require_env ( t , "APPSYNC_E2E_NS_OIDC" ) ,
7272 authz : func (endpoint string ) (authorizer.Authorizer , error ) {
7373 return authorizer .Token (authorizer.TokenAuthorizerConfig {
7474 AuthToken : require_env (t , "APPSYNC_E2E_OIDC_TOKEN" ),
0 commit comments