Commit 6b6d93b
committed
test(golden): regenerate sentinel pins to match real BuildContext output
Five sentinel pins now reflect what real ``sam build`` and
``sam package`` write to disk:
- ``sam_resources/serverless_function_zip/expected.build.yaml`` now
contains ``AWS::Serverless::Function`` (no SAM transform), with
``CodeUri: <<BUILT_ARTIFACT>>`` and a SAM-CLI-added
``Metadata.SamResourceId``. The pre-existing auto-generated
``HelloFunctionRole`` is gone (the SAM transform runs server-side
at deploy time, not at build time).
- ``sam_resources/serverless_function_zip/expected.package.yaml``
preserves the same shape, with ``CodeUri`` rewritten to
``s3://golden-bucket/<sha>``.
- ``packageable_resources/lambda_function_zip/expected.build.yaml``
now carries ``Metadata.SamResourceId`` (added by SAM CLI's stack
provider for raw CFN Lambdas, too).
- ``packageable_resources/lambda_function_zip/expected.package.yaml``
carries the same metadata; ``Code`` becomes the
``{S3Bucket, S3Key}`` dict shape that real ``sam package`` emits.
- ``language_extensions/foreach_static_zip/expected.package.yaml``
digest changes because the package URI is now content-addressed
over the harness's sentinel placeholder file (whose content is the
resource full path) rather than a synthesized hash. ``Fn::ForEach``
preservation is unchanged.1 parent 24b32b2 commit 6b6d93b
5 files changed
Lines changed: 16 additions & 56 deletions
File tree
- tests/golden/templates
- language_extensions/foreach_static_zip
- packageable_resources/lambda_function_zip
- sam_resources/serverless_function_zip
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
Lines changed: 5 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 11 | + | |
| 12 | + | |
Lines changed: 5 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 11 | + | |
| 12 | + | |
0 commit comments