Skip to content

Commit

Permalink
fix(amplify-provider-awscloudformation): invoke api function from inv…
Browse files Browse the repository at this point in the history
…oker plugin (aws-amplify#8274)

* fix(amplify-provider-awscloudformation): invoke api function from invoker plugin

* fix(graphql-index-transformer): update snapshots for tests

* test(amplify-provider-awscloudformation): fix tests for sandbox helpers
  • Loading branch information
danielleadams committed Oct 13, 2021
1 parent 0b91a50 commit 4ce5a6f
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -779,9 +779,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -794,9 +794,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
}
`;

Expand Down Expand Up @@ -1466,9 +1466,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -1481,9 +1481,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -1496,9 +1496,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
}
`;

Expand Down Expand Up @@ -2324,9 +2324,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -2339,9 +2339,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -2354,9 +2354,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
}
`;

Expand Down Expand Up @@ -3438,9 +3438,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -3453,9 +3453,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -3468,9 +3468,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
}
`;

Expand Down Expand Up @@ -11500,9 +11500,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateBlog.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateBlog.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onCreateContentCategory.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11515,9 +11515,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateContentCategory.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateContentCategory.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onCreateItem.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11530,9 +11530,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateItem.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateItem.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onCreateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11545,9 +11545,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onCreateTodo.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11560,9 +11560,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onCreateTodo.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onCreateTodo.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteBlog.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11575,9 +11575,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteBlog.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteBlog.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteContentCategory.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11590,9 +11590,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteContentCategory.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteContentCategory.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteItem.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11605,9 +11605,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteItem.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteItem.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11620,9 +11620,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onDeleteTodo.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11635,9 +11635,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onDeleteTodo.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onDeleteTodo.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateBlog.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11650,9 +11650,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateBlog.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateBlog.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateItem.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11665,9 +11665,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateItem.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateItem.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTest.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11680,9 +11680,9 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTest.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
"Subscription.onUpdateTodo.postAuth.1.req.vtl": "## [Start] Sandbox Mode Disabled. **
#if( !$ctx.stash.get(\\"hasAuth\\") )
$util.unauthorized()
Expand All @@ -11695,8 +11695,8 @@ $util.toJson({
\\"payload\\": {}
})
## [End] Subscription Request template. **",
"Subscription.onUpdateTodo.res.vtl": "## [Start] Subscription Resonse template. **
"Subscription.onUpdateTodo.res.vtl": "## [Start] Subscription Response template. **
$util.toJson(null)
## [End] Subscription Resonse template. **",
## [End] Subscription Response template. **",
}
`;
Loading

0 comments on commit 4ce5a6f

Please sign in to comment.