Skip to content

Commit 3d2c059

Browse files
committed
e2e changes
1 parent 63fd15f commit 3d2c059

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

site/e2e/helpers.ts

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ import {
3333
AppSharingLevel,
3434
type ExternalAuthProviderResource,
3535
type GraphComplete,
36+
type InitComplete,
3637
type ParseComplete,
38+
type PlanComplete,
3739
type Resource,
3840
Response,
3941
type RichParameter,
@@ -646,6 +648,26 @@ const createTemplateVersionTar = async (
646648
Response.encode(response as Response).finish(),
647649
);
648650
});
651+
responses.init.forEach((response, index) => {
652+
response.init = {
653+
error: "",
654+
...response.parse,
655+
} as InitComplete;
656+
tar.addFile(
657+
`${index}.init.protobuf`,
658+
Response.encode(response as Response).finish(),
659+
);
660+
});
661+
responses.plan.forEach((response, index) => {
662+
response.plan = {
663+
error: "",
664+
...response.plan,
665+
} as PlanComplete;
666+
tar.addFile(
667+
`${index}.init.protobuf`,
668+
Response.encode(response as Response).finish(),
669+
);
670+
});
649671

650672
const fillResource = (resource: RecursivePartial<Resource>) => {
651673
if (resource.agents) {
@@ -908,14 +930,19 @@ ${options}}
908930
}
909931

910932
return {
933+
parse: [
934+
{
935+
parse: {},
936+
},
937+
],
911938
init: [
912939
{
913940
init: {},
914941
},
915942
],
916-
parse: [
943+
plan: [
917944
{
918-
parse: {},
945+
plan: {},
919946
},
920947
],
921948
graph: [

0 commit comments

Comments
 (0)