From 698e645b30e871a58c7de68e0ecd6d2ebbdd0009 Mon Sep 17 00:00:00 2001 From: Chris Rybicki Date: Thu, 14 Dec 2023 14:59:14 -0500 Subject: [PATCH] feat(sdk): simulator state (#5164) This PR adds the capability for the Wing simulator to store resource state across compilations. This means if you performed a lot of work to fill a `cloud.Bucket` with objects or values in `cloud.Counter`, it will be remembered when you recompile and reload the application as long as the resource is still in your app. This will be extended to other resources like Queue and Workload in the future. Here's a screen recording - notice how even as the app is updated with new resources or different inflight code, the state of resources doesn't go away. https://github.com/winglang/wing/assets/5008987/a877e0f1-8085-4264-bf32-1ac7c971af4c Notes: - The cloud.TestRunner resource is now only added to a Wing app's construct tree when it is compiled in test mode (with `wing test`). - The Wing Console now runs two copies of the app, one compiled in the default mode, and one compiled with tests. The resource graph only shows the default app, but the tests panel shows a list of all tests from the app compiled with the simulator, and clicking any of the tests will run them with fresh state every time. Future work: - https://github.com/winglang/wing/issues/5197 - https://github.com/winglang/wing/issues/5198 ## Checklist - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [x] Description explains motivation and solution - [x] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*. --- .../app/test/cloud.counter/index.test.ts | 4 +- .../console/server/src/expressServer.ts | 5 + apps/wing-console/console/server/src/index.ts | 20 +- .../console/server/src/router/test.ts | 20 +- .../console/server/src/utils/compiler.ts | 3 + .../console/server/src/utils/createRouter.ts | 1 + .../console/server/src/utils/simulator.ts | 2 +- .../console/ui/src/ui/map-controls.tsx | 20 - apps/wing/src/commands/test/test.test.ts | 11 +- libs/awscdk/src/app.ts | 8 +- .../test/__snapshots__/bucket.test.ts.snap | 40 -- .../test/__snapshots__/counter.test.ts.snap | 35 -- .../__snapshots__/dynamodb-table.test.ts.snap | 10 - .../test/__snapshots__/function.test.ts.snap | 30 -- .../test/__snapshots__/on-deploy.test.ts.snap | 15 - .../test/__snapshots__/queue.test.ts.snap | 20 - .../test/__snapshots__/schedule.test.ts.snap | 15 - .../test/__snapshots__/secret.test.ts.snap | 3 - .../test/__snapshots__/topic.test.ts.snap | 15 - .../test/__snapshots__/website.test.ts.snap | 15 - libs/wingsdk/.eslintrc.json | 1 + libs/wingsdk/.projenrc.ts | 1 + libs/wingsdk/src/core/app.ts | 46 +- libs/wingsdk/src/shared-tf/app.ts | 2 - libs/wingsdk/src/simulator/client.ts | 47 +- libs/wingsdk/src/simulator/serialization.ts | 44 ++ libs/wingsdk/src/simulator/simulator.ts | 80 +++- libs/wingsdk/src/std/test-runner.ts | 64 +++ libs/wingsdk/src/std/test.ts | 10 +- libs/wingsdk/src/target-sim/api.inflight.ts | 154 ++++--- libs/wingsdk/src/target-sim/api.ts | 1 + libs/wingsdk/src/target-sim/app.ts | 12 +- .../wingsdk/src/target-sim/bucket.inflight.ts | 80 ++-- libs/wingsdk/src/target-sim/bucket.ts | 1 + .../src/target-sim/counter.inflight.ts | 19 + libs/wingsdk/src/target-sim/counter.ts | 1 + .../wingsdk/src/target-sim/domain.inflight.ts | 2 + libs/wingsdk/src/target-sim/domain.ts | 1 + .../src/target-sim/dynamodb-table.inflight.ts | 2 + libs/wingsdk/src/target-sim/dynamodb-table.ts | 1 + .../src/target-sim/event-mapping.inflight.ts | 2 + libs/wingsdk/src/target-sim/event-mapping.ts | 1 + .../src/target-sim/function.inflight.ts | 2 + libs/wingsdk/src/target-sim/function.ts | 1 + .../src/target-sim/on-deploy.inflight.ts | 2 + libs/wingsdk/src/target-sim/on-deploy.ts | 1 + libs/wingsdk/src/target-sim/queue.inflight.ts | 68 ++- libs/wingsdk/src/target-sim/queue.ts | 1 + .../src/target-sim/react-app.inflight.ts | 2 + libs/wingsdk/src/target-sim/react-app.ts | 1 + libs/wingsdk/src/target-sim/redis.inflight.ts | 2 + libs/wingsdk/src/target-sim/redis.ts | 1 + .../src/target-sim/schedule.inflight.ts | 2 + libs/wingsdk/src/target-sim/schedule.ts | 1 + .../wingsdk/src/target-sim/secret.inflight.ts | 2 + libs/wingsdk/src/target-sim/secret.ts | 1 + .../src/target-sim/service.inflight.ts | 2 + libs/wingsdk/src/target-sim/service.ts | 1 + libs/wingsdk/src/target-sim/state.inflight.ts | 2 + libs/wingsdk/src/target-sim/state.ts | 1 + libs/wingsdk/src/target-sim/table.inflight.ts | 2 + libs/wingsdk/src/target-sim/table.ts | 1 + .../src/target-sim/test-runner.inflight.ts | 2 + libs/wingsdk/src/target-sim/test-runner.ts | 1 + libs/wingsdk/src/target-sim/topic.inflight.ts | 2 + libs/wingsdk/src/target-sim/topic.ts | 1 + .../src/target-sim/website.inflight.ts | 2 + libs/wingsdk/src/target-sim/website.ts | 1 + libs/wingsdk/src/target-tf-aws/app.ts | 8 +- libs/wingsdk/src/target-tf-azure/app.ts | 19 +- libs/wingsdk/src/target-tf-gcp/app.ts | 19 +- .../__snapshots__/connections.test.ts.snap | 23 +- libs/wingsdk/test/sim-app.ts | 22 +- .../__snapshots__/simulator.test.ts.snap | 28 +- libs/wingsdk/test/simulator/on-trace.test.ts | 2 +- libs/wingsdk/test/simulator/simulator.test.ts | 65 ++- .../target-sim/__snapshots__/api.test.ts.snap | 412 +++--------------- .../__snapshots__/bucket.test.ts.snap | 126 +----- .../__snapshots__/counter.test.ts.snap | 166 +------ .../__snapshots__/dynamodb-table.test.ts.snap | 94 +--- .../__snapshots__/file-counter.test.ts.snap | 26 +- .../__snapshots__/function.test.ts.snap | 143 +----- .../immutable-capture.test.ts.snap | 383 ++-------------- .../__snapshots__/on-deploy.test.ts.snap | 25 +- .../__snapshots__/queue.test.ts.snap | 178 +------- .../__snapshots__/redis.test.ts.snap | 22 +- .../__snapshots__/schedule.test.ts.snap | 94 +--- .../__snapshots__/secret.test.ts.snap | 22 +- .../__snapshots__/service.test.ts.snap | 22 +- .../__snapshots__/table.test.ts.snap | 166 +------ .../__snapshots__/test.test.ts.snap | 44 +- .../__snapshots__/topic-producer.test.ts.snap | 4 +- .../__snapshots__/topic.test.ts.snap | 34 +- libs/wingsdk/test/target-sim/api.test.ts | 1 + libs/wingsdk/test/target-sim/app.test.ts | 61 ++- libs/wingsdk/test/target-sim/bucket.test.ts | 42 +- libs/wingsdk/test/target-sim/counter.test.ts | 31 ++ .../test/target-sim/dynamodb-table.test.ts | 4 + libs/wingsdk/test/target-sim/function.test.ts | 5 +- .../wingsdk/test/target-sim/on-deploy.test.ts | 1 + libs/wingsdk/test/target-sim/queue.test.ts | 55 ++- libs/wingsdk/test/target-sim/redis.test.ts | 1 + libs/wingsdk/test/target-sim/schedule.test.ts | 3 + libs/wingsdk/test/target-sim/secret.test.ts | 1 + libs/wingsdk/test/target-sim/service.test.ts | 3 + libs/wingsdk/test/target-sim/table.test.ts | 7 + libs/wingsdk/test/target-sim/test.test.ts | 17 +- libs/wingsdk/test/target-sim/topic.test.ts | 3 +- libs/wingsdk/test/target-sim/website.test.ts | 2 + .../__snapshots__/bucket.test.ts.snap | 280 ------------ .../__snapshots__/captures.test.ts.snap | 20 - .../__snapshots__/counter.test.ts.snap | 229 ---------- .../__snapshots__/domain.test.ts.snap | 112 ----- .../__snapshots__/dynamodb-table.test.ts.snap | 33 -- .../__snapshots__/function.test.ts.snap | 224 ---------- .../__snapshots__/logger.test.ts.snap | 5 - .../__snapshots__/on-deploy.test.ts.snap | 84 ---- .../__snapshots__/queue.test.ts.snap | 168 ------- .../__snapshots__/react-app.test.ts.snap | 56 --- .../__snapshots__/redis.test.ts.snap | 5 - .../__snapshots__/schedule.test.ts.snap | 84 ---- .../__snapshots__/secret.test.ts.snap | 31 -- .../__snapshots__/table.test.ts.snap | 33 -- .../__snapshots__/tokens.test.ts.snap | 17 +- .../__snapshots__/topic.test.ts.snap | 112 ----- .../__snapshots__/website.test.ts.snap | 84 ---- .../__snapshots__/bucket.test.ts.snap | 168 ------- .../__snapshots__/function.test.ts.snap | 84 ---- .../__snapshots__/bucket.test.ts.snap | 140 ------ .../__snapshots__/function.test.ts.snap | 112 ----- .../__snapshots__/table.test.ts.snap | 5 - .../test/ui/__snapshots__/ui.test.ts.snap | 2 - libs/wingsdk/test/util.ts | 5 +- tools/hangar/__snapshots__/platform.ts.snap | 90 +--- .../api/404.test.w_compile_tf-aws.md | 15 +- .../api/aws-api.test.w_compile_tf-aws.md | 15 +- .../api/cors.test.w_compile_tf-aws.md | 15 +- .../api/delete.test.w_compile_tf-aws.md | 15 +- .../api/get.test.w_compile_tf-aws.md | 15 +- .../api/options.test.w_compile_tf-aws.md | 15 +- .../api/patch.test.w_compile_tf-aws.md | 15 +- .../api/path_vars.test.w_compile_tf-aws.md | 15 +- .../api/post.test.w_compile_tf-aws.md | 15 +- .../api/put.test.w_compile_tf-aws.md | 15 +- .../bucket/add_file.test.w_compile_tf-aws.md | 15 +- .../add_object.test.w_compile_tf-aws.md | 15 +- .../aws-bucket.test.w_compile_tf-aws.md | 15 +- .../bucket_list.test.w_compile_tf-aws.md | 15 +- .../bucket/copy.test.w_compile_tf-aws.md | 15 +- .../bucket/delete.test.w_compile_tf-aws.md | 15 +- .../bucket/events.test.w_compile_tf-aws.md | 15 +- .../bucket/exists.test.w_compile_tf-aws.md | 15 +- .../bucket/load_test.test.w_compile_tf-aws.md | 15 +- .../bucket/metadata.test.w_compile_tf-aws.md | 15 +- .../public_url.test.w_compile_tf-aws.md | 15 +- .../bucket/put.test.w_compile_tf-aws.md | 15 +- .../bucket/put_json.test.w_compile_tf-aws.md | 15 +- .../signed_url.test.w_compile_tf-aws.md | 15 +- .../try_delete.test.w_compile_tf-aws.md | 15 +- .../bucket/try_get.test.w_compile_tf-aws.md | 15 +- .../try_get_json.test.w_compile_tf-aws.md | 15 +- .../aws-counter.test.w_compile_tf-aws.md | 15 +- .../counter/dec.test.w_compile_tf-aws.md | 15 +- .../counter/inc.test.w_compile_tf-aws.md | 15 +- .../counter/initial.test.w_compile_tf-aws.md | 15 +- .../counter/peek.test.w_compile_tf-aws.md | 15 +- .../counter/set.test.w_compile_tf-aws.md | 15 +- .../aws-dynamodb.test.w_compile_tf-aws.md | 15 +- .../query.test.w_compile_tf-aws.md | 15 +- .../transaction.test.w_compile_tf-aws.md | 15 +- .../expect/assert.test.w_compile_tf-aws.md | 15 +- .../fs/basic.test.w_compile_tf-aws.md | 15 +- .../fs/directory.test.w_compile_tf-aws.md | 15 +- .../fs/json.test.w_compile_tf-aws.md | 15 +- .../fs/options.test.w_compile_tf-aws.md | 15 +- .../fs/path.test.w_compile_tf-aws.md | 15 +- .../fs/stat.test.w_compile_tf-aws.md | 15 +- .../fs/temp_dir.test.w_compile_tf-aws.md | 15 +- .../fs/yaml.test.w_compile_tf-aws.md | 15 +- .../aws-function.test.w_compile_tf-aws.md | 15 +- .../function/env.test.w_compile_tf-aws.md | 15 +- .../function/invoke.test.w_compile_tf-aws.md | 15 +- .../function/logging.test.w_compile_tf-aws.md | 15 +- .../memory_and_env.test.w_compile_tf-aws.md | 15 +- .../http/url.test.w_compile_tf-aws.md | 15 +- .../math/abs.test.w_compile_tf-aws.md | 15 +- .../math/acos.test.w_compile_tf-aws.md | 15 +- .../math/acot.test.w_compile_tf-aws.md | 15 +- .../math/acsc.test.w_compile_tf-aws.md | 15 +- ...ngular_conversion.test.w_compile_tf-aws.md | 15 +- .../math/asec.test.w_compile_tf-aws.md | 15 +- .../math/asin.test.w_compile_tf-aws.md | 15 +- .../math/atan.test.w_compile_tf-aws.md | 15 +- .../math/atan2.test.w_compile_tf-aws.md | 15 +- .../combinations.test.w_compile_tf-aws.md | 15 +- .../math/cos.test.w_compile_tf-aws.md | 15 +- .../math/cot.test.w_compile_tf-aws.md | 15 +- .../math/csc.test.w_compile_tf-aws.md | 15 +- .../math/euler.test.w_compile_tf-aws.md | 15 +- .../math/factorial.test.w_compile_tf-aws.md | 15 +- .../math/fibonacci.test.w_compile_tf-aws.md | 15 +- .../floor_ceil_round.test.w_compile_tf-aws.md | 15 +- .../math/hypot.test.w_compile_tf-aws.md | 15 +- .../median_mode_mean.test.w_compile_tf-aws.md | 15 +- .../math/min_max.test.w_compile_tf-aws.md | 15 +- .../math/pi.test.w_compile_tf-aws.md | 15 +- .../math/prime.test.w_compile_tf-aws.md | 15 +- .../math/random.test.w_compile_tf-aws.md | 15 +- .../math/sec.test.w_compile_tf-aws.md | 15 +- .../math/sin.test.w_compile_tf-aws.md | 15 +- .../math/sqrt.test.w_compile_tf-aws.md | 15 +- .../math/tan.test.w_compile_tf-aws.md | 15 +- .../math/tau.test.w_compile_tf-aws.md | 15 +- .../empty-actions.test.w_compile_tf-aws.md | 15 +- .../execute_after.test.w_compile_tf-aws.md | 15 +- .../queue/aws-queue.test.w_compile_tf-aws.md | 15 +- .../queue/pop.test.w_compile_tf-aws.md | 15 +- .../queue/purge.test.w_compile_tf-aws.md | 15 +- .../queue/push.test.w_compile_tf-aws.md | 15 +- .../retention_period.main.w_compile_tf-aws.md | 15 +- .../set_consumer.test.w_compile_tf-aws.md | 15 +- .../regex/match.test.w_compile_tf-aws.md | 15 +- .../schedule/on_tick.test.w_compile_tf-aws.md | 15 +- .../callbacks.test.w_compile_tf-aws.md | 15 +- .../http-server.test.w_compile_tf-aws.md | 15 +- .../service/minimal.test.w_compile_tf-aws.md | 15 +- .../service/stateful.test.w_compile_tf-aws.md | 15 +- .../service/tokens.test.w_compile_tf-aws.md | 15 +- .../state/get.test.w_compile_tf-aws.md | 15 +- .../state/set.test.w_compile_tf-aws.md | 15 +- .../std/array.test.w_compile_tf-aws.md | 15 +- .../std/bool.test.w_compile_tf-aws.md | 15 +- .../std/datetime.test.w_compile_tf-aws.md | 15 +- .../std/duration.test.w_compile_tf-aws.md | 15 +- .../std/json.test.w_compile_tf-aws.md | 15 +- .../std/map.test.w_compile_tf-aws.md | 15 +- .../std/node.test.w_compile_tf-aws.md | 15 +- .../std/number.test.w_compile_tf-aws.md | 15 +- .../std/range.test.w_compile_tf-aws.md | 15 +- .../std/set.test.w_compile_tf-aws.md | 15 +- .../std/string.test.w_compile_tf-aws.md | 15 +- .../std/struct.test.w_compile_tf-aws.md | 15 +- .../table/add_row.test.w_compile_tf-aws.md | 15 +- .../table/aws-table.test.w_compile_tf-aws.md | 15 +- .../table/get.test.w_compile_tf-aws.md | 15 +- .../table/list.test.w_compile_tf-aws.md | 15 +- .../table/try_get.test.w_compile_tf-aws.md | 15 +- .../table/upsert.test.w_compile_tf-aws.md | 15 +- .../topic/aws-topic.test.w_compile_tf-aws.md | 15 +- .../no_blocking.test.w_compile_tf-aws.md | 15 +- .../topic/on_message.test.w_compile_tf-aws.md | 15 +- .../ui/section.test.w_compile_tf-aws.md | 15 +- .../util/base64.test.w_compile_tf-aws.md | 15 +- .../util/env.test.w_compile_tf-aws.md | 15 +- .../util/nanoid.test.w_compile_tf-aws.md | 15 +- .../util/sha256.test.w_compile_tf-aws.md | 15 +- .../util/sleep.test.w_compile_tf-aws.md | 15 +- .../util/uuidv4.test.w_compile_tf-aws.md | 15 +- .../util/wait-until.test.w_compile_tf-aws.md | 15 +- .../aws-react-app.test.w_compile_tf-aws.md | 15 +- .../aws-website.test.w_compile_tf-aws.md | 15 +- .../react-app.test.w_compile_tf-aws.md | 15 +- .../two_websites.test.w_compile_tf-aws.md | 15 +- .../website/website.test.w_compile_tf-aws.md | 15 +- .../anon_function.test.w_compile_tf-aws.md | 15 +- .../valid/api.test.w_compile_tf-aws.md | 17 +- .../api_cors_custom.test.w_compile_tf-aws.md | 15 +- .../api_cors_default.test.w_compile_tf-aws.md | 15 +- .../api_valid_path.test.w_compile_tf-aws.md | 15 +- .../valid/assert.test.w_compile_tf-aws.md | 15 +- ...wait_in_functions.test.w_compile_tf-aws.md | 15 +- .../bring_alias.test.w_compile_tf-aws.md | 15 +- .../bring_awscdk.test.w_compile_tf-aws.md | 15 +- .../bring_cdk8s.test.w_compile_tf-aws.md | 15 +- .../bring_cdktf.test.w_compile_tf-aws.md | 15 +- .../valid/bring_jsii.test.w_compile_tf-aws.md | 15 +- .../bring_local.test.w_compile_tf-aws.md | 15 +- .../bring_local_dir.test.w_compile_tf-aws.md | 15 +- ...cal_normalization.test.w_compile_tf-aws.md | 15 +- .../bring_projen.test.w_compile_tf-aws.md | 15 +- ...ring_wing_library.test.w_compile_tf-aws.md | 15 +- .../bucket_keys.test.w_compile_tf-aws.md | 15 +- ..._static_of_myself.test.w_compile_tf-aws.md | 15 +- ...inflight_variants.test.w_compile_tf-aws.md | 15 +- ...apture_containers.test.w_compile_tf-aws.md | 15 +- ...capture_in_binary.test.w_compile_tf-aws.md | 15 +- .../capture_mutables.test.w_compile_tf-aws.md | 15 +- ...apture_primitives.test.w_compile_tf-aws.md | 15 +- ...gable_class_field.test.w_compile_tf-aws.md | 15 +- ...ture_reassignable.test.w_compile_tf-aws.md | 15 +- ...resource_and_data.test.w_compile_tf-aws.md | 15 +- ..._with_no_inflight.test.w_compile_tf-aws.md | 15 +- .../capture_tokens.test.w_compile_tf-aws.md | 15 +- .../valid/captures.test.w_compile_tf-aws.md | 15 +- .../valid/casting.test.w_compile_tf-aws.md | 15 +- .../valid/class.test.w_compile_tf-aws.md | 15 +- .../closure_class.test.w_compile_tf-aws.md | 15 +- .../construct-base.test.w_compile_tf-aws.md | 15 +- .../container_types.test.w_compile_tf-aws.md | 15 +- .../custom_obj_id.test.w_compile_tf-aws.md | 15 +- .../valid/debug_env.test.w_compile_tf-aws.md | 15 +- .../deep_equality.test.w_compile_tf-aws.md | 15 +- .../double_reference.test.w_compile_tf-aws.md | 15 +- .../valid/doubler.test.w_compile_tf-aws.md | 15 +- .../valid/enums.test.w_compile_tf-aws.md | 15 +- ..._binary_operators.test.w_compile_tf-aws.md | 15 +- ...ing_interpolation.test.w_compile_tf-aws.md | 15 +- ...rn_implementation.test.w_compile_tf-aws.md | 15 +- .../file_counter.test.w_compile_tf-aws.md | 15 +- .../valid/for_loop.test.w_compile_tf-aws.md | 15 +- .../forward_decl.test.w_compile_tf-aws.md | 15 +- ..._returns_function.test.w_compile_tf-aws.md | 15 +- .../function_type.test.w_compile_tf-aws.md | 15 +- ...ariadic_arguments.test.w_compile_tf-aws.md | 15 +- .../valid/hello.test.w_compile_tf-aws.md | 15 +- ...entical_inflights.test.w_compile_tf-aws.md | 15 +- .../impl_interface.test.w_compile_tf-aws.md | 15 +- .../implicit_std.test.w_compile_tf-aws.md | 15 +- ...n_scope_construct.test.w_compile_tf-aws.md | 15 +- .../valid/inference.test.w_compile_tf-aws.md | 15 +- ...light-subscribers.test.w_compile_tf-aws.md | 15 +- ...ht_capture_static.test.w_compile_tf-aws.md | 15 +- ...as_struct_members.test.w_compile_tf-aws.md | 15 +- ...ass_capture_const.test.w_compile_tf-aws.md | 15 +- ..._preflight_object.test.w_compile_tf-aws.md | 15 +- ...class_definitions.test.w_compile_tf-aws.md | 15 +- ...r_capture_mutable.test.w_compile_tf-aws.md | 15 +- ..._inflight_closure.test.w_compile_tf-aws.md | 15 +- ...t_class_modifiers.test.w_compile_tf-aws.md | 15 +- ..._inflight_closure.test.w_compile_tf-aws.md | 15 +- ..._interace_handler.test.w_compile_tf-aws.md | 15 +- ...lass_without_init.test.w_compile_tf-aws.md | 15 +- ...preflight_closure.test.w_compile_tf-aws.md | 15 +- .../inflight_concat.test.w_compile_tf-aws.md | 15 +- .../inflight_init.test.w_compile_tf-aws.md | 15 +- ...calling_inflights.test.w_compile_tf-aws.md | 15 +- ...erit_stdlib_class.test.w_compile_tf-aws.md | 15 +- ...ce_class_inflight.test.w_compile_tf-aws.md | 15 +- ...e_class_preflight.test.w_compile_tf-aws.md | 15 +- ...ritance_interface.test.w_compile_tf-aws.md | 15 +- .../valid/interface.test.w_compile_tf-aws.md | 15 +- .../valid/issue_2889.test.w_compile_tf-aws.md | 15 +- .../valid/json.test.w_compile_tf-aws.md | 15 +- .../json_bucket.test.w_compile_tf-aws.md | 15 +- .../json_static.test.w_compile_tf-aws.md | 15 +- ...ing_interpolation.test.w_compile_tf-aws.md | 15 +- ...ft_expr_with_this.test.w_compile_tf-aws.md | 15 +- ...lift_redefinition.test.w_compile_tf-aws.md | 15 +- .../valid/lift_this.test.w_compile_tf-aws.md | 15 +- .../lift_via_closure.test.w_compile_tf-aws.md | 15 +- ..._closure_explicit.test.w_compile_tf-aws.md | 15 +- ...t_container_types.test.w_compile_tf-aws.md | 15 +- .../new_in_static.test.w_compile_tf-aws.md | 15 +- .../valid/new_jsii.test.w_compile_tf-aws.md | 15 +- .../valid/nil.test.w_compile_tf-aws.md | 15 +- .../valid/optionals.test.w_compile_tf-aws.md | 15 +- ...primitive_methods.test.w_compile_tf-aws.md | 15 +- .../valid/print.test.w_compile_tf-aws.md | 15 +- .../reassignment.test.w_compile_tf-aws.md | 15 +- .../valid/redis.test.w_compile_tf-aws.md | 15 +- .../valid/resource.test.w_compile_tf-aws.md | 15 +- .../valid/resource.test.w_test_sim.md | 13 + ..._inflight_literal.test.w_compile_tf-aws.md | 15 +- ...ource_call_static.test.w_compile_tf-aws.md | 15 +- ...resource_captures.test.w_compile_tf-aws.md | 15 +- ..._captures_globals.test.w_compile_tf-aws.md | 15 +- .../valid/service.test.w_compile_tf-aws.md | 15 +- .../valid/shadowing.test.w_compile_tf-aws.md | 15 +- .../statements_if.test.w_compile_tf-aws.md | 15 +- ...able_declarations.test.w_compile_tf-aws.md | 15 +- .../static_members.test.w_compile_tf-aws.md | 15 +- .../std_containers.test.w_compile_tf-aws.md | 15 +- .../valid/std_string.test.w_compile_tf-aws.md | 15 +- .../struct_from_json.test.w_compile_tf-aws.md | 15 +- .../valid/structs.test.w_compile_tf-aws.md | 15 +- .../valid/super_call.test.w_compile_tf-aws.md | 15 +- .../symbol_shadow.test.w_compile_tf-aws.md | 15 +- .../valid/table.test.w_compile_tf-aws.md | 15 +- .../test_bucket.test.w_compile_tf-aws.md | 15 +- ...est_without_bring.test.w_compile_tf-aws.md | 15 +- .../valid/try_catch.test.w_compile_tf-aws.md | 15 +- ...side_init_closure.test.w_compile_tf-aws.md | 15 +- .../website_with_api.test.w_compile_tf-aws.md | 15 +- .../valid/while.test.w_compile_tf-aws.md | 15 +- .../while_loop_await.test.w_compile_tf-aws.md | 15 +- tools/hangar/__snapshots__/tree_json.ts.snap | 25 +- 386 files changed, 1251 insertions(+), 8075 deletions(-) create mode 100644 libs/wingsdk/src/simulator/serialization.ts diff --git a/apps/wing-console/console/app/test/cloud.counter/index.test.ts b/apps/wing-console/console/app/test/cloud.counter/index.test.ts index 22d7dcfc8de..8bb3057838c 100644 --- a/apps/wing-console/console/app/test/cloud.counter/index.test.ts +++ b/apps/wing-console/console/app/test/cloud.counter/index.test.ts @@ -21,11 +21,11 @@ describe(`${__dirname}/main.w`, () => { const currentValue = page.getByTestId("cloud.counter:current-value"); - await expect(currentValue).toHaveValue("0"); + await expect(currentValue).toHaveValue("1"); await page.getByTestId("cloud.counter:decrease").click(); - await expect(currentValue).toHaveValue("-1"); + await expect(currentValue).toHaveValue("0"); }); test("resets counter", async ({ page }) => { diff --git a/apps/wing-console/console/server/src/expressServer.ts b/apps/wing-console/console/server/src/expressServer.ts index 78c9d169d14..85d1b1a9ddd 100644 --- a/apps/wing-console/console/server/src/expressServer.ts +++ b/apps/wing-console/console/server/src/expressServer.ts @@ -23,6 +23,7 @@ import type { LogInterface } from "./utils/LogInterface.js"; export interface CreateExpressServerOptions { simulatorInstance(): Promise; + testSimulatorInstance(): Promise; consoleLogger: ConsoleLogger; errorMessage(): string | undefined; emitter: Emittery<{ @@ -47,6 +48,7 @@ export interface CreateExpressServerOptions { export const createExpressServer = async ({ simulatorInstance, + testSimulatorInstance, consoleLogger, errorMessage, emitter, @@ -74,6 +76,9 @@ export const createExpressServer = async ({ async simulator() { return await simulatorInstance(); }, + async testSimulator() { + return await testSimulatorInstance(); + }, async appDetails() { return { wingVersion: await getWingVersion(), diff --git a/apps/wing-console/console/server/src/index.ts b/apps/wing-console/console/server/src/index.ts index 610707224d1..87573777e3d 100644 --- a/apps/wing-console/console/server/src/index.ts +++ b/apps/wing-console/console/server/src/index.ts @@ -1,3 +1,7 @@ +import { mkdtempSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; + import type { inferRouterInputs } from "@trpc/server"; import { prettyPrintError } from "@winglang/sdk/lib/util/enhanced-error.js"; import Emittery from "emittery"; @@ -107,7 +111,7 @@ export const createConsoleServer = async ({ log, }); - const compiler = createCompiler({ wingfile, platform }); + const compiler = createCompiler({ wingfile, platform, testing: false }); let isStarting = false; let isStopping = false; @@ -122,6 +126,16 @@ export const createConsoleServer = async ({ } }); + const testCompiler = createCompiler({ + wingfile, + platform, + testing: true, + }); + const testSimulator = createSimulator(); + testCompiler.on("compiled", ({ simfile }) => { + testSimulator.start(simfile); + }); + let lastErrorMessage = ""; let selectedNode = ""; let tests: TestItem[] = []; @@ -221,6 +235,10 @@ export const createConsoleServer = async ({ const { server, port } = await createExpressServer({ consoleLogger, + testSimulatorInstance() { + const statedir = mkdtempSync(join(tmpdir(), "wing-console-test-")); + return testSimulator.instance(statedir); + }, simulatorInstance() { return simulator.instance(); }, diff --git a/apps/wing-console/console/server/src/router/test.ts b/apps/wing-console/console/server/src/router/test.ts index 45d99378c8c..4dd70027255 100644 --- a/apps/wing-console/console/server/src/router/test.ts +++ b/apps/wing-console/console/server/src/router/test.ts @@ -17,16 +17,18 @@ const listTests = (simulator: Simulator): Promise => { return testRunner.listTests(); }; +const reloadSimulator = async (simulator: Simulator, logger: ConsoleLogger) => { + logger.verbose("Reloading simulator...", "console", { + messageType: "info", + }); + await simulator.reload(true); +}; + const runTest = async ( simulator: Simulator, resourcePath: string, logger: ConsoleLogger, ): Promise => { - logger.log("Reloading simulator...", "console", { - messageType: "info", - }); - await simulator.reload(); - const client = simulator.getResource( "root/cloud.TestRunner", ) as ITestRunnerClient; @@ -80,7 +82,7 @@ export interface InternalTestResult extends TestResult { export const createTestRouter = () => { return createRouter({ "test.list": createProcedure.query(async ({ input, ctx }) => { - const simulator = await ctx.simulator(); + const simulator = await ctx.testSimulator(); const list = await listTests(simulator); const testsState = ctx.testsStateManager(); @@ -103,8 +105,9 @@ export const createTestRouter = () => { }), ) .mutation(async ({ input, ctx }) => { + await reloadSimulator(await ctx.testSimulator(), ctx.logger); const response = await runTest( - await ctx.simulator(), + await ctx.testSimulator(), input.resourcePath, ctx.logger, ); @@ -120,7 +123,8 @@ export const createTestRouter = () => { return response; }), "test.runAll": createProcedure.mutation(async ({ ctx }) => { - const simulator = await ctx.simulator(); + const simulator = await ctx.testSimulator(); + await reloadSimulator(simulator, ctx.logger); const testsState = ctx.testsStateManager(); const testList = await listTests(simulator); diff --git a/apps/wing-console/console/server/src/utils/compiler.ts b/apps/wing-console/console/server/src/utils/compiler.ts index 3df90af5c54..f547e5088ef 100644 --- a/apps/wing-console/console/server/src/utils/compiler.ts +++ b/apps/wing-console/console/server/src/utils/compiler.ts @@ -24,11 +24,13 @@ export interface Compiler { export interface CreateCompilerProps { wingfile: string; platform?: string[]; + testing?: boolean; } export const createCompiler = ({ wingfile, platform = [wing.BuiltinPlatform.SIM], + testing = false, }: CreateCompilerProps): Compiler => { const events = new Emittery(); let isCompiling = false; @@ -44,6 +46,7 @@ export const createCompiler = ({ await events.emit("compiling"); const simfile = await wing.compile(wingfile, { platform, + testing, }); await events.emit("compiled", { simfile }); } catch (error) { diff --git a/apps/wing-console/console/server/src/utils/createRouter.ts b/apps/wing-console/console/server/src/utils/createRouter.ts index b0f48b99846..c87432aa320 100644 --- a/apps/wing-console/console/server/src/utils/createRouter.ts +++ b/apps/wing-console/console/server/src/utils/createRouter.ts @@ -76,6 +76,7 @@ export interface FileLink { export interface RouterContext { simulator(): Promise; + testSimulator(): Promise; appDetails(): Promise<{ wingVersion: string | undefined; }>; diff --git a/apps/wing-console/console/server/src/utils/simulator.ts b/apps/wing-console/console/server/src/utils/simulator.ts index fa98c7a8fca..29273383483 100644 --- a/apps/wing-console/console/server/src/utils/simulator.ts +++ b/apps/wing-console/console/server/src/utils/simulator.ts @@ -14,7 +14,7 @@ export interface SimulatorEvents { } export interface Simulator { - instance(): Promise; + instance(statedir?: string): Promise; start(simfile: string): Promise; stop(): Promise; on( diff --git a/apps/wing-console/console/ui/src/ui/map-controls.tsx b/apps/wing-console/console/ui/src/ui/map-controls.tsx index 2b909f5325d..24506379d82 100644 --- a/apps/wing-console/console/ui/src/ui/map-controls.tsx +++ b/apps/wing-console/console/ui/src/ui/map-controls.tsx @@ -36,26 +36,6 @@ export const MapControls = ({}: MapControlsProps) => { - - {testsExists && ( -
- setShowTests(!showTests)} - > -
- {showTests ? ( - - ) : ( - - )} - - {showTests ? "Hide tests" : "Show tests"} - -
-
-
- )} diff --git a/apps/wing/src/commands/test/test.test.ts b/apps/wing/src/commands/test/test.test.ts index b5b21d9ab4d..8d0f6f9587d 100644 --- a/apps/wing/src/commands/test/test.test.ts +++ b/apps/wing/src/commands/test/test.test.ts @@ -122,19 +122,16 @@ describe("wing test (no options)", () => { describe("output-file option", () => { let writeResultsSpy: SpyInstance; - let writeFileSpy: SpyInstance; beforeEach(() => { chalk.level = 0; writeResultsSpy = vi.spyOn(resultsFn, "writeResultsToFile"); - writeFileSpy = vi.spyOn(fsPromises, "writeFile"); }); afterEach(() => { chalk.level = defaultChalkLevel; process.chdir(cwd); writeResultsSpy.mockRestore(); - writeFileSpy.mockRestore(); }); test("wing test with output file calls writeResultsToFile", async () => { @@ -158,10 +155,10 @@ describe("output-file option", () => { expect(testName).toBe("test.test.w"); expect(writeResultsSpy.mock.calls[0][2]).toBe(outputFile); - expect(writeFileSpy).toBeCalledTimes(2); - const [filePath, output] = writeFileSpy.mock.calls[1]; - expect(filePath).toBe("out.json"); - expect(JSON.parse(output as string)).toMatchObject(OUTPUT_FILE); + const outputFileExists = fs.existsSync(outputFile); + expect(outputFileExists).toBe(true); + const outputContents = fs.readFileSync(outputFile, "utf-8"); + expect(JSON.parse(outputContents)).toMatchObject(OUTPUT_FILE); }); test("wing test without output file calls writeResultsToFile", async () => { diff --git a/libs/awscdk/src/app.ts b/libs/awscdk/src/app.ts index c7364221535..6703740ac92 100644 --- a/libs/awscdk/src/app.ts +++ b/libs/awscdk/src/app.ts @@ -61,11 +61,6 @@ export class App extends core.App { private synthedOutput: string | undefined; private synthHooks?: core.SynthHooks; - /** - * The test runner for this app. - */ - protected readonly testRunner: TestRunner; - constructor(props: CdkAppProps) { let stackName = props.stackName ?? process.env.CDK_STACK_NAME; if (stackName === undefined) { @@ -113,9 +108,8 @@ export class App extends core.App { this.synthed = false; this.isTestEnvironment = props.isTestEnvironment ?? false; registerTokenResolver(new CdkTokens()); - this.testRunner = new TestRunner(this, "cloud.TestRunner"); - this.synthRoots(props, this.testRunner); + TestRunner._createTree(this, props.rootConstruct); } /** diff --git a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap index 365c61628b6..62d48f36708 100644 --- a/libs/awscdk/test/__snapshots__/bucket.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/bucket.test.ts.snap @@ -2,11 +2,6 @@ exports[`bucket is public 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -104,11 +99,6 @@ exports[`bucket is public 1`] = ` exports[`bucket with onCreate method 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -561,11 +551,6 @@ def submit_response(event: dict, context, response_status: str, error_message: s exports[`bucket with onDelete method 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -1018,11 +1003,6 @@ def submit_response(event: dict, context, response_status: str, error_message: s exports[`bucket with onEvent method 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -1497,11 +1477,6 @@ def submit_response(event: dict, context, response_status: str, error_message: s exports[`bucket with onUpdate method 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -1954,11 +1929,6 @@ def submit_response(event: dict, context, response_status: str, error_message: s exports[`bucket with two preflight files 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -2266,11 +2236,6 @@ exports[`bucket with two preflight files 1`] = ` exports[`bucket with two preflight objects 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -2578,11 +2543,6 @@ exports[`bucket with two preflight objects 1`] = ` exports[`create a bucket 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/counter.test.ts.snap b/libs/awscdk/test/__snapshots__/counter.test.ts.snap index 5b3c85e5818..a6397766414 100644 --- a/libs/awscdk/test/__snapshots__/counter.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/counter.test.ts.snap @@ -2,11 +2,6 @@ exports[`counter with initial value 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -86,11 +81,6 @@ my_counter: new (require(\\"[REDACTED]/awscdk/src/counter.inflight\\")).CounterC exports[`dec() policy statement 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -346,11 +336,6 @@ exports[`dec() policy statement 2`] = ` exports[`default counter behavior 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -430,11 +415,6 @@ my_counter: new (require(\\"[REDACTED]/awscdk/src/counter.inflight\\")).CounterC exports[`function with a counter binding 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -708,11 +688,6 @@ my_counter: new (require(\\"[REDACTED]/awscdk/src/counter.inflight\\")).CounterC exports[`inc() policy statement 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -986,11 +961,6 @@ my_counter: new (require(\\"[REDACTED]/awscdk/src/counter.inflight\\")).CounterC exports[`peek() policy statement 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -1264,11 +1234,6 @@ my_counter: new (require(\\"[REDACTED]/awscdk/src/counter.inflight\\")).CounterC exports[`set() policy statement 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/dynamodb-table.test.ts.snap b/libs/awscdk/test/__snapshots__/dynamodb-table.test.ts.snap index 9ec59955f8b..0877413c914 100644 --- a/libs/awscdk/test/__snapshots__/dynamodb-table.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/dynamodb-table.test.ts.snap @@ -2,11 +2,6 @@ exports[`default dynamodb table behavior 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -69,11 +64,6 @@ exports[`default dynamodb table behavior 1`] = ` exports[`function with a table binding 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/function.test.ts.snap b/libs/awscdk/test/__snapshots__/function.test.ts.snap index f7005999030..55b17051119 100644 --- a/libs/awscdk/test/__snapshots__/function.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/function.test.ts.snap @@ -2,11 +2,6 @@ exports[`basic function 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -208,11 +203,6 @@ exports[`basic function 1`] = ` exports[`basic function with custom log retention 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -414,11 +404,6 @@ exports[`basic function with custom log retention 1`] = ` exports[`basic function with environment variables 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -626,11 +611,6 @@ exports[`basic function with environment variables 1`] = ` exports[`basic function with infinite log retention 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -730,11 +710,6 @@ exports[`basic function with infinite log retention 1`] = ` exports[`basic function with memory size specified 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -936,11 +911,6 @@ exports[`basic function with memory size specified 1`] = ` exports[`basic function with timeout explicitly set 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap b/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap index b9eb11f5e3e..72bebb1b96c 100644 --- a/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/on-deploy.test.ts.snap @@ -2,11 +2,6 @@ exports[`create an OnDeploy 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -313,11 +308,6 @@ exports[`create an OnDeploy 1`] = ` exports[`execute OnDeploy after other resources 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -649,11 +639,6 @@ exports[`execute OnDeploy after other resources 1`] = ` exports[`execute OnDeploy before other resources 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/queue.test.ts.snap b/libs/awscdk/test/__snapshots__/queue.test.ts.snap index 241ed6ef091..a1bee2cf88a 100644 --- a/libs/awscdk/test/__snapshots__/queue.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/queue.test.ts.snap @@ -2,11 +2,6 @@ exports[`default queue behavior 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -59,11 +54,6 @@ exports[`queue with a consumer function 1`] = `"new (require(\\"[REDACTED]/awscd exports[`queue with a consumer function 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -322,11 +312,6 @@ exports[`queue with a consumer function 2`] = ` exports[`queue with custom retention 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -377,11 +362,6 @@ exports[`queue with custom retention 1`] = ` exports[`queue with custom timeout 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/schedule.test.ts.snap b/libs/awscdk/test/__snapshots__/schedule.test.ts.snap index 529f094af83..8e990e063d6 100644 --- a/libs/awscdk/test/__snapshots__/schedule.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/schedule.test.ts.snap @@ -2,11 +2,6 @@ exports[`schedule behavior with cron 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -245,11 +240,6 @@ exports[`schedule behavior with cron 1`] = ` exports[`schedule behavior with rate 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -488,11 +478,6 @@ exports[`schedule behavior with rate 1`] = ` exports[`schedule with two functions 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/secret.test.ts.snap b/libs/awscdk/test/__snapshots__/secret.test.ts.snap index 9233d50a4f8..8822ef25d7e 100644 --- a/libs/awscdk/test/__snapshots__/secret.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/secret.test.ts.snap @@ -70,8 +70,5 @@ exports[`default secret behavior 2`] = ` ], }, }, - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, } `; diff --git a/libs/awscdk/test/__snapshots__/topic.test.ts.snap b/libs/awscdk/test/__snapshots__/topic.test.ts.snap index 04ae3a4eb26..1a8099ded77 100644 --- a/libs/awscdk/test/__snapshots__/topic.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/topic.test.ts.snap @@ -2,11 +2,6 @@ exports[`default topic behavior 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -81,11 +76,6 @@ return class Handler { exports[`topic with multiple subscribers 3`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -448,11 +438,6 @@ return class Handler { exports[`topic with subscriber function 2`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/awscdk/test/__snapshots__/website.test.ts.snap b/libs/awscdk/test/__snapshots__/website.test.ts.snap index 5fb571d6359..7b8c5472fd3 100644 --- a/libs/awscdk/test/__snapshots__/website.test.ts.snap +++ b/libs/awscdk/test/__snapshots__/website.test.ts.snap @@ -2,11 +2,6 @@ exports[`default website behaviour 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -360,11 +355,6 @@ exports[`default website behaviour 1`] = ` exports[`website with addFile 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", @@ -765,11 +755,6 @@ exports[`website with addFile 1`] = ` exports[`website with addJson 1`] = ` { - "Outputs": { - "WingTestRunnerFunctionArns": { - "Value": "[]", - }, - }, "Parameters": { "BootstrapVersion": { "Default": "/cdk-bootstrap/hnb659fds/version", diff --git a/libs/wingsdk/.eslintrc.json b/libs/wingsdk/.eslintrc.json index 04cd8603ade..2cac03f4820 100644 --- a/libs/wingsdk/.eslintrc.json +++ b/libs/wingsdk/.eslintrc.json @@ -131,6 +131,7 @@ ] } ], + "@typescript-eslint/no-misused-promises": "error", "import/no-restricted-paths": [ "error", { diff --git a/libs/wingsdk/.projenrc.ts b/libs/wingsdk/.projenrc.ts index 5ea6eea9673..51063a1b400 100644 --- a/libs/wingsdk/.projenrc.ts +++ b/libs/wingsdk/.projenrc.ts @@ -186,6 +186,7 @@ function disallowImportsRule(target: Zone, from: Zone): DisallowImportsRule { // Prevent unsafe imports between preflight and inflight and simulator code project.eslint!.addRules({ + "@typescript-eslint/no-misused-promises": "error", "import/no-restricted-paths": [ "error", { diff --git a/libs/wingsdk/src/core/app.ts b/libs/wingsdk/src/core/app.ts index c2971f8efc4..c7997765f05 100644 --- a/libs/wingsdk/src/core/app.ts +++ b/libs/wingsdk/src/core/app.ts @@ -2,7 +2,7 @@ import { Construct, IConstruct } from "constructs"; import { NotImplementedError } from "./errors"; import { SDK_PACKAGE_NAME } from "../constants"; import { APP_SYMBOL, IApp, Node } from "../std/node"; -import { IResource } from "../std/resource"; +import type { IResource } from "../std/resource"; import { TestRunner } from "../std/test-runner"; /** @@ -21,13 +21,6 @@ export interface AppProps { */ readonly name?: string; - /** - * The path to a state file which will track all synthesized files. If a - * statefile is not specified, we won't be able to remove extrenous files. - * @default - no state file - */ - readonly stateFile?: string; - /** * The root construct class that should be instantiated with a scope and id. * If provided, then it will be instantiated on the user's behalf. @@ -152,7 +145,7 @@ export abstract class App extends Construct implements IApp { /** * Whether or not this app is being synthesized into a test environment. */ - public abstract readonly isTestEnvironment: boolean; + public readonly isTestEnvironment: boolean; /** * NewInstance hooks for defining resource implementations. @@ -160,6 +153,12 @@ export abstract class App extends Construct implements IApp { */ public readonly _newInstanceOverrides: any[]; + /** + * The test runner for this app. Only created if `isTestEnvironment` is true. + * @internal + */ + public _testRunner: TestRunner | undefined; + constructor(scope: Construct, id: string, props: AppProps) { super(scope, id); if (!props.entrypointDir) { @@ -173,6 +172,7 @@ export abstract class App extends Construct implements IApp { this.entrypointDir = props.entrypointDir; this._newInstanceOverrides = props.newInstanceOverrides ?? []; + this.isTestEnvironment = props.isTestEnvironment ?? false; } /** @@ -285,34 +285,6 @@ export abstract class App extends Construct implements IApp { } return new type(scope, id, ...args); } - - /** - * Synthesize the root construct if one was given. If this is a test environment, then - * we will synthesize one root construct per test. Otherwise, we will synthesize exactly - * one root construct. - * - * @param props The App props - * @param testRunner The test runner - */ - protected synthRoots(props: AppProps, testRunner: TestRunner) { - if (props.rootConstruct) { - const Root = props.rootConstruct; - - // mark the root type so that we can find it later through - // Node.of(root).root - Node._markRoot(Root); - - if (this.isTestEnvironment) { - new Root(this, "env0"); - const tests = testRunner.findTests(); - for (let i = 1; i < tests.length; i++) { - new Root(this, "env" + i); - } - } else { - new Root(this, "Default"); - } - } - } } export function preSynthesizeAllConstructs(app: App): void { diff --git a/libs/wingsdk/src/shared-tf/app.ts b/libs/wingsdk/src/shared-tf/app.ts index 8a248261640..b17f7e0eaec 100644 --- a/libs/wingsdk/src/shared-tf/app.ts +++ b/libs/wingsdk/src/shared-tf/app.ts @@ -33,7 +33,6 @@ export abstract class CdktfApp extends App { */ public readonly terraformManifestPath: string; public readonly outdir: string; - public readonly isTestEnvironment: boolean; private readonly cdktfApp: cdktf.App; private readonly cdktfStack: cdktf.TerraformStack; @@ -61,7 +60,6 @@ export abstract class CdktfApp extends App { }); this.outdir = outdir; - this.isTestEnvironment = props.isTestEnvironment ?? false; registerTokenResolver(new CdkTfTokens()); this.synthHooks = props.synthHooks; diff --git a/libs/wingsdk/src/simulator/client.ts b/libs/wingsdk/src/simulator/client.ts index b79dc650b03..8199dafc917 100644 --- a/libs/wingsdk/src/simulator/client.ts +++ b/libs/wingsdk/src/simulator/client.ts @@ -1,51 +1,8 @@ +import { deserialize } from "./serialization"; import type { SimulatorServerRequest, SimulatorServerResponse, } from "./simulator"; -import { Datetime } from "../std/datetime"; - -// TODO: more robust serialization scheme - -export function serializeValue(input: any): string { - return JSON.stringify(input, (_key, value) => { - if (value instanceof Datetime) { - return { - $kind: "datetime", - day: value.dayOfMonth, - hour: value.hours, - min: value.min, - month: value.month, - sec: value.sec, - year: value.year, - ms: value.ms, - tz: value.timezone, - }; - } - return value; - }); -} - -export function deserializeValue(input: string): any { - return JSON.parse(input, (_key, value) => { - // assumption: Wing APIs don't distinguish between null and undefined, so we can swap them - if (value === null) { - return undefined; - } - if (value.$kind === "datetime") { - return Datetime.fromComponents({ - day: value.day, - hour: value.hour, - min: value.min, - month: value.month, - sec: value.sec, - year: value.year, - ms: value.ms, - tz: value.tz, - }); - } - return value; - }); -} export function makeSimulatorClient(url: string, handle: string) { let proxy: any; @@ -79,7 +36,7 @@ export function makeSimulatorClient(url: string, handle: string) { throw e; } - let parsed: SimulatorServerResponse = deserializeValue(await resp.text()); + let parsed: SimulatorServerResponse = deserialize(await resp.text()); if (parsed.error) { // objects with "then" methods are special-cased by the JS runtime diff --git a/libs/wingsdk/src/simulator/serialization.ts b/libs/wingsdk/src/simulator/serialization.ts new file mode 100644 index 00000000000..80f31899425 --- /dev/null +++ b/libs/wingsdk/src/simulator/serialization.ts @@ -0,0 +1,44 @@ +// TODO: more robust serialization scheme + +import { Datetime } from "../std/datetime"; + +export function serialize(input: any): string { + return JSON.stringify(input, (_key, value) => { + if (value instanceof Datetime) { + return { + $kind: "datetime", + day: value.dayOfMonth, + hour: value.hours, + min: value.min, + month: value.month, + sec: value.sec, + year: value.year, + ms: value.ms, + tz: value.timezone, + }; + } + return value; + }); +} + +export function deserialize(input: string): any { + return JSON.parse(input, (_key, value) => { + // assumption: Wing APIs don't distinguish between null and undefined, so we can swap them + if (value === null) { + return undefined; + } + if (value.$kind === "datetime") { + return Datetime.fromComponents({ + day: value.day, + hour: value.hour, + min: value.min, + month: value.month, + sec: value.sec, + year: value.year, + ms: value.ms, + tz: value.tz, + }); + } + return value; + }); +} diff --git a/libs/wingsdk/src/simulator/simulator.ts b/libs/wingsdk/src/simulator/simulator.ts index 5a6c6aee7d5..28b95693a23 100644 --- a/libs/wingsdk/src/simulator/simulator.ts +++ b/libs/wingsdk/src/simulator/simulator.ts @@ -1,11 +1,9 @@ import { existsSync } from "fs"; +import { mkdir, rmdir } from "fs/promises"; import type { Server, IncomingMessage, ServerResponse } from "http"; import { join } from "path"; -import { - deserializeValue, - makeSimulatorClient, - serializeValue, -} from "./client"; +import { makeSimulatorClient } from "./client"; +import { deserialize, serialize } from "./serialization"; import { Tree } from "./tree"; import { SDK_VERSION } from "../constants"; import { ConstructTree, TREE_FILE_PATH } from "../core"; @@ -28,6 +26,13 @@ export interface SimulatorProps { */ readonly simfile: string; + /** + * Path to a state directory where the simulator can store state between + * simulation runs. + * @default - a directory named ".state" inside the simulator output directory + */ + readonly stateDir?: string; + /** * The factory that produces resource simulations. * @@ -76,10 +81,15 @@ export interface IWithTraceProps { */ export interface ISimulatorContext { /** - * This directory where the compilation output is + * The directory where the compilation output is */ readonly simdir: string; + /** + * The directory for the resource's state. + */ + readonly statedir: string; + /** * The path of the resource that is being simulated. */ @@ -157,6 +167,7 @@ export class Simulator { // fields that are same between simulation runs / reloads private _config: WingSimulatorSchema; private readonly simdir: string; + private readonly statedir: string; // fields that change between simulation runs / reloads private _running: RunningState; @@ -170,6 +181,7 @@ export class Simulator { constructor(props: SimulatorProps) { this.simdir = props.simfile; + this.statedir = props.stateDir ?? join(this.simdir, ".state"); const { config, treeData, connectionData } = this._loadApp(props.simfile); this._config = config; this._tree = new Tree(treeData); @@ -297,8 +309,11 @@ export class Simulator { `Resource ${resourceConfig.path} could not be cleaned up, no handle for it was found.` ); } + try { - const resource = this._handles.deallocate(resourceConfig.attrs!.handle); + const resource = this._handles.find(handle); + await resource.save(this.getResourceStateDir(resourceConfig.path)); + this._handles.deallocate(handle); await resource.cleanup(); } catch (err) { console.warn(err); @@ -325,9 +340,13 @@ export class Simulator { * Stop the simulation, reload the simulation tree from the latest version of * the app file, and restart the simulation. */ - public async reload(): Promise { + public async reload(resetState: boolean): Promise { await this.stop(); + if (resetState) { + await rmdir(this.statedir, { recursive: true }); + } + const { config, treeData, connectionData } = this._loadApp(this.simdir); this._config = config; this._tree = new Tree(treeData); @@ -400,6 +419,16 @@ export class Simulator { return config; } + /** + * Obtain a resource's state directory path. + * @param path The resource path + * @returns The resource state directory path + */ + public getResourceStateDir(path: string): string { + const config = this.getResourceConfig(path); + return join(this.statedir, config.addr); + } + /** * Obtain a resource's visual interaction components. * @returns An array of UIComponent objects @@ -442,10 +471,7 @@ export class Simulator { * Start a server that allows any resource to be accessed via HTTP. */ private async startServer(): Promise { - const requestListener = async ( - req: IncomingMessage, - res: ServerResponse - ) => { + const requestListener = (req: IncomingMessage, res: ServerResponse) => { if (!req.url?.startsWith("/v1/call")) { res.writeHead(404); res.end(); @@ -457,7 +483,7 @@ export class Simulator { body += chunk; }); req.on("end", () => { - const request: SimulatorServerRequest = deserializeValue(body); + const request: SimulatorServerRequest = deserialize(body); const { handle, method, args } = request; const resource = this._handles.tryFind(handle); @@ -468,7 +494,7 @@ export class Simulator { if (this._running === "starting") { res.writeHead(500, { "Content-Type": "application/json" }); res.end( - serializeValue({ + serialize({ error: { message: `Resource ${handle} not found. It may not have been initialized yet.`, }, @@ -479,7 +505,7 @@ export class Simulator { } else if (this._running === "stopping") { res.writeHead(500, { "Content-Type": "application/json" }); res.end( - serializeValue({ + serialize({ error: { message: `Resource ${handle} not found. It may have been cleaned up already.`, }, @@ -496,7 +522,7 @@ export class Simulator { if (!methodExists) { res.writeHead(500, { "Content-Type": "application/json" }); res.end( - serializeValue({ + serialize({ error: { message: `Method ${method} not found on resource ${handle}.`, }, @@ -510,12 +536,12 @@ export class Simulator { [method](...args) .then((result: any) => { res.writeHead(200, { "Content-Type": "application/json" }); - res.end(serializeValue({ result }), "utf-8"); + res.end(serialize({ result }), "utf-8"); }) .catch((err: any) => { res.writeHead(500, { "Content-Type": "application/json" }); res.end( - serializeValue({ + serialize({ error: { message: err.message ?? err, stack: err.stack, @@ -584,14 +610,20 @@ export class Simulator { // look up the location of the code for the type const typeInfo = this.typeInfo(resourceConfig.type); + // set up a state directory for the resource + await mkdir(this.getResourceStateDir(resourceConfig.path), { + recursive: true, + }); + // create the resource based on its type // eslint-disable-next-line @typescript-eslint/no-require-imports const ResourceType = require(typeInfo.sourcePath)[typeInfo.className]; const resourceObject = new ResourceType(resolvedProps, context); - - // go ahead and initialize the resource const attrs = await resourceObject.init(); + // save the current state + await resourceObject.save(); + // allocate a handle for the resource so others can find it const handle = this._handles.allocate(resourceObject); @@ -613,6 +645,7 @@ export class Simulator { private createContext(resourceConfig: BaseResourceSchema): ISimulatorContext { return { simdir: this.simdir, + statedir: join(this.statedir, resourceConfig.addr), resourcePath: resourceConfig.path, serverUrl: this.url, findInstance: (handle: string) => { @@ -865,6 +898,11 @@ export interface ISimulatorResourceInstance { * (files, ports, etc). */ cleanup(): Promise; + + /** + * Save the resource's state into the state directory. + */ + save(statedir: string): Promise; } /** Schema for simulator.json */ @@ -889,6 +927,8 @@ export interface TypeSchema { export interface BaseResourceSchema { /** The resource path from the app's construct tree. */ readonly path: string; + /** An opaque tree-unique address of the resource, calculated as a SHA-1 hash of the resource path. */ + readonly addr: string; /** The type of the resource. */ readonly type: string; /** The resource-specific properties needed to create this resource. */ diff --git a/libs/wingsdk/src/std/test-runner.ts b/libs/wingsdk/src/std/test-runner.ts index 44f18427b82..e70350ca8f9 100644 --- a/libs/wingsdk/src/std/test-runner.ts +++ b/libs/wingsdk/src/std/test-runner.ts @@ -1,7 +1,9 @@ import { Construct } from "constructs"; import { Resource } from "./resource"; import { Test } from "./test"; +import { Function, FunctionProps, IFunctionHandler } from "../cloud"; import { fqnForType } from "../constants"; +import { App } from "../core"; import { Node } from "../std"; /** @@ -23,6 +25,47 @@ export interface TestRunnerProps {} * @abstract */ export class TestRunner extends Resource { + /** + * Instantiate one or more copies of a tree inside of an app based + * on how many isolated environments are needed for testing. + * @internal + */ + public static _createTree(app: App, Root: any) { + if (app.isTestEnvironment) { + app._testRunner = new TestRunner(app, "cloud.TestRunner"); + } + + if (Root) { + // mark the root type so that we can find it later through + // Node.of(root).root + Node._markRoot(Root); + + if (app.isTestEnvironment) { + new Root(app, "env0"); + const tests = app._testRunner!.findTests(); + for (let i = 1; i < tests.length; i++) { + new Root(app, "env" + i); + } + } else { + new Root(app, "Default"); + } + } + } + + /** + * List of isolated environment names where we've already created a cloud.Function + * for a unit test. We keep track of these so that we don't synthesize + * multiple test functions into the same isolated environment. + */ + private _synthedEnvs: string[] = []; + + /** + * List of test paths that we have already created a cloud.Function for. + * We keep track of these so that we don't create identical test functions in multiple + * isolated environments. + */ + private _synthedTests: string[] = []; + constructor(scope: Construct, id: string, props: TestRunnerProps = {}) { if (new.target === TestRunner) { return Resource._newFromFactory(TEST_RUNNER_FQN, scope, id, props); @@ -38,6 +81,27 @@ export class TestRunner extends Resource { props; } + /** @internal */ + public _addTestFunction( + scope: Construct, + id: string, + inflight: IFunctionHandler, + props: FunctionProps + ): Function | undefined { + const testEnv = scope.node.path.split("/").at(1)!; + const testPath = scope.node.path.split("/").slice(2).join("/") + "/" + id; + if ( + !this._synthedEnvs.includes(testEnv) && + !this._synthedTests.includes(testPath) + ) { + this._synthedEnvs.push(testEnv); + this._synthedTests.push(testPath); + return new Function(scope, id, inflight, props); + } + + return undefined; + } + /** @internal */ public _supportedOps(): string[] { return [ diff --git a/libs/wingsdk/src/std/test.ts b/libs/wingsdk/src/std/test.ts index 2f8e493be0c..5fa2a244023 100644 --- a/libs/wingsdk/src/std/test.ts +++ b/libs/wingsdk/src/std/test.ts @@ -43,8 +43,14 @@ export class Test extends Resource { Node.of(this).title = "Test"; Node.of(this).description = "A cloud unit test."; - if (App.of(this).isTestEnvironment || App.of(this)._target === "sim") { - this._fn = new Function(this, "Handler", inflight, props); + this._fn = App.of(this)?._testRunner?._addTestFunction( + this, + "Handler", + inflight, + props + ); + if (!this._fn) { + Node.of(this).hidden = true; } } diff --git a/libs/wingsdk/src/target-sim/api.inflight.ts b/libs/wingsdk/src/target-sim/api.inflight.ts index 1d34b97c0fd..fccc846a519 100644 --- a/libs/wingsdk/src/target-sim/api.inflight.ts +++ b/libs/wingsdk/src/target-sim/api.inflight.ts @@ -73,6 +73,37 @@ export class Api } } + public async init(): Promise { + // `server.address()` returns `null` until the server is listening + // on a port. We use a promise to wait for the server to start + // listening before returning the URL. + const addrInfo: AddressInfo = await new Promise((resolve, reject) => { + this.server = this.app.listen(0, LOCALHOST_ADDRESS, () => { + const addr = this.server?.address(); + if (addr && typeof addr === "object" && (addr as AddressInfo).port) { + resolve(addr); + } else { + reject(new Error("No address found")); + } + }); + }); + this.url = `http://${addrInfo.address}:${addrInfo.port}`; + + this.addTrace(`Server listening on ${this.url}`); + + return { + url: this.url, + }; + } + + public async cleanup(): Promise { + this.addTrace(`Closing server on ${this.url}`); + this.server?.close(); + this.server?.closeAllConnections(); + } + + public async save(): Promise {} + public async addEventSubscription( subscriber: string, subscriptionProps: EventSubscription @@ -109,80 +140,55 @@ export class Api this.app[method]( transformRoutePath(route.path), - async ( - req: express.Request, - res: express.Response, - next: express.NextFunction - ) => { - this.addTrace( - `Processing "${route.method} ${route.path}" params=${JSON.stringify( - req.params - )}).` - ); - - const apiRequest = transformRequest(req); - - try { - const response = await fnClient.invoke( - // TODO: clean up once cloud.Function is typed as `inflight (Json): Json` - apiRequest as unknown as string + asyncMiddleware( + async ( + req: express.Request, + res: express.Response, + next: express.NextFunction + ) => { + this.addTrace( + `Processing "${route.method} ${route.path}" params=${JSON.stringify( + req.params + )}).` ); - // TODO: clean up once cloud.Function is typed as `inflight (Json): Json` - if (!isApiResponse(response)) { - throw new Error( - `Expected an ApiResponse struct, found ${JSON.stringify( - response - )}` + const apiRequest = transformRequest(req); + + try { + const response = await fnClient.invoke( + // TODO: clean up once cloud.Function is typed as `inflight (Json): Json` + apiRequest as unknown as string ); - } - res.status(response.status); - for (const [key, value] of Object.entries(response.headers ?? {})) { - res.set(key, value); - } - if (response.body !== undefined) { - res.send(response.body); - } else { - res.end(); + // TODO: clean up once cloud.Function is typed as `inflight (Json): Json` + if (!isApiResponse(response)) { + throw new Error( + `Expected an ApiResponse struct, found ${JSON.stringify( + response + )}` + ); + } + + res.status(response.status); + for (const [key, value] of Object.entries(response.headers ?? {})) { + res.set(key, value); + } + if (response.body !== undefined) { + res.send(response.body); + } else { + res.end(); + } + this.addTrace( + `${route.method} ${route.path} - ${response.status}.` + ); + } catch (err) { + return next(err); } - this.addTrace(`${route.method} ${route.path} - ${response.status}.`); - } catch (err) { - return next(err); } - } + ) ); } - public async init(): Promise { - // `server.address()` returns `null` until the server is listening - // on a port. We use a promise to wait for the server to start - // listening before returning the URL. - const addrInfo: AddressInfo = await new Promise((resolve, reject) => { - this.server = this.app.listen(0, LOCALHOST_ADDRESS, () => { - const addr = this.server?.address(); - if (addr && typeof addr === "object" && (addr as AddressInfo).port) { - resolve(addr); - } else { - reject(new Error("No address found")); - } - }); - }); - this.url = `http://${addrInfo.address}:${addrInfo.port}`; - - this.addTrace(`Server listening on ${this.url}`); - - return { - url: this.url, - }; - } - - public async cleanup(): Promise { - this.addTrace(`Closing server on ${this.url}`); - this.server?.close(); - this.server?.closeAllConnections(); - } - private addTrace(message: string): void { this.context.addTrace({ type: TraceType.RESOURCE, @@ -217,3 +223,21 @@ function transformRoutePath(route: string): string { // route validation is done in the preflight file return route.replace(/{/g, ":").replace(/}/g, ""); } + +// express v4 doesn't natively handle async request handlers, so we need to +// wrap them in a middleware function +function asyncMiddleware( + fn: ( + req: express.Request, + res: express.Response, + next: express.NextFunction + ) => Promise +) { + return ( + req: express.Request, + res: express.Response, + next: express.NextFunction + ) => { + Promise.resolve(fn(req, res, next)).catch(next); + }; +} diff --git a/libs/wingsdk/src/target-sim/api.ts b/libs/wingsdk/src/target-sim/api.ts index c0e6e12145b..aa412caae08 100644 --- a/libs/wingsdk/src/target-sim/api.ts +++ b/libs/wingsdk/src/target-sim/api.ts @@ -215,6 +215,7 @@ export class Api extends cloud.Api implements ISimulatorResource { const schema: ApiSchema = { type: cloud.API_FQN, path: this.node.path, + addr: this.node.addr, props: { openApiSpec: this._getOpenApiSpec(), corsHeaders: this._generateCorsHeaders(this.corsOptions), diff --git a/libs/wingsdk/src/target-sim/app.ts b/libs/wingsdk/src/target-sim/app.ts index dc48a1c40a1..6cf4d570450 100644 --- a/libs/wingsdk/src/target-sim/app.ts +++ b/libs/wingsdk/src/target-sim/app.ts @@ -76,27 +76,17 @@ const SIMULATOR_CLASS_DATA = { */ export class App extends core.App { public readonly outdir: string; - public readonly isTestEnvironment: boolean; - public readonly _target = "sim"; - /** - * The test runner for this app. - */ - protected readonly testRunner: TestRunner; - private synthed = false; constructor(props: core.AppProps) { // doesn't allow customize the root id- as used hardcoded in the code super(undefined as any, "root", props); this.outdir = props.outdir ?? "."; - this.isTestEnvironment = props.isTestEnvironment ?? false; registerTokenResolver(new SimTokens()); - this.testRunner = new TestRunner(this, "cloud.TestRunner"); - - this.synthRoots(props, this.testRunner); + TestRunner._createTree(this, props.rootConstruct); } /** @internal */ diff --git a/libs/wingsdk/src/target-sim/bucket.inflight.ts b/libs/wingsdk/src/target-sim/bucket.inflight.ts index 50250ceb5fa..5559a52d32f 100644 --- a/libs/wingsdk/src/target-sim/bucket.inflight.ts +++ b/libs/wingsdk/src/target-sim/bucket.inflight.ts @@ -1,10 +1,10 @@ import * as crypto from "crypto"; import * as fs from "fs"; -import * as os from "os"; import { dirname, join } from "path"; import * as url from "url"; import mime from "mime-types"; import { BucketAttributes, BucketSchema } from "./schema-resources"; +import { exists } from "./util"; import { ITopicClient, BucketSignedUrlOptions, @@ -14,35 +14,55 @@ import { BucketPutOptions, BucketDeleteOptions, } from "../cloud"; +import { deserialize, serialize } from "../simulator/serialization"; import { ISimulatorContext, ISimulatorResourceInstance, } from "../simulator/simulator"; import { Datetime, Json } from "../std"; +const METADATA_FILENAME = "metadata.json"; + export class Bucket implements IBucketClient, ISimulatorResourceInstance { - private readonly objectKeys: Set; private readonly _fileDir: string; private readonly context: ISimulatorContext; private readonly initialObjects: Record; private readonly _public: boolean; private readonly topicHandlers: Partial>; - private readonly _metadata: Record = {}; + private _metadata: Map; public constructor(props: BucketSchema["props"], context: ISimulatorContext) { - this.objectKeys = new Set(); - this._fileDir = fs.mkdtempSync(join(os.tmpdir(), "wing-sim-")); + this._fileDir = join(context.statedir, "files"); this.context = context; this.initialObjects = props.initialObjects ?? {}; this._public = props.public ?? false; this.topicHandlers = props.topics; - } - - public get fileDir(): string { - return this._fileDir; + this._metadata = new Map(); } public async init(): Promise { + const fileDirExists = await exists(this._fileDir); + if (!fileDirExists) { + await fs.promises.mkdir(this._fileDir, { recursive: true }); + } + + const metadataFileExists = await exists( + join(this.context.statedir, METADATA_FILENAME) + ); + if (metadataFileExists) { + const metadataContents = await fs.promises.readFile( + join(this.context.statedir, METADATA_FILENAME), + "utf-8" + ); + const metadata = deserialize(metadataContents); + this._metadata = new Map(metadata); + } else { + await fs.promises.writeFile( + join(this.context.statedir, METADATA_FILENAME), + serialize({}) + ); + } + for (const [key, value] of Object.entries(this.initialObjects)) { await this.context.withTrace({ message: `Adding object from preflight (key=${key}).`, @@ -51,11 +71,19 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { }, }); } + return {}; } - public async cleanup(): Promise { - await fs.promises.rm(this._fileDir, { recursive: true, force: true }); + public async cleanup(): Promise {} + + public async save(): Promise { + // no need to save individual files, since they are already persisted in the state dir + // during the bucket's lifecycle + await fs.promises.writeFile( + join(this.context.statedir, METADATA_FILENAME), + serialize(Array.from(this._metadata.entries())) // metadata contains Datetime values, so we need to serialize it + ); } private async notifyListeners( @@ -77,7 +105,7 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { return this.context.withTrace({ message: `Exists (key=${key}).`, activity: async () => { - return this.objectKeys.has(key); + return this._metadata.has(key); }, }); } @@ -158,18 +186,18 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { activity: async () => { const mustExist = opts?.mustExist ?? false; - if (!this.objectKeys.has(key) && mustExist) { + if (!this._metadata.has(key) && mustExist) { throw new Error(`Object does not exist (key=${key}).`); } - if (!this.objectKeys.has(key)) { + if (!this._metadata.has(key)) { return; } const hash = this.hashKey(key); const filename = join(this._fileDir, hash); await fs.promises.unlink(filename); - this.objectKeys.delete(key); + this._metadata.delete(key); await this.notifyListeners(BucketEventType.DELETE, key); }, }); @@ -188,7 +216,7 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { return this.context.withTrace({ message: `List (prefix=${prefix ?? "null"}).`, activity: async () => { - return Array.from(this.objectKeys.values()).filter((key) => { + return Array.from(this._metadata.keys()).filter((key) => { if (prefix) { return key.startsWith(prefix); } else { @@ -208,7 +236,7 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { activity: async () => { const filePath = join(this._fileDir, key); - if (!this.objectKeys.has(key)) { + if (!this._metadata.has(key)) { throw new Error( `Cannot provide public url for an non-existent key (key=${key})` ); @@ -240,13 +268,10 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { return this.context.withTrace({ message: `Metadata (key=${key}).`, activity: async () => { - if (!this.objectKeys.has(key)) { + if (!this._metadata.has(key)) { throw new Error(`Object does not exist (key=${key}).`); } - if (!this._metadata[key]) { - throw new Error(`Metadata does not exist for object (key=${key}).`); - } - return this._metadata[key]; + return this._metadata.get(key)!; }, }); } @@ -255,7 +280,7 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { return this.context.withTrace({ message: `Copy (srcKey=${srcKey} to dstKey=${dstKey}).`, activity: async () => { - if (!this.objectKeys.has(srcKey)) { + if (!this._metadata.has(srcKey)) { throw new Error(`Source object does not exist (srcKey=${srcKey}).`); } @@ -274,7 +299,7 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { value: string, contentType?: string ): Promise { - const actionType: BucketEventType = this.objectKeys.has(key) + const actionType: BucketEventType = this._metadata.has(key) ? BucketEventType.UPDATE : BucketEventType.CREATE; @@ -289,17 +314,16 @@ export class Bucket implements IBucketClient, ISimulatorResourceInstance { const determinedContentType = (contentType ?? mime.lookup(key)) || "application/octet-stream"; - this._metadata[key] = { + this._metadata.set(key, { size: filestat.size, lastModified: Datetime.fromDate(filestat.mtime), contentType: determinedContentType, - }; + }); - this.objectKeys.add(key); await this.notifyListeners(actionType, key); } private hashKey(key: string): string { - return crypto.createHash("sha512").update(key).digest("hex"); + return crypto.createHash("sha512").update(key).digest("hex").slice(-32); } } diff --git a/libs/wingsdk/src/target-sim/bucket.ts b/libs/wingsdk/src/target-sim/bucket.ts index e117037d2a9..0dbf6b0fec3 100644 --- a/libs/wingsdk/src/target-sim/bucket.ts +++ b/libs/wingsdk/src/target-sim/bucket.ts @@ -66,6 +66,7 @@ export class Bucket extends cloud.Bucket implements ISimulatorResource { const schema: BucketSchema = { type: cloud.BUCKET_FQN, path: this.node.path, + addr: this.node.addr, props: { public: this.public, initialObjects: this.initialObjects, diff --git a/libs/wingsdk/src/target-sim/counter.inflight.ts b/libs/wingsdk/src/target-sim/counter.inflight.ts index 00fec84f860..6527b75417a 100644 --- a/libs/wingsdk/src/target-sim/counter.inflight.ts +++ b/libs/wingsdk/src/target-sim/counter.inflight.ts @@ -1,10 +1,15 @@ +import * as fs from "fs"; +import { join } from "path"; import { CounterAttributes, CounterSchema } from "./schema-resources"; +import { exists } from "./util"; import { ICounterClient } from "../cloud"; import { ISimulatorContext, ISimulatorResourceInstance, } from "../simulator/simulator"; +const VALUES_FILENAME = "values.json"; + export class Counter implements ICounterClient, ISimulatorResourceInstance { private values: Map; private initial: number; @@ -20,11 +25,25 @@ export class Counter implements ICounterClient, ISimulatorResourceInstance { } public async init(): Promise { + const valuesFile = join(this.context.statedir, VALUES_FILENAME); + const valueFilesExists = await exists(valuesFile); + if (valueFilesExists) { + const valuesContents = await fs.promises.readFile(valuesFile, "utf-8"); + const values = JSON.parse(valuesContents); + this.values = new Map(values); + } return {}; } public async cleanup(): Promise {} + public async save(): Promise { + await fs.promises.writeFile( + join(this.context.statedir, VALUES_FILENAME), + JSON.stringify(Array.from(this.values.entries())) + ); + } + public async inc( amount: number = 1, key: string = "default" diff --git a/libs/wingsdk/src/target-sim/counter.ts b/libs/wingsdk/src/target-sim/counter.ts index 8246607fa31..a70abfabdf6 100644 --- a/libs/wingsdk/src/target-sim/counter.ts +++ b/libs/wingsdk/src/target-sim/counter.ts @@ -33,6 +33,7 @@ export class Counter extends cloud.Counter implements ISimulatorResource { const schema: CounterSchema = { type: cloud.COUNTER_FQN, path: this.node.path, + addr: this.node.addr, props: { initial: this.initial, }, diff --git a/libs/wingsdk/src/target-sim/domain.inflight.ts b/libs/wingsdk/src/target-sim/domain.inflight.ts index f233a7a8970..9628161e123 100644 --- a/libs/wingsdk/src/target-sim/domain.inflight.ts +++ b/libs/wingsdk/src/target-sim/domain.inflight.ts @@ -9,4 +9,6 @@ export class Domain implements IDomainClient, ISimulatorResourceInstance { } public async cleanup(): Promise {} + + public async save(): Promise {} } diff --git a/libs/wingsdk/src/target-sim/domain.ts b/libs/wingsdk/src/target-sim/domain.ts index 5477f9c1972..41e07e6f365 100644 --- a/libs/wingsdk/src/target-sim/domain.ts +++ b/libs/wingsdk/src/target-sim/domain.ts @@ -22,6 +22,7 @@ export class Domain extends cloud.Domain { return { type: cloud.DOMAIN_FQN, path: this.node.path, + addr: this.node.addr, props: {}, attrs: {}, }; diff --git a/libs/wingsdk/src/target-sim/dynamodb-table.inflight.ts b/libs/wingsdk/src/target-sim/dynamodb-table.inflight.ts index 79e7448aba3..d826fbcae2d 100644 --- a/libs/wingsdk/src/target-sim/dynamodb-table.inflight.ts +++ b/libs/wingsdk/src/target-sim/dynamodb-table.inflight.ts @@ -75,6 +75,8 @@ export class DynamodbTable await runCommand("docker", ["rm", "-f", `${this.containerName}`]); } + public async save(): Promise {} + public async _rawClient(): Promise { if (this.client) { return this.client; diff --git a/libs/wingsdk/src/target-sim/dynamodb-table.ts b/libs/wingsdk/src/target-sim/dynamodb-table.ts index 9d74a3a0e36..b33300b1c3c 100644 --- a/libs/wingsdk/src/target-sim/dynamodb-table.ts +++ b/libs/wingsdk/src/target-sim/dynamodb-table.ts @@ -27,6 +27,7 @@ export class DynamodbTable const schema: DynamodbTableSchema = { type: ex.DYNAMODB_TABLE_FQN, path: this.node.path, + addr: this.node.addr, props: { name: this.name, attributeDefinitions: this.props.attributeDefinitions, diff --git a/libs/wingsdk/src/target-sim/event-mapping.inflight.ts b/libs/wingsdk/src/target-sim/event-mapping.inflight.ts index 1491cc45ec3..5f9c5894195 100644 --- a/libs/wingsdk/src/target-sim/event-mapping.inflight.ts +++ b/libs/wingsdk/src/target-sim/event-mapping.inflight.ts @@ -30,4 +30,6 @@ export class EventMapping implements ISimulatorResourceInstance { } public async cleanup(): Promise {} + + public async save(): Promise {} } diff --git a/libs/wingsdk/src/target-sim/event-mapping.ts b/libs/wingsdk/src/target-sim/event-mapping.ts index f386051e45d..7afcd9ae156 100644 --- a/libs/wingsdk/src/target-sim/event-mapping.ts +++ b/libs/wingsdk/src/target-sim/event-mapping.ts @@ -68,6 +68,7 @@ export class EventMapping extends Resource implements ISimulatorResource { const schema: EventMappingSchema = { type: EVENT_MAPPING_FQN, path: this.node.path, + addr: this.node.addr, props: { subscriber: simulatorHandleToken(this.eventProps.subscriber), publisher: simulatorHandleToken(this.eventProps.publisher), diff --git a/libs/wingsdk/src/target-sim/function.inflight.ts b/libs/wingsdk/src/target-sim/function.inflight.ts index a6289af1a3c..d3fc974d884 100644 --- a/libs/wingsdk/src/target-sim/function.inflight.ts +++ b/libs/wingsdk/src/target-sim/function.inflight.ts @@ -32,6 +32,8 @@ export class Function implements IFunctionClient, ISimulatorResourceInstance { return; } + public async save(): Promise {} + public async invoke(payload: string): Promise { return this.context.withTrace({ message: `Invoke (payload=${JSON.stringify(payload)}).`, diff --git a/libs/wingsdk/src/target-sim/function.ts b/libs/wingsdk/src/target-sim/function.ts index 06c4b11e96e..1de5d63c563 100644 --- a/libs/wingsdk/src/target-sim/function.ts +++ b/libs/wingsdk/src/target-sim/function.ts @@ -38,6 +38,7 @@ export class Function extends cloud.Function implements ISimulatorResource { const schema: FunctionSchema = { type: cloud.FUNCTION_FQN, path: this.node.path, + addr: this.node.addr, props: { sourceCodeFile: relative(outdir, this.entrypoint), sourceCodeLanguage: "javascript", diff --git a/libs/wingsdk/src/target-sim/on-deploy.inflight.ts b/libs/wingsdk/src/target-sim/on-deploy.inflight.ts index 181e89453f8..d20ab51bcc2 100644 --- a/libs/wingsdk/src/target-sim/on-deploy.inflight.ts +++ b/libs/wingsdk/src/target-sim/on-deploy.inflight.ts @@ -31,4 +31,6 @@ export class OnDeploy implements IOnDeployClient, ISimulatorResourceInstance { } public async cleanup(): Promise {} + + public async save(): Promise {} } diff --git a/libs/wingsdk/src/target-sim/on-deploy.ts b/libs/wingsdk/src/target-sim/on-deploy.ts index c29b4000b89..9d900a96676 100644 --- a/libs/wingsdk/src/target-sim/on-deploy.ts +++ b/libs/wingsdk/src/target-sim/on-deploy.ts @@ -34,6 +34,7 @@ export class OnDeploy extends cloud.OnDeploy { const schema: OnDeploySchema = { type: cloud.ON_DEPLOY_FQN, path: this.node.path, + addr: this.node.addr, props: { functionHandle: simulatorHandleToken(this.fn), }, diff --git a/libs/wingsdk/src/target-sim/queue.inflight.ts b/libs/wingsdk/src/target-sim/queue.inflight.ts index 9e716d77880..4e929371c6e 100644 --- a/libs/wingsdk/src/target-sim/queue.inflight.ts +++ b/libs/wingsdk/src/target-sim/queue.inflight.ts @@ -18,7 +18,7 @@ export class Queue { private readonly messages = new Array(); private readonly subscribers = new Array(); - private readonly intervalId: NodeJS.Timeout; + private readonly processLoop: LoopController; private readonly context: ISimulatorContext; private readonly timeout: number; private readonly retentionPeriod: number; @@ -26,7 +26,7 @@ export class Queue constructor(props: QueueSchema["props"], context: ISimulatorContext) { this.timeout = props.timeout; this.retentionPeriod = props.retentionPeriod; - this.intervalId = setInterval(() => this.processMessages(), 100); // every 0.1 seconds + this.processLoop = runEvery(100, async () => this.processMessages()); // every 0.1 seconds this.context = context; } @@ -35,9 +35,11 @@ export class Queue } public async cleanup(): Promise { - clearInterval(this.intervalId); + await this.processLoop.stop(); } + public async save(): Promise {} + public async addEventSubscription( subscriber: FunctionHandle, subscriptionProps: EventSubscription @@ -96,20 +98,21 @@ export class Queue }); } - private processMessages() { + private async processMessages() { let processedMessages = false; do { processedMessages = false; // Remove messages that have expired const currentTime = new Date(); - this.messages.forEach(async (message, index) => { + for (let index = this.messages.length - 1; index >= 0; index--) { + const message = this.messages[index]; if (message.retentionTimeout < currentTime) { await this.context.withTrace({ activity: async () => this.messages.splice(index, 1), message: `Removing expired message (message=${message.payload}).`, }); } - }); + } // Randomize the order of subscribers to avoid user code making // assumptions on the order that subscribers process messages. for (const subscriber of new RandomArrayIterator(this.subscribers)) { @@ -146,6 +149,7 @@ export class Queue sourceType: QUEUE_FQN, timestamp: new Date().toISOString(), }); + // TODO: replace with await fnClient.invokeAsync() void fnClient .invoke(JSON.stringify({ messages: messagesPayload })) .catch((err) => { @@ -235,3 +239,55 @@ class RandomArrayIterator implements Iterable { return this; } } + +interface LoopController { + stop(): Promise; +} + +/** + * Runs an asynchronous function every `interval` milliseconds. + * If the function takes longer than `interval` to run, it will be run again immediately. + * Otherwise, it will wait until `interval` milliseconds have passed before running again. + * @param interval The interval in milliseconds + * @param fn The function to run + * @returns A controller that can be used to stop the loop + */ +function runEvery(interval: number, fn: () => Promise): LoopController { + let keepRunning = true; + let resolveStopPromise: (value?: unknown) => void; + let stopCalled = false; // in case it is called multiple times + let stopPromise = new Promise((resolve) => { + resolveStopPromise = resolve; + }); + + async function loop() { + while (keepRunning) { + const startTime = Date.now(); + try { + await fn(); + } catch (err) { + console.error(err); + keepRunning = false; + } + const endTime = Date.now(); + const elapsedTime = endTime - startTime; + await new Promise((resolve) => + setTimeout(resolve, Math.max(interval - elapsedTime, 0)) + ); + } + resolveStopPromise(); // resolve the promise when the loop exits + } + + const controller = { + async stop() { + if (!stopCalled) { + stopCalled = true; + keepRunning = false; + await stopPromise; // wait for the loop to finish + } + }, + }; + + void loop(); // start the loop + return controller; +} diff --git a/libs/wingsdk/src/target-sim/queue.ts b/libs/wingsdk/src/target-sim/queue.ts index e17e1165eb7..86459aa549a 100644 --- a/libs/wingsdk/src/target-sim/queue.ts +++ b/libs/wingsdk/src/target-sim/queue.ts @@ -104,6 +104,7 @@ export class Queue extends cloud.Queue implements ISimulatorResource { const schema: QueueSchema = { type: cloud.QUEUE_FQN, path: this.node.path, + addr: this.node.addr, props: { timeout: this.timeout.seconds, retentionPeriod: this.retentionPeriod.seconds, diff --git a/libs/wingsdk/src/target-sim/react-app.inflight.ts b/libs/wingsdk/src/target-sim/react-app.inflight.ts index 27ab846fdfa..362f8a88fd6 100644 --- a/libs/wingsdk/src/target-sim/react-app.inflight.ts +++ b/libs/wingsdk/src/target-sim/react-app.inflight.ts @@ -79,6 +79,8 @@ window.wingEnv = ${JSON.stringify(this.environmentVariables, null, 2)};` this.childProcess?.kill("SIGINT"); } + public async save(): Promise {} + private addTrace(message: string): void { this.context.addTrace({ type: TraceType.RESOURCE, diff --git a/libs/wingsdk/src/target-sim/react-app.ts b/libs/wingsdk/src/target-sim/react-app.ts index d6f8e684d20..14cc7e3f6ed 100644 --- a/libs/wingsdk/src/target-sim/react-app.ts +++ b/libs/wingsdk/src/target-sim/react-app.ts @@ -45,6 +45,7 @@ export class ReactApp extends ex.ReactApp implements ISimulatorResource { const schema: ReactAppSchema = { type: ex.REACT_APP_FQN, path: this.node.path, + addr: this.node.addr, props: { path: this._projectPath, startCommand: this._startCommand, diff --git a/libs/wingsdk/src/target-sim/redis.inflight.ts b/libs/wingsdk/src/target-sim/redis.inflight.ts index 843fe762e3c..ab62914e303 100644 --- a/libs/wingsdk/src/target-sim/redis.inflight.ts +++ b/libs/wingsdk/src/target-sim/redis.inflight.ts @@ -62,6 +62,8 @@ export class Redis execSync(`docker rm -f ${this.containerName}`); } + public async save(): Promise {} + public async rawClient(): Promise { if (this.connection) { return this.connection; diff --git a/libs/wingsdk/src/target-sim/redis.ts b/libs/wingsdk/src/target-sim/redis.ts index b605baa5af6..4ff633e25b3 100644 --- a/libs/wingsdk/src/target-sim/redis.ts +++ b/libs/wingsdk/src/target-sim/redis.ts @@ -20,6 +20,7 @@ export class Redis extends ex.Redis implements ISimulatorResource { const schema: RedisSchema = { type: ex.REDIS_FQN, path: this.node.path, + addr: this.node.addr, props: {}, attrs: {} as any, }; diff --git a/libs/wingsdk/src/target-sim/schedule.inflight.ts b/libs/wingsdk/src/target-sim/schedule.inflight.ts index 777e379a431..ded8d1b08b4 100644 --- a/libs/wingsdk/src/target-sim/schedule.inflight.ts +++ b/libs/wingsdk/src/target-sim/schedule.inflight.ts @@ -45,6 +45,8 @@ export class Schedule clearTimeout(this.intervalTimeout); } + public async save(): Promise {} + public async addEventSubscription( subscriber: string, subscriptionProps: EventSubscription diff --git a/libs/wingsdk/src/target-sim/schedule.ts b/libs/wingsdk/src/target-sim/schedule.ts index f4e4ed54c9b..31289df757a 100644 --- a/libs/wingsdk/src/target-sim/schedule.ts +++ b/libs/wingsdk/src/target-sim/schedule.ts @@ -68,6 +68,7 @@ export class Schedule extends cloud.Schedule implements ISimulatorResource { const schema: ScheduleSchema = { type: cloud.SCHEDULE_FQN, path: this.node.path, + addr: this.node.addr, props: { cronExpression: this.cronExpression, }, diff --git a/libs/wingsdk/src/target-sim/secret.inflight.ts b/libs/wingsdk/src/target-sim/secret.inflight.ts index eda95bb08a7..178bfb5fe1f 100644 --- a/libs/wingsdk/src/target-sim/secret.inflight.ts +++ b/libs/wingsdk/src/target-sim/secret.inflight.ts @@ -33,6 +33,8 @@ export class Secret implements ISecretClient, ISimulatorResourceInstance { public async cleanup(): Promise {} + public async save(): Promise {} + public async value(): Promise { this.context.addTrace({ data: { diff --git a/libs/wingsdk/src/target-sim/secret.ts b/libs/wingsdk/src/target-sim/secret.ts index d9b2ac80327..aeee0c16a7f 100644 --- a/libs/wingsdk/src/target-sim/secret.ts +++ b/libs/wingsdk/src/target-sim/secret.ts @@ -44,6 +44,7 @@ export class Secret extends cloud.Secret implements ISimulatorResource { const schema: SecretSchema = { type: cloud.SECRET_FQN, path: this.node.path, + addr: this.node.addr, props: { name: this.name, }, diff --git a/libs/wingsdk/src/target-sim/service.inflight.ts b/libs/wingsdk/src/target-sim/service.inflight.ts index 6e0a5379abf..d13f8113745 100644 --- a/libs/wingsdk/src/target-sim/service.inflight.ts +++ b/libs/wingsdk/src/target-sim/service.inflight.ts @@ -51,6 +51,8 @@ export class Service implements IServiceClient, ISimulatorResourceInstance { await this.stop(); } + public async save(): Promise {} + public async start(): Promise { // Do nothing if service is already running. if (this.running) { diff --git a/libs/wingsdk/src/target-sim/service.ts b/libs/wingsdk/src/target-sim/service.ts index ffbb17be2bc..d2c21f26a2a 100644 --- a/libs/wingsdk/src/target-sim/service.ts +++ b/libs/wingsdk/src/target-sim/service.ts @@ -25,6 +25,7 @@ export class Service extends cloud.Service implements ISimulatorResource { const schema: ServiceSchema = { type: cloud.SERVICE_FQN, path: this.node.path, + addr: this.node.addr, props: { environmentVariables: this.env, sourceCodeFile: relative(App.of(this).outdir, this.entrypoint), diff --git a/libs/wingsdk/src/target-sim/state.inflight.ts b/libs/wingsdk/src/target-sim/state.inflight.ts index 97820a012ba..12a57cb171c 100644 --- a/libs/wingsdk/src/target-sim/state.inflight.ts +++ b/libs/wingsdk/src/target-sim/state.inflight.ts @@ -14,6 +14,8 @@ export class State implements IStateClient, ISimulatorResourceInstance { public async cleanup(): Promise {} + public async save(): Promise {} + public async set(key: string, value: any): Promise { this.context.setResourceAttributes(this.context.resourcePath, { [key]: value, diff --git a/libs/wingsdk/src/target-sim/state.ts b/libs/wingsdk/src/target-sim/state.ts index 03fb0f1a934..337fa194d08 100644 --- a/libs/wingsdk/src/target-sim/state.ts +++ b/libs/wingsdk/src/target-sim/state.ts @@ -57,6 +57,7 @@ export class State extends Resource implements ISimulatorResource { return { type: STATE_FQN, path: this.node.path, + addr: this.node.addr, props: {}, attrs: {}, }; diff --git a/libs/wingsdk/src/target-sim/table.inflight.ts b/libs/wingsdk/src/target-sim/table.inflight.ts index 62e454cb508..44647fbd6b5 100644 --- a/libs/wingsdk/src/target-sim/table.inflight.ts +++ b/libs/wingsdk/src/target-sim/table.inflight.ts @@ -38,6 +38,8 @@ export class Table implements ITableClient, ISimulatorResourceInstance { public async cleanup(): Promise {} + public async save(): Promise {} + public async insert(key: string, row: Json): Promise { validateRow(row, this.columns); const anyRow = row as any; diff --git a/libs/wingsdk/src/target-sim/table.ts b/libs/wingsdk/src/target-sim/table.ts index 53dee20ebb7..6663052eeed 100644 --- a/libs/wingsdk/src/target-sim/table.ts +++ b/libs/wingsdk/src/target-sim/table.ts @@ -25,6 +25,7 @@ export class Table extends ex.Table implements ISimulatorResource { const schema: TableSchema = { type: ex.TABLE_FQN, path: this.node.path, + addr: this.node.addr, props: { name: this.name, columns: this.columns, diff --git a/libs/wingsdk/src/target-sim/test-runner.inflight.ts b/libs/wingsdk/src/target-sim/test-runner.inflight.ts index 5ab5e06d0e3..a9940f18109 100644 --- a/libs/wingsdk/src/target-sim/test-runner.inflight.ts +++ b/libs/wingsdk/src/target-sim/test-runner.inflight.ts @@ -23,6 +23,8 @@ export class TestRunner return; } + public async save(): Promise {} + public async listTests(): Promise { return Array.from(this.tests.keys()); } diff --git a/libs/wingsdk/src/target-sim/test-runner.ts b/libs/wingsdk/src/target-sim/test-runner.ts index 98244f55a6f..edab23072ea 100644 --- a/libs/wingsdk/src/target-sim/test-runner.ts +++ b/libs/wingsdk/src/target-sim/test-runner.ts @@ -22,6 +22,7 @@ export class TestRunner extends std.TestRunner implements ISimulatorResource { const schema: TestRunnerSchema = { type: std.TEST_RUNNER_FQN, path: this.node.path, + addr: this.node.addr, props: { tests, }, diff --git a/libs/wingsdk/src/target-sim/topic.inflight.ts b/libs/wingsdk/src/target-sim/topic.inflight.ts index 2b5be07bc1a..baa3fc375f9 100644 --- a/libs/wingsdk/src/target-sim/topic.inflight.ts +++ b/libs/wingsdk/src/target-sim/topic.inflight.ts @@ -30,6 +30,8 @@ export class Topic public async cleanup(): Promise {} + public async save(): Promise {} + private async publishMessage(message: string) { for (const subscriber of this.subscribers) { const fnClient = this.context.findInstance( diff --git a/libs/wingsdk/src/target-sim/topic.ts b/libs/wingsdk/src/target-sim/topic.ts index d1dcc291f0f..39d0ba00ae4 100644 --- a/libs/wingsdk/src/target-sim/topic.ts +++ b/libs/wingsdk/src/target-sim/topic.ts @@ -74,6 +74,7 @@ export class Topic extends cloud.Topic implements ISimulatorResource { const schema: TopicSchema = { type: cloud.TOPIC_FQN, path: this.node.path, + addr: this.node.addr, props: {}, attrs: {} as any, }; diff --git a/libs/wingsdk/src/target-sim/website.inflight.ts b/libs/wingsdk/src/target-sim/website.inflight.ts index b986ba1a804..0ac6fa0ac6f 100644 --- a/libs/wingsdk/src/target-sim/website.inflight.ts +++ b/libs/wingsdk/src/target-sim/website.inflight.ts @@ -66,6 +66,8 @@ export class Website implements IWebsiteClient, ISimulatorResourceInstance { this.server?.closeAllConnections(); } + public async save(): Promise {} + private addTrace(message: string): void { this.context.addTrace({ type: TraceType.RESOURCE, diff --git a/libs/wingsdk/src/target-sim/website.ts b/libs/wingsdk/src/target-sim/website.ts index 22f15ec290d..0e9ca5700eb 100644 --- a/libs/wingsdk/src/target-sim/website.ts +++ b/libs/wingsdk/src/target-sim/website.ts @@ -41,6 +41,7 @@ export class Website extends cloud.Website implements ISimulatorResource { const schema: WebsiteSchema = { type: cloud.WEBSITE_FQN, path: this.node.path, + addr: this.node.addr, props: { staticFilesPath: this.path, fileRoutes: this.fileRoutes }, attrs: {} as any, }; diff --git a/libs/wingsdk/src/target-tf-aws/app.ts b/libs/wingsdk/src/target-tf-aws/app.ts index d2011a38faf..5c296a3e50d 100644 --- a/libs/wingsdk/src/target-tf-aws/app.ts +++ b/libs/wingsdk/src/target-tf-aws/app.ts @@ -49,11 +49,6 @@ import { TEST_RUNNER_FQN } from "../std"; * for AWS resources. */ export class App extends CdktfApp { - /** - * The test runner for this app. - */ - protected readonly testRunner: TestRunner; - public readonly _target = "tf-aws"; private awsRegionProvider?: DataAwsRegion; @@ -68,10 +63,9 @@ export class App extends CdktfApp { super(props); new AwsProvider(this, "aws", {}); - this.testRunner = new TestRunner(this, "cloud.TestRunner"); this.subnets = {}; - this.synthRoots(props, this.testRunner); + TestRunner._createTree(this, props.rootConstruct); } protected typeForFqn(fqn: string): any { diff --git a/libs/wingsdk/src/target-tf-azure/app.ts b/libs/wingsdk/src/target-tf-azure/app.ts index d6ca7640686..d4ebfd4e61b 100644 --- a/libs/wingsdk/src/target-tf-azure/app.ts +++ b/libs/wingsdk/src/target-tf-azure/app.ts @@ -80,13 +80,11 @@ export class App extends CdktfApp { private _servicePlan?: ServicePlan; private _applicationInsights?: ApplicationInsights; private _logAnalyticsWorkspace?: LogAnalyticsWorkspace; - protected readonly testRunner: TestRunner; constructor(props: AzureAppProps) { super(props); this.location = props.location ?? process.env.AZURE_LOCATION; - this.testRunner = new TestRunner(this, "cloud.TestRunner"); - this.synthRoots(props, this.testRunner); + TestRunner._createTree(this, props.rootConstruct); // Using env variable for location is work around until we are // able to implement https://github.com/winglang/wing/issues/493 (policy as infrastructure) if (this.location === undefined) { @@ -109,21 +107,6 @@ export class App extends CdktfApp { }); } - protected synthRoots(props: AppProps, testRunner: TestRunner): void { - if (props.rootConstruct) { - const Root = props.rootConstruct; - if (this.isTestEnvironment) { - new Root(this, "env0"); - const tests = testRunner.findTests(); - for (let i = 1; i < tests.length; i++) { - new Root(this, "env" + i); - } - } else { - new Root(this, "Default"); - } - } - } - public get logAnalyticsWorkspace() { if (!this._logAnalyticsWorkspace) { this._logAnalyticsWorkspace = new LogAnalyticsWorkspace( diff --git a/libs/wingsdk/src/target-tf-gcp/app.ts b/libs/wingsdk/src/target-tf-gcp/app.ts index bb3125e2059..91f017e7a59 100644 --- a/libs/wingsdk/src/target-tf-gcp/app.ts +++ b/libs/wingsdk/src/target-tf-gcp/app.ts @@ -53,7 +53,6 @@ export class App extends CdktfApp { public readonly zone: string; public readonly _target = "tf-gcp"; - protected readonly testRunner: TestRunner; constructor(props: AppProps) { super(props); @@ -80,23 +79,7 @@ export class App extends CdktfApp { }); new RandomProvider(this, "random"); - this.testRunner = new TestRunner(this, "cloud.TestRunner"); - this.synthRoots(props, this.testRunner); - } - - protected synthRoots(props: AppProps, testRunner: TestRunner): void { - if (props.rootConstruct) { - const Root = props.rootConstruct; - if (this.isTestEnvironment) { - new Root(this, "env0"); - const tests = testRunner.findTests(); - for (let i = 1; i < tests.length; i++) { - new Root(this, "env" + i); - } - } else { - new Root(this, "Default"); - } - } + TestRunner._createTree(this, props.rootConstruct); } protected typeForFqn(fqn: string): any { diff --git a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap index cf98b35fcb7..84df72b27a6 100644 --- a/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap +++ b/libs/wingsdk/test/core/__snapshots__/connections.test.ts.snap @@ -30,14 +30,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8220a82a4ad9c25a4f236946f350d2ac081dd7bbc", "attrs": {}, "path": "root/my_bucket", "props": { @@ -48,6 +41,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -142,19 +136,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_bucket": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/sim-app.ts b/libs/wingsdk/test/sim-app.ts index 0cd8b66b155..c8a98224ac4 100644 --- a/libs/wingsdk/test/sim-app.ts +++ b/libs/wingsdk/test/sim-app.ts @@ -5,6 +5,14 @@ import { Function, IFunctionClient } from "../src/cloud"; import { Simulator, Testing } from "../src/simulator"; import { App } from "../src/target-sim/app"; +/** + * @see AppProps + */ +export interface SimAppProps { + readonly isTestEnvironment?: boolean; + readonly rootConstruct?: any; +} + /** * A simulated app. * @@ -16,8 +24,14 @@ export class SimApp extends App { private _synthesized: boolean = false; private functionIndex: number = 0; - constructor() { - super({ outdir: mkdtemp(), entrypointDir: __dirname }); + constructor(props: SimAppProps = {}) { + const { isTestEnvironment, rootConstruct } = props; + super({ + outdir: mkdtemp(), + entrypointDir: __dirname, + isTestEnvironment, + rootConstruct, + }); // symlink the node_modules so we can test imports and stuffs fs.symlinkSync( @@ -54,10 +68,10 @@ export class SimApp extends App { * * @returns A started `Simulator` instance. No need to call `start()` again. */ - public async startSimulator(): Promise { + public async startSimulator(stateDir?: string): Promise { this.synthIfNeeded(); const simfile = this.synth(); - const s = new Simulator({ simfile }); + const s = new Simulator({ simfile, stateDir }); await s.start(); return s; } diff --git a/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap b/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap index b6f1bf56039..1c01368dc89 100644 --- a/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap +++ b/libs/wingsdk/test/simulator/__snapshots__/simulator.test.ts.snap @@ -4,40 +4,14 @@ exports[`provides raw tree data 1`] = ` { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "test": { - "children": { - "Handler": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A cloud function (FaaS)", - "title": "Function", - }, - "id": "Handler", - "path": "root/test/Handler", - }, - }, "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70", }, "display": { "description": "A cloud unit test.", + "hidden": true, "title": "Test", }, "id": "test", diff --git a/libs/wingsdk/test/simulator/on-trace.test.ts b/libs/wingsdk/test/simulator/on-trace.test.ts index 7e9b650da6e..ffab782d4ef 100644 --- a/libs/wingsdk/test/simulator/on-trace.test.ts +++ b/libs/wingsdk/test/simulator/on-trace.test.ts @@ -27,5 +27,5 @@ test("onTrace", async () => { await s.stop(); // THEN - expect(numTraces).toEqual(5); // create resources, put operation, delete resources + expect(numTraces).toEqual(3); // create resources, put operation, delete resources }); diff --git a/libs/wingsdk/test/simulator/simulator.test.ts b/libs/wingsdk/test/simulator/simulator.test.ts index cb640dab694..5094e17afa7 100644 --- a/libs/wingsdk/test/simulator/simulator.test.ts +++ b/libs/wingsdk/test/simulator/simulator.test.ts @@ -8,7 +8,7 @@ import { SimApp } from "../sim-app"; describe("run single test", () => { test("test not found", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); const sim = await app.startSimulator(); const testRunner = sim.getResource( "/cloud.TestRunner" @@ -20,7 +20,7 @@ describe("run single test", () => { }); test("happy path", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); makeTest(app, "test", ["console.log('hi');"]); app.synth(); const sim = await app.startSimulator(); @@ -33,7 +33,7 @@ describe("run single test", () => { }); test("test failure", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); makeTest(app, "test", [ "console.log('I am about to fail');", "throw new Error('test failed');", @@ -49,7 +49,7 @@ describe("run single test", () => { }); test("not a function", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); new Bucket(app, "test"); const sim = await app.startSimulator(); @@ -65,7 +65,7 @@ describe("run single test", () => { describe("run all tests", () => { test("no tests", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); const sim = await app.startSimulator(); const testRunner = sim.getResource( "/cloud.TestRunner" @@ -76,7 +76,7 @@ describe("run all tests", () => { }); test("single test", async () => { - const app = new SimApp(); + const app = new SimApp({ isTestEnvironment: true }); makeTest(app, "test", ["console.log('hi');"]); const sim = await app.startSimulator(); @@ -89,11 +89,48 @@ describe("run all tests", () => { }); test("multiple tests", async () => { - const app = new SimApp(); - makeTest(app, "test", ["console.log('hi');"]); - makeTest(app, "test:bla", ["console.log('hi');"]); - makeTest(app, "test:blue", ["console.log('hi');"]); - new Bucket(app, "mytestbucket"); + class Root extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + makeTest(this, "test", ["console.log('hi');"]); + makeTest(this, "test:bla", ["console.log('hi');"]); + makeTest(this, "test:blue", ["console.log('hi');"]); + } + } + const app = new SimApp({ isTestEnvironment: true, rootConstruct: Root }); + + const sim = await app.startSimulator(); + const testRunner = sim.getResource( + "/cloud.TestRunner" + ) as ITestRunnerClient; + const results = await runAllTests(testRunner); + await sim.stop(); + expect(results.length).toEqual(3); + expect(results.map((r) => r.path).sort()).toStrictEqual([ + "root/env0/test", + "root/env1/test:bla", + "root/env2/test:blue", + ]); + }); + + test("tests with same name in different scopes", async () => { + class ConstructWithTest extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + makeTest(this, "test", ["console.log('hi');"]); + } + } + + class Root extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + + makeTest(this, "test", ["console.log('hi');"]); + new ConstructWithTest(this, "scope1"); + new ConstructWithTest(this, "scope2"); + } + } + const app = new SimApp({ isTestEnvironment: true, rootConstruct: Root }); const sim = await app.startSimulator(); const testRunner = sim.getResource( @@ -103,9 +140,9 @@ describe("run all tests", () => { await sim.stop(); expect(results.length).toEqual(3); expect(results.map((r) => r.path).sort()).toStrictEqual([ - "root/test", - "root/test:bla", - "root/test:blue", + "root/env0/test", + "root/env1/scope1/test", + "root/env2/scope2/test", ]); }); }); diff --git a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap index e56ec3cbf5a..6f28775d786 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/api.test.ts.snap @@ -35,14 +35,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -54,6 +47,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -88,6 +82,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -192,19 +187,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -258,7 +240,6 @@ return class Handler { exports[`api handler can read the request params 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -270,7 +251,6 @@ exports[`api handler can read the request params 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -304,14 +284,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -323,6 +296,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -347,6 +321,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -447,19 +422,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -513,7 +475,6 @@ return class Handler { exports[`api handler can read the request path 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -525,7 +486,6 @@ exports[`api handler can read the request path 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -559,14 +519,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -578,6 +531,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -602,6 +556,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -702,19 +657,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -768,7 +710,6 @@ return class Handler { exports[`api handler can set response headers 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -780,7 +721,6 @@ exports[`api handler can set response headers 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -814,14 +754,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -833,6 +766,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -857,6 +791,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -957,19 +892,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -1023,7 +945,6 @@ return class Handler { exports[`api response returns Content-Type header from inflight 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -1035,7 +956,6 @@ exports[`api response returns Content-Type header from inflight 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -1069,14 +989,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -1088,6 +1001,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -1112,6 +1026,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -1212,19 +1127,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -1278,7 +1180,6 @@ return class Handler { exports[`api response returns default Content-Type header 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -1290,7 +1191,6 @@ exports[`api response returns default Content-Type header 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -1324,14 +1224,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -1343,6 +1236,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -1367,6 +1261,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -1467,19 +1362,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -1533,7 +1415,6 @@ return class Handler { exports[`api supports every method type 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -1563,7 +1444,6 @@ exports[`api supports every method type 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -1627,14 +1507,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -1646,6 +1519,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -1730,6 +1604,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -1854,19 +1729,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -1920,7 +1782,6 @@ return class Handler { exports[`api with 'name' & 'age' parameter 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -1932,7 +1793,6 @@ exports[`api with 'name' & 'age' parameter 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -1966,14 +1826,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -1985,6 +1838,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -2026,6 +1880,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -2126,19 +1981,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -2192,7 +2034,6 @@ return class Handler { exports[`api with 'name' parameter 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -2204,7 +2045,6 @@ exports[`api with 'name' parameter 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -2238,14 +2078,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -2257,6 +2090,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -2290,6 +2124,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -2390,19 +2225,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -2484,14 +2306,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -2503,6 +2318,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -2539,6 +2355,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -2643,19 +2460,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -2709,7 +2513,6 @@ return class Handler { exports[`api with multiple methods on same route 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -2728,7 +2531,6 @@ exports[`api with multiple methods on same route 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -2782,14 +2584,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -2801,6 +2596,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -2835,6 +2631,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -2852,6 +2649,7 @@ return class Handler { "type": "@winglang/sdk.sim.EventMapping", }, { + "addr": "c84819d7712e30f38cf7731fcfbe96cbc39c7e75d3", "attrs": {}, "path": "root/my_api/OnRequestHandler1", "props": { @@ -2863,6 +2661,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c874047faffbf7bc1cdc78bb5f3f942cf01cd31844", "attrs": {}, "path": "root/my_api/ApiEventMapping1", "props": { @@ -2963,19 +2762,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -3053,7 +2839,6 @@ return class Handler { exports[`api with multiple routes 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -3072,7 +2857,6 @@ exports[`api with multiple routes 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -3126,14 +2910,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -3145,6 +2922,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -3181,6 +2959,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -3198,6 +2977,7 @@ return class Handler { "type": "@winglang/sdk.sim.EventMapping", }, { + "addr": "c84819d7712e30f38cf7731fcfbe96cbc39c7e75d3", "attrs": {}, "path": "root/my_api/OnRequestHandler1", "props": { @@ -3209,6 +2989,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c874047faffbf7bc1cdc78bb5f3f942cf01cd31844", "attrs": {}, "path": "root/my_api/ApiEventMapping1", "props": { @@ -3309,19 +3090,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -3399,7 +3167,6 @@ return class Handler { exports[`api with one GET route 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -3411,7 +3178,6 @@ exports[`api with one GET route 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -3445,14 +3211,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -3464,6 +3223,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -3488,6 +3248,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -3588,19 +3349,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -3654,7 +3402,6 @@ return class Handler { exports[`api with one GET route with request params 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -3666,7 +3413,6 @@ exports[`api with one GET route with request params 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -3700,14 +3446,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -3719,6 +3458,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -3752,6 +3492,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -3852,19 +3593,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -3918,7 +3646,6 @@ return class Handler { exports[`api with one POST route, with body 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Server listening on http://127.0.0.1:", "@winglang/sdk.cloud.Api created.", @@ -3930,7 +3657,6 @@ exports[`api with one POST route, with body 1`] = ` "Closing server on http://127.0.0.1:", "@winglang/sdk.cloud.Api deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -3964,14 +3690,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82d41b2501ac42e07e4565202a5b87a180a01c6a2", "attrs": {}, "path": "root/my_api/OnRequestHandler0", "props": { @@ -3983,6 +3702,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -4007,6 +3727,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Api", }, { + "addr": "c8a199e7bc539eb442a47653fe0f2b1f0bf50aa6d1", "attrs": {}, "path": "root/my_api/ApiEventMapping0", "props": { @@ -4107,19 +3828,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "children": { "ApiEventMapping0": { @@ -4180,14 +3888,7 @@ exports[`create an api 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8f2ecf2132465e146aa80cb01f4e5ab1968f4314a", "attrs": {}, "path": "root/my_api", "props": { @@ -4282,19 +3983,6 @@ exports[`create an api 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_api": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap index 30e6f4661ae..14eb0538388 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/bucket.test.ts.snap @@ -2,7 +2,6 @@ exports[`bucket on event creates 3 topics, and sends the right event and key in the event handlers 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.cloud.Topic created.", @@ -15,19 +14,19 @@ exports[`bucket on event creates 3 topics, and sends the right event and key in "@winglang/sdk.cloud.Function created.", "@winglang/sdk.sim.EventMapping created.", "Publish (message=a).", - "Sending message (message=a, subscriber=sim-6).", + "Sending message (message=a, subscriber=sim-5).", "Put (key=a).", "Put (key=a).", "Invoke (payload=\\"a\\").", "Get (key=a).", "Publish (message=a).", - "Sending message (message=a, subscriber=sim-8).", + "Sending message (message=a, subscriber=sim-7).", "Put (key=a).", "Put (key=a).", "Invoke (payload=\\"a\\").", "Get (key=a).", "Publish (message=a).", - "Sending message (message=a, subscriber=sim-10).", + "Sending message (message=a, subscriber=sim-9).", "Delete (key=a).", "Put (key=a).", "Invoke (payload=\\"a\\").", @@ -43,20 +42,17 @@ exports[`bucket on event creates 3 topics, and sends the right event and key in "@winglang/sdk.cloud.Topic deleted.", "@winglang/sdk.cloud.Topic deleted.", "@winglang/sdk.cloud.Topic deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`can add file in preflight 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "Adding object from preflight (key=test.txt).", "@winglang/sdk.cloud.Bucket created.", "Get (key=test.txt).", "Get (key=test.txt).", "List (prefix=null).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -69,14 +65,7 @@ exports[`can add file in preflight 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8220a82a4ad9c25a4f236946f350d2ac081dd7bbc", "attrs": {}, "path": "root/my_bucket", "props": { @@ -172,19 +161,6 @@ exports[`can add file in preflight 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_bucket": { "constructInfo": { "fqn": "constructs.Construct", @@ -212,14 +188,12 @@ exports[`can add file in preflight 2`] = ` exports[`can add object in preflight 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "Adding object from preflight (key=greeting.txt).", "@winglang/sdk.cloud.Bucket created.", "Get (key=greeting.txt).", "Get (key=greeting.txt).", "List (prefix=null).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -232,14 +206,7 @@ exports[`can add object in preflight 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8220a82a4ad9c25a4f236946f350d2ac081dd7bbc", "attrs": {}, "path": "root/my_bucket", "props": { @@ -335,19 +302,6 @@ exports[`can add object in preflight 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_bucket": { "constructInfo": { "fqn": "constructs.Construct", @@ -382,14 +336,7 @@ exports[`create a bucket 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8220a82a4ad9c25a4f236946f350d2ac081dd7bbc", "attrs": {}, "path": "root/my_bucket", "props": { @@ -483,19 +430,6 @@ exports[`create a bucket 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_bucket": { "constructInfo": { "fqn": "constructs.Construct", @@ -523,11 +457,9 @@ exports[`create a bucket 1`] = ` exports[`get invalid object throws an error 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Get (key=unknown.txt).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -540,14 +472,7 @@ exports[`get invalid object throws an error 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8220a82a4ad9c25a4f236946f350d2ac081dd7bbc", "attrs": {}, "path": "root/my_bucket", "props": { @@ -641,19 +566,6 @@ exports[`get invalid object throws an error 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_bucket": { "constructInfo": { "fqn": "constructs.Construct", @@ -681,7 +593,6 @@ exports[`get invalid object throws an error 2`] = ` exports[`list respects prefixes 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=path/dir1/file1.txt).", "Put (key=path/dir2/file2.txt).", @@ -690,13 +601,11 @@ exports[`list respects prefixes 1`] = ` "List (prefix=path/dir1).", "List (prefix=path/dir2).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`objects can have keys that look like directories 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=foo).", "Put (key=foo/).", @@ -710,13 +619,11 @@ exports[`objects can have keys that look like directories 1`] = ` "List (prefix=foo/bar/).", "List (prefix=foo/bar/baz).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`put and get metadata of objects from bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=file1.main.w).", "Put (key=file2.txt).", @@ -725,79 +632,67 @@ exports[`put and get metadata of objects from bucket 1`] = ` "Metadata (key=file2.txt).", "Metadata (key=file3.txt).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`put and get object from bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=greeting.txt).", "Get (key=greeting.txt).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`put multiple json objects and list all from bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put Json (key=greeting1.json).", "Put Json (key=greeting2.json).", "Put Json (key=greeting3.json).", "List (prefix=null).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`put multiple objects and list all from bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=greeting1.txt).", "Put (key=greeting2.txt).", "Put (key=greeting3.txt).", "List (prefix=null).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`remove object from a bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=unknown.txt).", "Delete (key=unknown.txt).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`remove object from a bucket with mustExist as option 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Bucket created.", "Put (key=unknown.txt).", "Delete (key=unknown.txt).", "@winglang/sdk.cloud.Bucket deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`removing a key will call onDelete method 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.cloud.Bucket created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.sim.EventMapping created.", "Put (key=unknown.txt).", "Publish (message=unknown.txt).", - "Sending message (message=unknown.txt, subscriber=sim-3).", + "Sending message (message=unknown.txt, subscriber=sim-2).", "Delete (key=unknown.txt).", "Received unknown.txt", "Invoke (payload=\\"unknown.txt\\").", @@ -805,19 +700,17 @@ exports[`removing a key will call onDelete method 1`] = ` "@winglang/sdk.cloud.Function deleted.", "@winglang/sdk.cloud.Bucket deleted.", "@winglang/sdk.cloud.Topic deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`update an object in bucket 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.cloud.Bucket created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.sim.EventMapping created.", "Publish (message=greeting.txt).", - "Sending message (message=greeting.txt, subscriber=sim-3).", + "Sending message (message=greeting.txt, subscriber=sim-2).", "Put (key=greeting.txt).", "Invoke (payload=\\"greeting.txt\\").", "Subscriber error: TypeError: this.handler.handle is not a function", @@ -826,6 +719,5 @@ exports[`update an object in bucket 1`] = ` "@winglang/sdk.cloud.Function deleted.", "@winglang/sdk.cloud.Bucket deleted.", "@winglang/sdk.cloud.Topic deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; diff --git a/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap index 521b957bd65..7ed74b776f2 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/counter.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a counter 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -108,19 +101,6 @@ exports[`create a counter 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -148,14 +128,12 @@ exports[`create a counter 1`] = ` exports[`dec 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Dec (amount=1).", "Dec (amount=1).", "Dec (amount=10).", "Dec (amount=10).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -168,14 +146,7 @@ exports[`dec 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -267,19 +238,6 @@ exports[`dec 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -307,14 +265,12 @@ exports[`dec 2`] = ` exports[`inc 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Inc (amount=1).", "Inc (amount=1).", "Inc (amount=10).", "Inc (amount=10).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -327,14 +283,7 @@ exports[`inc 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -426,19 +375,6 @@ exports[`inc 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -466,14 +402,12 @@ exports[`inc 2`] = ` exports[`key dec 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Dec (amount=1, key: my-key).", "Dec (amount=1, key: my-key).", "Dec (amount=10, key: my-key).", "Dec (amount=10, key: my-key).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -486,14 +420,7 @@ exports[`key dec 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -585,19 +512,6 @@ exports[`key dec 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -625,14 +539,12 @@ exports[`key dec 2`] = ` exports[`key inc 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Inc (amount=1, key: my-key).", "Inc (amount=1, key: my-key).", "Inc (amount=10, key: my-key).", "Inc (amount=10, key: my-key).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -645,14 +557,7 @@ exports[`key inc 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -744,19 +649,6 @@ exports[`key inc 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -784,12 +676,10 @@ exports[`key inc 2`] = ` exports[`key set to new value 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Set (value=5, key: my-key).", "Peek (value=5, key: my-key).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -802,14 +692,7 @@ exports[`key set to new value 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -901,19 +784,6 @@ exports[`key set to new value 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", @@ -941,12 +811,10 @@ exports[`key set to new value 2`] = ` exports[`set to new value 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Counter created.", "Set (value=5).", "Peek (value=5).", "@winglang/sdk.cloud.Counter deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -959,14 +827,7 @@ exports[`set to new value 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c82c1419dede49fb73e65c4df6565dc606f828ef99", "attrs": {}, "path": "root/my_counter", "props": { @@ -1058,19 +919,6 @@ exports[`set to new value 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_counter": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/dynamodb-table.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/dynamodb-table.test.ts.snap index 56f63384935..567941441e3 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/dynamodb-table.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/dynamodb-table.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a table 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c80d8c0710fc41df32eaa9895ae0bbd6cfd22762c2", "attrs": {}, "path": "root/create_table", "props": { @@ -112,19 +105,6 @@ exports[`create a table 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "create_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -152,10 +132,8 @@ exports[`create a table 1`] = ` exports[`get item 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.DynamodbTable created.", "@winglang/sdk.ex.DynamodbTable deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -168,14 +146,7 @@ exports[`get item 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8b976f0619d4aad0e4bb55cbda7b8975704b8b11a", "attrs": {}, "path": "root/get_table", "props": { @@ -271,19 +242,6 @@ exports[`get item 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "get_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -311,10 +269,8 @@ exports[`get item 2`] = ` exports[`put item 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.DynamodbTable created.", "@winglang/sdk.ex.DynamodbTable deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -327,14 +283,7 @@ exports[`put item 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8fa1029e0255990ff9eb3bf212931386890380f82", "attrs": {}, "path": "root/put_table", "props": { @@ -430,19 +379,6 @@ exports[`put item 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "put_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -470,10 +406,8 @@ exports[`put item 2`] = ` exports[`update item 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.DynamodbTable created.", "@winglang/sdk.ex.DynamodbTable deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -486,14 +420,7 @@ exports[`update item 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8f403ebb1894f2ea172e92af9090b7c8a25806934", "attrs": {}, "path": "root/update_table", "props": { @@ -589,19 +516,6 @@ exports[`update item 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "update_table": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap index cd61e38d3a7..493b99e5b53 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/file-counter.test.ts.snap @@ -75,14 +75,7 @@ bucket: (function() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c87855e817fa3df0d5ce8ae290bf53c8ce4ecd8d46", "attrs": {}, "path": "root/HelloWorld/Counter", "props": { @@ -91,6 +84,7 @@ bucket: (function() { "type": "@winglang/sdk.cloud.Counter", }, { + "addr": "c80e3625bbefd53d8c61fbb978711d410b5f2a41c8", "attrs": {}, "path": "root/HelloWorld/Bucket", "props": { @@ -101,6 +95,7 @@ bucket: (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8e82e9fd83d9e59c5af169a3042b9ed0b40e91185", "attrs": {}, "path": "root/HelloWorld/Queue/SetConsumer0", "props": { @@ -115,6 +110,7 @@ bucket: (function() { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8de0494647ac0bdaec85a77e2a164cfbcfecc5ca1", "attrs": {}, "path": "root/HelloWorld/Queue", "props": { @@ -124,6 +120,7 @@ bucket: (function() { "type": "@winglang/sdk.cloud.Queue", }, { + "addr": "c80de7940bef4e6ad61443a5ed07362f300a117b29", "attrs": {}, "path": "root/HelloWorld/Queue/QueueEventMapping0", "props": { @@ -291,19 +288,6 @@ bucket: (function() { "id": "HelloWorld", "path": "root/HelloWorld", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap index a9b4d055d1b..26f70917e45 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/function.test.ts.snap @@ -37,14 +37,7 @@ async handle(event) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -141,19 +134,6 @@ async handle(event) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_function": { "constructInfo": { "fqn": "constructs.Construct", @@ -181,11 +161,9 @@ async handle(event) { exports[`invoke function fails 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Invoke (payload=\\"{\\\\\\"name\\\\\\":\\\\\\"alice\\\\\\"}\\").", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -226,14 +204,7 @@ async handle(event) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -328,19 +299,6 @@ async handle(event) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_function": { "constructInfo": { "fqn": "constructs.Construct", @@ -368,11 +326,9 @@ async handle(event) { exports[`invoke function succeeds 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Invoke (payload=\\"{\\\\\\"name\\\\\\":\\\\\\"Alice\\\\\\"}\\").", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -413,14 +369,7 @@ async handle(event) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -515,19 +464,6 @@ async handle(event) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_function": { "constructInfo": { "fqn": "constructs.Construct", @@ -555,11 +491,9 @@ async handle(event) { exports[`invoke function with environment variables 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Invoke (payload=\\"{\\\\\\"name\\\\\\":\\\\\\"Alice\\\\\\"}\\").", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -600,14 +534,7 @@ async handle(event) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -704,19 +631,6 @@ async handle(event) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_function": { "constructInfo": { "fqn": "constructs.Construct", @@ -744,11 +658,9 @@ async handle(event) { exports[`invoke function with process.exit(1) 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "Invoke (payload=\\"{}\\").", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -779,14 +691,7 @@ async handle() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c85c4e0e66bf385ab6b159bab34fb32dd81aad0a1d", "attrs": {}, "path": "root/my_function", "props": { @@ -881,19 +786,6 @@ async handle() { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_function": { "constructInfo": { "fqn": "constructs.Construct", @@ -1008,14 +900,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8d5fca2ff1b96bd65cc21384259b53ae9f3d4971c", "attrs": {}, "path": "root/Function.0", "props": { @@ -1027,6 +912,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c89ed254f66166d83153cc0a4952a15be63d47b0d2", "attrs": {}, "path": "root/Function.1", "props": { @@ -1038,6 +924,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8cd6c39da22910102d0cfeb2cb96f2160fa79e517", "attrs": {}, "path": "root/Function.2", "props": { @@ -1049,6 +936,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8badafa75a67ff66740e0c5fbbb392ab574b52b3c", "attrs": {}, "path": "root/Function.3", "props": { @@ -1191,19 +1079,6 @@ return class Handler { "id": "Function.3", "path": "root/Function.3", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap index 3d57ddb102e..5d3aeb6b870 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/immutable-capture.test.ts.snap @@ -29,14 +29,7 @@ my_capture: [\\"hello\\",\\"dude\\"] "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -143,19 +136,6 @@ my_capture: [\\"hello\\",\\"dude\\"] "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -232,14 +212,7 @@ my_buckets: [(function() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c87be5f7041ad818f5140e6f2bd6ce47bf4fecd6d0", "attrs": {}, "path": "root/B1", "props": { @@ -250,6 +223,7 @@ my_buckets: [(function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c899b98e73c999c57056ae021185038acf300e8055", "attrs": {}, "path": "root/B2", "props": { @@ -260,6 +234,7 @@ my_buckets: [(function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -393,19 +368,6 @@ my_buckets: [(function() { "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -448,14 +410,7 @@ my_array: [{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": 0.1666666666666666 "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -562,19 +517,6 @@ my_array: [{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": 0.1666666666666666 "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -616,14 +558,7 @@ my_array: [new Map([[\\"foo\\",1],[\\"bar\\",2]]),new Map([[\\"foo\\",3],[\\"bar "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -730,19 +665,6 @@ my_array: [new Map([[\\"foo\\",1],[\\"bar\\",2]]),new Map([[\\"foo\\",3],[\\"bar "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -783,14 +705,7 @@ my_capture: false "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -897,19 +812,6 @@ my_capture: false "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -952,14 +854,7 @@ my_capture: {\\"seconds\\": 7200,\\"minutes\\": 120,\\"hours\\": 2,} "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1066,19 +961,6 @@ my_capture: {\\"seconds\\": 7200,\\"minutes\\": 120,\\"hours\\": 2,} "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1123,14 +1005,7 @@ my_capture: new Map([[\\"foo\\",123],[\\"bar\\",456]]) "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1237,19 +1112,6 @@ my_capture: new Map([[\\"foo\\",123],[\\"bar\\",456]]) "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1296,14 +1158,7 @@ my_map: new Map([[\\"foo\\",[1,2]],[\\"bar\\",[3,4]]]) "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1410,19 +1265,6 @@ my_map: new Map([[\\"foo\\",[1,2]],[\\"bar\\",[3,4]]]) "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1466,14 +1308,7 @@ my_map: new Map([[\\"foo\\",[{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1580,19 +1415,6 @@ my_map: new Map([[\\"foo\\",[{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1666,14 +1488,7 @@ my_map: new Map([[\\"foo\\",(function() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c87be5f7041ad818f5140e6f2bd6ce47bf4fecd6d0", "attrs": {}, "path": "root/B1", "props": { @@ -1684,6 +1499,7 @@ my_map: new Map([[\\"foo\\",(function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c899b98e73c999c57056ae021185038acf300e8055", "attrs": {}, "path": "root/B2", "props": { @@ -1694,6 +1510,7 @@ my_map: new Map([[\\"foo\\",(function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1827,19 +1644,6 @@ my_map: new Map([[\\"foo\\",(function() { "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1880,14 +1684,7 @@ my_capture: 123 "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -1994,19 +1791,6 @@ my_capture: 123 "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2050,14 +1834,7 @@ my_capture: new Set([\\"boom\\",\\"bam\\",\\"bang\\"]) "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -2164,19 +1941,6 @@ my_capture: new Set([\\"boom\\",\\"bam\\",\\"bang\\"]) "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2219,14 +1983,7 @@ my_set: new Set([{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": 0.1666666666 "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -2333,19 +2090,6 @@ my_set: new Set([{\\"seconds\\": 600,\\"minutes\\": 10,\\"hours\\": 0.1666666666 "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2387,14 +2131,7 @@ my_capture: \\"bam bam bam\\" "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -2501,19 +2238,6 @@ my_capture: \\"bam bam bam\\" "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2557,14 +2281,7 @@ my_capture: {\\"hello\\": \\"dude\\",\\"world\\": \\"cup\\",\\"foo\\": \\"bar\\" "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -2671,19 +2388,6 @@ my_capture: {\\"hello\\": \\"dude\\",\\"world\\": \\"cup\\",\\"foo\\": \\"bar\\" "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2727,14 +2431,7 @@ my_struct: {\\"foo\\": new Map([[\\"foo\\",1],[\\"bar\\",2]]),\\"bar\\": new Map "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -2841,19 +2538,6 @@ my_struct: {\\"foo\\": new Map([[\\"foo\\",1],[\\"bar\\",2]]),\\"bar\\": new Map "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -2977,14 +2661,7 @@ my_struct: {\\"bucky\\": (function() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c87be5f7041ad818f5140e6f2bd6ce47bf4fecd6d0", "attrs": {}, "path": "root/B1", "props": { @@ -2995,6 +2672,7 @@ my_struct: {\\"bucky\\": (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c899b98e73c999c57056ae021185038acf300e8055", "attrs": {}, "path": "root/B2", "props": { @@ -3005,6 +2683,7 @@ my_struct: {\\"bucky\\": (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c832c4af421d07265328cd90ad7ace99950120daf4", "attrs": {}, "path": "root/B3", "props": { @@ -3015,6 +2694,7 @@ my_struct: {\\"bucky\\": (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8512a0fbb3e6bd048ba3e57550a8ef265ea7944ef", "attrs": {}, "path": "root/B4", "props": { @@ -3025,6 +2705,7 @@ my_struct: {\\"bucky\\": (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8e8026b7368f86ad7082a73d4943ebe171d7ab674", "attrs": {}, "path": "root/B5", "props": { @@ -3035,6 +2716,7 @@ my_struct: {\\"bucky\\": (function() { "type": "@winglang/sdk.cloud.Bucket", }, { + "addr": "c8e6b4af896782ab4057ebb2193266e56b0b6dfeb0", "attrs": {}, "path": "root/Function", "props": { @@ -3207,19 +2889,6 @@ my_struct: {\\"bucky\\": (function() { "id": "Function", "path": "root/Function", }, - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap index 2482282b40a..f86234a876f 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/on-deploy.test.ts.snap @@ -24,14 +24,7 @@ return class Handler { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c83fbf14da06343c694e42a8758f43bcb1f1c2c389", "attrs": {}, "path": "root/my_on_deploy/Function", "props": { @@ -43,6 +36,7 @@ return class Handler { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8e2618b976544550a8396a3817f0bad07099f7050", "attrs": {}, "path": "root/my_on_deploy", "props": { @@ -134,19 +128,6 @@ return class Handler { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_on_deploy": { "children": { "Function": { @@ -189,7 +170,6 @@ return class Handler { exports[`create an OnDeploy 2`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "super duper success", "Invoke (payload=\\"\\").", @@ -197,6 +177,5 @@ exports[`create an OnDeploy 2`] = ` "@winglang/sdk.cloud.OnDeploy created.", "@winglang/sdk.cloud.OnDeploy deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; diff --git a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap index a8518dca6ef..f71f16542f9 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/queue.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`create a queue 2`] = ` +exports[`create a queue 1`] = ` { "connections.json": { "connections": [], @@ -9,14 +9,7 @@ exports[`create a queue 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -109,19 +102,6 @@ exports[`create a queue 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "constructInfo": { "fqn": "constructs.Construct", @@ -149,18 +129,16 @@ exports[`create a queue 2`] = ` exports[`messages are not requeued if the function fails before timeout 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Queue created.", "@winglang/sdk.sim.EventMapping created.", "Push (messages=BAD MESSAGE).", - "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-1).", + "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-0).", "Invoke (payload=\\"{\\\\\\"messages\\\\\\":[\\\\\\"BAD MESSAGE\\\\\\"]}\\").", "Subscriber error - returning 1 messages to queue: ERROR", "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Queue deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -199,14 +177,7 @@ async handle(message) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e33b9b91c909e579b9d3d703146eb66c2a657ffc", "attrs": {}, "path": "root/my_queue/SetConsumer0", "props": { @@ -218,6 +189,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -227,6 +199,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Queue", }, { + "addr": "c8f9f7d56097ba3d2e0e82988718175a5d841f855e", "attrs": {}, "path": "root/my_queue/QueueEventMapping0", "props": { @@ -322,19 +295,6 @@ async handle(message) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "children": { "QueueEventMapping0": { @@ -388,18 +348,16 @@ async handle(message) { exports[`messages are requeued if the function fails after timeout 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Queue created.", "@winglang/sdk.sim.EventMapping created.", "Push (messages=BAD MESSAGE).", - "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-1).", + "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-0).", "Invoke (payload=\\"{\\\\\\"messages\\\\\\":[\\\\\\"BAD MESSAGE\\\\\\"]}\\").", "Subscriber error - returning 1 messages to queue: ERROR", "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Queue deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", "1 messages pushed back to queue after visibility timeout.", ] `; @@ -439,14 +397,7 @@ async handle(message) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e33b9b91c909e579b9d3d703146eb66c2a657ffc", "attrs": {}, "path": "root/my_queue/SetConsumer0", "props": { @@ -458,6 +409,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -467,6 +419,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Queue", }, { + "addr": "c8f9f7d56097ba3d2e0e82988718175a5d841f855e", "attrs": {}, "path": "root/my_queue/QueueEventMapping0", "props": { @@ -562,19 +515,6 @@ async handle(message) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "children": { "QueueEventMapping0": { @@ -628,11 +568,9 @@ async handle(message) { exports[`push rejects empty message 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Queue created.", "Push (messages=).", "@winglang/sdk.cloud.Queue deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -645,14 +583,7 @@ exports[`push rejects empty message 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -745,19 +676,6 @@ exports[`push rejects empty message 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "constructInfo": { "fqn": "constructs.Construct", @@ -785,7 +703,6 @@ exports[`push rejects empty message 2`] = ` exports[`queue batch size of 2, purge the queue 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Queue created.", "Push (messages=A).", "Push (messages=B).", @@ -793,7 +710,6 @@ exports[`queue batch size of 2, purge the queue 1`] = ` "Purge ().", "ApproxSize ().", "@winglang/sdk.cloud.Queue deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -806,14 +722,7 @@ exports[`queue batch size of 2, purge the queue 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -906,19 +815,6 @@ exports[`queue batch size of 2, purge the queue 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "constructInfo": { "fqn": "constructs.Construct", @@ -1021,14 +917,7 @@ async handle(message) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e33b9b91c909e579b9d3d703146eb66c2a657ffc", "attrs": {}, "path": "root/my_queue/SetConsumer0", "props": { @@ -1040,6 +929,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -1049,6 +939,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Queue", }, { + "addr": "c8f9f7d56097ba3d2e0e82988718175a5d841f855e", "attrs": {}, "path": "root/my_queue/QueueEventMapping0", "props": { @@ -1061,6 +952,7 @@ async handle(message) { "type": "@winglang/sdk.sim.EventMapping", }, { + "addr": "c8ab799f6c9c9a3cd279909012c4f322ab902f5e19", "attrs": {}, "path": "root/my_queue_messages/Function", "props": { @@ -1074,6 +966,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8e2354407fd3536187725c2b37c5327f47bb841e9", "attrs": {}, "path": "root/my_queue_messages", "props": { @@ -1165,19 +1058,6 @@ async handle(message) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "children": { "QueueEventMapping0": { @@ -1291,14 +1171,7 @@ async handle(message) { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e33b9b91c909e579b9d3d703146eb66c2a657ffc", "attrs": {}, "path": "root/my_queue/SetConsumer0", "props": { @@ -1310,6 +1183,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8dee4ef24593d08aa22e8845be36d0ee754fcf4cd", "attrs": {}, "path": "root/my_queue", "props": { @@ -1319,6 +1193,7 @@ async handle(message) { "type": "@winglang/sdk.cloud.Queue", }, { + "addr": "c8f9f7d56097ba3d2e0e82988718175a5d841f855e", "attrs": {}, "path": "root/my_queue/QueueEventMapping0", "props": { @@ -1414,19 +1289,6 @@ async handle(message) { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_queue": { "children": { "QueueEventMapping0": { diff --git a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap index ba8ffaab499..a3b986d4296 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/redis.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a Redis resource 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c84bd402f6d507613026d171fe74fc8ce07ced29ae", "attrs": {}, "path": "root/my_redis", "props": {}, @@ -106,19 +99,6 @@ exports[`create a Redis resource 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_redis": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap index 3d9c4fd2e4d..a75b4453f48 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/schedule.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a schedule 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8eac5abdbcb1c98c5525dcb3d0e38c0ccdfef4aed", "attrs": {}, "path": "root/my_schedule", "props": { @@ -108,19 +101,6 @@ exports[`create a schedule 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_schedule": { "constructInfo": { "fqn": "constructs.Construct", @@ -179,14 +159,7 @@ console.log(\\"Hello from schedule!\\"); "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c83eddbe8512d15b84969a611d4b5ca9ce55e1f808", "attrs": {}, "path": "root/my_schedule/OnTick0", "props": { @@ -198,6 +171,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8eac5abdbcb1c98c5525dcb3d0e38c0ccdfef4aed", "attrs": {}, "path": "root/my_schedule", "props": { @@ -206,6 +180,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Schedule", }, { + "addr": "c863abe75f0d01961369ad52fd7212846989919eaf", "attrs": {}, "path": "root/my_schedule/OnTickMapping0", "props": { @@ -299,19 +274,6 @@ console.log(\\"Hello from schedule!\\"); "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_schedule": { "children": { "OnTick0": { @@ -396,14 +358,7 @@ console.log(\\"Hello from schedule!\\"); "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c83eddbe8512d15b84969a611d4b5ca9ce55e1f808", "attrs": {}, "path": "root/my_schedule/OnTick0", "props": { @@ -415,6 +370,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8eac5abdbcb1c98c5525dcb3d0e38c0ccdfef4aed", "attrs": {}, "path": "root/my_schedule", "props": { @@ -423,6 +379,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Schedule", }, { + "addr": "c863abe75f0d01961369ad52fd7212846989919eaf", "attrs": {}, "path": "root/my_schedule/OnTickMapping0", "props": { @@ -516,19 +473,6 @@ console.log(\\"Hello from schedule!\\"); "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_schedule": { "children": { "OnTick0": { @@ -613,14 +557,7 @@ console.log(\\"Hello from schedule!\\"); "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c83eddbe8512d15b84969a611d4b5ca9ce55e1f808", "attrs": {}, "path": "root/my_schedule/OnTick0", "props": { @@ -632,6 +569,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8eac5abdbcb1c98c5525dcb3d0e38c0ccdfef4aed", "attrs": {}, "path": "root/my_schedule", "props": { @@ -640,6 +578,7 @@ console.log(\\"Hello from schedule!\\"); "type": "@winglang/sdk.cloud.Schedule", }, { + "addr": "c863abe75f0d01961369ad52fd7212846989919eaf", "attrs": {}, "path": "root/my_schedule/OnTickMapping0", "props": { @@ -733,19 +672,6 @@ console.log(\\"Hello from schedule!\\"); "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_schedule": { "children": { "OnTick0": { diff --git a/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap index 6103d71f622..bdd48034ce0 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/secret.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a secret 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c84793b7d2beb23443f2fa7f5d120c2cf330e038e4", "attrs": {}, "path": "root/my_secret", "props": { @@ -108,19 +101,6 @@ exports[`create a secret 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_secret": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap index 535bb466d1e..297e623a75c 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/service.test.ts.snap @@ -31,14 +31,7 @@ exports.handle = async function() { "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c815f66e1cb1ce843a78fc0ecb05e6fc56e3b51516", "attrs": {}, "path": "root/my_service", "props": { @@ -132,19 +125,6 @@ exports.handle = async function() { "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_service": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap index 7155ead9a0b..7c10af47689 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/table.test.ts.snap @@ -2,12 +2,10 @@ exports[`can add row in preflight 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "Adding initial row (key=joe-id).", "@winglang/sdk.ex.Table created.", "get row joe-id from table my_addrow_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -20,14 +18,7 @@ exports[`can add row in preflight 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -131,19 +122,6 @@ exports[`can add row in preflight 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -178,14 +156,7 @@ exports[`create a table 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -283,19 +254,6 @@ exports[`create a table 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -323,13 +281,11 @@ exports[`create a table 1`] = ` exports[`get row 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.Table created.", "insert row joe-id into the table my_get_table.", "get row joe-id from table my_get_table.", "get row NON_EXISTENT_KEY from table my_get_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -342,14 +298,7 @@ exports[`get row 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -447,19 +396,6 @@ exports[`get row 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -487,11 +423,9 @@ exports[`get row 2`] = ` exports[`insert row 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.Table created.", "insert row joe-id into the table my_insert_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -504,14 +438,7 @@ exports[`insert row 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -609,19 +536,6 @@ exports[`insert row 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -649,13 +563,11 @@ exports[`insert row 2`] = ` exports[`list table 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.Table created.", "insert row joe-id into the table my_list_table.", "insert row jane-id into the table my_list_table.", "list all rows from table my_list_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -668,14 +580,7 @@ exports[`list table 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -773,19 +678,6 @@ exports[`list table 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -813,12 +705,10 @@ exports[`list table 2`] = ` exports[`tryGet row 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.Table created.", "insert row joe-id into the table my_get_table.", "get row joe-id from table my_get_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -831,14 +721,7 @@ exports[`tryGet row 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -936,19 +819,6 @@ exports[`tryGet row 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", @@ -976,7 +846,6 @@ exports[`tryGet row 2`] = ` exports[`update row 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.ex.Table created.", "insert row joe-id into the table my_update_table.", "get row joe-id from table my_update_table.", @@ -984,7 +853,6 @@ exports[`update row 1`] = ` "update row joe-id in table my_update_table.", "get row joe-id from table my_update_table.", "@winglang/sdk.ex.Table deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; @@ -997,14 +865,7 @@ exports[`update row 2`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c8e507baf046ceb6108a9fe64c08a39ccc39ffe11c", "attrs": {}, "path": "root/my_table", "props": { @@ -1102,19 +963,6 @@ exports[`update row 2`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_table": { "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap index e12bddb30de..4d027c94fa8 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/test.test.ts.snap @@ -2,7 +2,7 @@ exports[`create a test 1`] = ` { - ".wing/handler_c818e9be.js": "\\"use strict\\"; + ".wing/handler_c86fc180.js": "\\"use strict\\"; exports.handler = async function(event) { return await (new ((function(){ return class Handler { @@ -27,22 +27,24 @@ async handle(event) { "simulator.json": { "resources": [ { + "addr": "c86fc1804106bd848769cb0ddbcb872aa1e47943f4", "attrs": {}, - "path": "root/test:my_test/Handler", + "path": "root/env0/test:my_test/Handler", "props": { "environmentVariables": {}, - "sourceCodeFile": ".wing/handler_c818e9be.js", + "sourceCodeFile": ".wing/handler_c86fc180.js", "sourceCodeLanguage": "javascript", "timeout": 60000, }, "type": "@winglang/sdk.cloud.Function", }, { + "addr": "c8647dd8d2adabe83cc081ebe0ccbefe4a068ef3bf", "attrs": {}, "path": "root/cloud.TestRunner", "props": { "tests": { - "root/test:my_test": "\${wsim#root/test:my_test/Handler#attrs.handle}", + "root/env0/test:my_test": "\${wsim#root/env0/test:my_test/Handler#attrs.handle}", }, }, "type": "@winglang/sdk.std.TestRunner", @@ -144,31 +146,41 @@ async handle(event) { "id": "cloud.TestRunner", "path": "root/cloud.TestRunner", }, - "test:my_test": { + "env0": { "children": { - "Handler": { + "test:my_test": { + "children": { + "Handler": { + "constructInfo": { + "fqn": "constructs.Construct", + "version": "10.2.70", + }, + "display": { + "description": "A cloud function (FaaS)", + "title": "Function", + }, + "id": "Handler", + "path": "root/env0/test:my_test/Handler", + }, + }, "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70", }, "display": { - "description": "A cloud function (FaaS)", - "title": "Function", + "description": "A cloud unit test.", + "title": "Test", }, - "id": "Handler", - "path": "root/test:my_test/Handler", + "id": "test:my_test", + "path": "root/env0/test:my_test", }, }, "constructInfo": { "fqn": "constructs.Construct", "version": "10.2.70", }, - "display": { - "description": "A cloud unit test.", - "title": "Test", - }, - "id": "test:my_test", - "path": "root/test:my_test", + "id": "env0", + "path": "root/env0", }, }, "constructInfo": { diff --git a/libs/wingsdk/test/target-sim/__snapshots__/topic-producer.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/topic-producer.test.ts.snap index 5145ba36b20..082b8ceb0a0 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/topic-producer.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/topic-producer.test.ts.snap @@ -2,18 +2,16 @@ exports[`publishing messages to topic 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.sim.EventMapping created.", "@winglang/sdk.cloud.Function created.", "Publish (message=ABC).", - "Sending message (message=ABC, subscriber=sim-1).", + "Sending message (message=ABC, subscriber=sim-0).", "Invoke (payload=\\"ABC\\").", "@winglang/sdk.cloud.Function deleted.", "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Topic deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; diff --git a/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap b/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap index 86d27e19f82..816c39b6378 100644 --- a/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap +++ b/libs/wingsdk/test/target-sim/__snapshots__/topic.test.ts.snap @@ -9,14 +9,7 @@ exports[`create a topic 1`] = ` "simulator.json": { "resources": [ { - "attrs": {}, - "path": "root/cloud.TestRunner", - "props": { - "tests": {}, - }, - "type": "@winglang/sdk.std.TestRunner", - }, - { + "addr": "c81b9a117401b1959f70a55462f9df8add290b0fda", "attrs": {}, "path": "root/my_topic", "props": {}, @@ -106,19 +99,6 @@ exports[`create a topic 1`] = ` "tree.json": { "tree": { "children": { - "cloud.TestRunner": { - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/cloud.TestRunner", - }, "my_topic": { "constructInfo": { "fqn": "constructs.Construct", @@ -146,14 +126,13 @@ exports[`create a topic 1`] = ` exports[`topic publishes messages as they are received 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.sim.EventMapping created.", "Publish (message=Alpha).", - "Sending message (message=Alpha, subscriber=sim-1).", + "Sending message (message=Alpha, subscriber=sim-0).", "Publish (message=Beta).", - "Sending message (message=Beta, subscriber=sim-1).", + "Sending message (message=Beta, subscriber=sim-0).", "Received Alpha", "Invoke (payload=\\"Alpha\\").", "Received Beta", @@ -161,26 +140,23 @@ exports[`topic publishes messages as they are received 1`] = ` "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Topic deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; exports[`topic publishes messages to multiple subscribers 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Topic created.", "@winglang/sdk.sim.EventMapping created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.sim.EventMapping created.", "Publish (message=Alpha).", - "Sending message (message=Alpha, subscriber=sim-1).", - "Sending message (message=Alpha, subscriber=sim-4).", + "Sending message (message=Alpha, subscriber=sim-0).", + "Sending message (message=Alpha, subscriber=sim-3).", "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Function deleted.", "@winglang/sdk.sim.EventMapping deleted.", "@winglang/sdk.cloud.Topic deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; diff --git a/libs/wingsdk/test/target-sim/api.test.ts b/libs/wingsdk/test/target-sim/api.test.ts index 39d2dfa6435..8bf0df8b16c 100644 --- a/libs/wingsdk/test/target-sim/api.test.ts +++ b/libs/wingsdk/test/target-sim/api.test.ts @@ -38,6 +38,7 @@ test("create an api", async () => { url: expect.any(String), }, path: "root/my_api", + addr: expect.any(String), props: { openApiSpec: { openapi: expect.any(String), diff --git a/libs/wingsdk/test/target-sim/app.test.ts b/libs/wingsdk/test/target-sim/app.test.ts index 56ddaa08969..13ddf565a43 100644 --- a/libs/wingsdk/test/target-sim/app.test.ts +++ b/libs/wingsdk/test/target-sim/app.test.ts @@ -1,11 +1,20 @@ import { basename, join } from "path"; +import { Construct } from "constructs"; import { test, expect } from "vitest"; import { simulatorJsonOf } from "./util"; import { Bucket } from "../../src/cloud"; +import { Testing } from "../../src/simulator"; +import { Test } from "../../src/std"; import { App } from "../../src/target-sim/app"; +import { SimApp } from "../sim-app"; import { mkdtemp } from "../util"; -test("app name can be customized", async () => { +const TEST_CODE = ` +async handle(event) { + console.log("this test should pass!"); +}`; + +test("app name can be customized", () => { // GIVEN const APP_NAME = "my-app"; @@ -19,3 +28,53 @@ test("app name can be customized", async () => { expect(basename(simfile)).toEqual(`${APP_NAME}.wsim`); expect(JSON.stringify(simulatorJsonOf(simfile))).toContain("my_bucket"); }); + +test("tests do not synthesize functions when test mode is off", async () => { + // GIVEN + class Root extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + new Bucket(this, "my_bucket"); + const handler = Testing.makeHandler(TEST_CODE); + new Test(this, "test:my_test1", handler); + new Test(this, "test:my_test2", handler); + } + } + const app = new SimApp({ isTestEnvironment: false, rootConstruct: Root }); + + // WHEN + const s = await app.startSimulator(); + const resources = s.listResources(); + await s.stop(); + + // THEN + expect(resources.sort()).toEqual(["root/Default/my_bucket"]); +}); + +test("tests are synthesized into individual environments when test mode is on", async () => { + // GIVEN + class Root extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + new Bucket(this, "my_bucket"); + const handler = Testing.makeHandler(TEST_CODE); + new Test(this, "test:my_test1", handler); + new Test(this, "test:my_test2", handler); + } + } + const app = new SimApp({ isTestEnvironment: true, rootConstruct: Root }); + + // WHEN + const s = await app.startSimulator(); + const resources = s.listResources(); + await s.stop(); + + // THEN + expect(resources.sort()).toEqual([ + "root/cloud.TestRunner", + "root/env0/my_bucket", + "root/env0/test:my_test1/Handler", + "root/env1/my_bucket", + "root/env1/test:my_test2/Handler", + ]); +}); diff --git a/libs/wingsdk/test/target-sim/bucket.test.ts b/libs/wingsdk/test/target-sim/bucket.test.ts index 4cd70858f74..36b69477a21 100644 --- a/libs/wingsdk/test/target-sim/bucket.test.ts +++ b/libs/wingsdk/test/target-sim/bucket.test.ts @@ -7,6 +7,7 @@ import { BucketEventType } from "../../src/cloud"; import { Testing } from "../../src/simulator"; import { Node } from "../../src/std"; import { SimApp } from "../sim-app"; +import { mkdtemp } from "../util"; test("create a bucket", async () => { // GIVEN @@ -20,6 +21,7 @@ test("create a bucket", async () => { handle: expect.any(String), }, path: "root/my_bucket", + addr: expect.any(String), props: { public: false, initialObjects: {}, @@ -328,7 +330,7 @@ test("get invalid object throws an error", async () => { await s.stop(); expect(listMessages(s)).toMatchSnapshot(); - expect(s.listTraces()[2].data.status).toEqual("failure"); + expect(s.listTraces()[1].data.status).toEqual("failure"); expect(app.snapshot()).toMatchSnapshot(); }); @@ -770,6 +772,44 @@ test("copy non-existent object within the bucket", async () => { await s.stop(); }); +test("bucket is stateful across simulations", async () => { + // GIVEN + const app = new SimApp(); + const bucket = new cloud.Bucket(app, "my_bucket"); + + // addObject means that each deployment, object ("a", "1") will be set on the bucket + // even if a different object with the same key is added in-flight + bucket.addObject("a", "1"); + + // WHEN + const stateDir = mkdtemp(); + const s = await app.startSimulator(stateDir); + + const client = s.getResource("/my_bucket") as cloud.IBucketClient; + await client.put("a", "2"); // override contents of file "a" inflight + await client.put("b", "2"); + const metadata1 = await client.metadata("a"); + const metadata2 = await client.metadata("b"); + await s.stop(); + + // restart the simulator, re-initializing all resources + // this will reset "a" to its original value + + await s.start(); + const client2 = s.getResource("/my_bucket") as cloud.IBucketClient; + const dataA = await client2.get("a"); + const dataB = await client2.get("b"); + const metadata3 = await client2.metadata("a"); + const metadata4 = await client2.metadata("b"); + + // THEN + await s.stop(); + expect(dataA).toEqual("1"); + expect(dataB).toEqual("2"); // "b" will be remembered + expect(metadata1).not.toEqual(metadata3); + expect(metadata2).toEqual(metadata4); +}); + // Deceided to seperate this feature in a different release,(see https://github.com/winglang/wing/issues/4143) // test("Given a bucket when reaching to a non existent key, signed url it should throw an error", async () => { diff --git a/libs/wingsdk/test/target-sim/counter.test.ts b/libs/wingsdk/test/target-sim/counter.test.ts index 7ad24dedc82..2de4cfe61e4 100644 --- a/libs/wingsdk/test/target-sim/counter.test.ts +++ b/libs/wingsdk/test/target-sim/counter.test.ts @@ -4,6 +4,7 @@ import * as cloud from "../../src/cloud"; import { ICounterClient } from "../../src/cloud"; import { Node } from "../../src/std"; import { SimApp } from "../sim-app"; +import { mkdtemp } from "../util"; test("create a counter", async () => { // GIVEN @@ -20,6 +21,7 @@ test("create a counter", async () => { handle: expect.any(String), }, path: "root/my_counter", + addr: expect.any(String), props: { initial: 123, }, @@ -274,3 +276,32 @@ test("counter has display title and description properties", async () => { }, }); }); + +test("counter is stateful across simulations", async () => { + // GIVEN + const app = new SimApp(); + const counter = new cloud.Counter(app, "my_counter", { initial: 5 }); + + // WHEN + const stateDir = mkdtemp(); + const s = await app.startSimulator(stateDir); + + const client = s.getResource("/my_counter") as cloud.ICounterClient; + const value1 = await client.peek(); + const value2 = await client.inc(1, "key"); + await s.stop(); + + // restart the simulator + + await s.start(); + const client2 = s.getResource("/my_counter") as cloud.ICounterClient; + const value3 = await client2.peek(); + const value4 = await client2.peek("key"); + + // THEN + await s.stop(); + expect(value1).toEqual(5); + expect(value2).toEqual(5); + expect(value3).toEqual(5); + expect(value4).toEqual(6); // value from previous simulation +}); diff --git a/libs/wingsdk/test/target-sim/dynamodb-table.test.ts b/libs/wingsdk/test/target-sim/dynamodb-table.test.ts index 2e6e6715bd3..c3bbeaaf189 100644 --- a/libs/wingsdk/test/target-sim/dynamodb-table.test.ts +++ b/libs/wingsdk/test/target-sim/dynamodb-table.test.ts @@ -18,6 +18,7 @@ test("create a table", async () => { handle: expect.any(String), }, path: "root/create_table", + addr: expect.any(String), props: { name: "new_table", attributeDefinitions: { @@ -53,6 +54,7 @@ test("put item", async () => { handle: expect.any(String), }, path: "root/put_table", + addr: expect.any(String), props: { name: "my_insert_table", attributeDefinitions: { @@ -89,6 +91,7 @@ test("get item", async () => { handle: expect.any(String), }, path: "root/get_table", + addr: expect.any(String), props: { name: "my_get_table", attributeDefinitions: { @@ -132,6 +135,7 @@ test("update item", async () => { handle: expect.any(String), }, path: "root/update_table", + addr: expect.any(String), props: { name: "my_update_table", attributeDefinitions: { diff --git a/libs/wingsdk/test/target-sim/function.test.ts b/libs/wingsdk/test/target-sim/function.test.ts index acdec114223..edf3f474c5c 100644 --- a/libs/wingsdk/test/target-sim/function.test.ts +++ b/libs/wingsdk/test/target-sim/function.test.ts @@ -42,6 +42,7 @@ test("create a function", async () => { handle: expect.any(String), }, path: "root/my_function", + addr: expect.any(String), props: { sourceCodeFile: expect.any(String), sourceCodeLanguage: "javascript", @@ -128,7 +129,7 @@ test("invoke function fails", async () => { await s.stop(); expect(listMessages(s)).toMatchSnapshot(); - expect(s.listTraces()[2].data.error).toMatchObject({ + expect(s.listTraces()[1].data.error).toMatchObject({ message: "Name must start with uppercase letter", }); expect(app.snapshot()).toMatchSnapshot(); @@ -193,7 +194,7 @@ test("invoke function with process.exit(1)", async () => { // THEN await s.stop(); expect(listMessages(s)).toMatchSnapshot(); - expect(s.listTraces()[2].data.error).toMatchObject({ + expect(s.listTraces()[1].data.error).toMatchObject({ message: "process.exit() was called with exit code 1", }); expect(app.snapshot()).toMatchSnapshot(); diff --git a/libs/wingsdk/test/target-sim/on-deploy.test.ts b/libs/wingsdk/test/target-sim/on-deploy.test.ts index 4bcf93a7c13..93618b3d69f 100644 --- a/libs/wingsdk/test/target-sim/on-deploy.test.ts +++ b/libs/wingsdk/test/target-sim/on-deploy.test.ts @@ -19,6 +19,7 @@ test("create an OnDeploy", async () => { handle: expect.any(String), }, path: "root/my_on_deploy", + addr: expect.any(String), props: { functionHandle: expect.any(String), }, diff --git a/libs/wingsdk/test/target-sim/queue.test.ts b/libs/wingsdk/test/target-sim/queue.test.ts index 886df9a905c..5e89f7399bf 100644 --- a/libs/wingsdk/test/target-sim/queue.test.ts +++ b/libs/wingsdk/test/target-sim/queue.test.ts @@ -17,6 +17,30 @@ async handle(message) { } }`; +test("create a queue", async () => { + // GIVEN + const app = new SimApp(); + new cloud.Queue(app, "my_queue"); + const s = await app.startSimulator(); + + // THEN + await s.stop(); + expect(s.getResourceConfig("/my_queue")).toEqual({ + attrs: { + handle: expect.any(String), + }, + path: "root/my_queue", + addr: expect.any(String), + props: { + retentionPeriod: 3600, + timeout: 30, + }, + type: cloud.QUEUE_FQN, + }); + + expect(app.snapshot()).toMatchSnapshot(); +}); + test("try to create a queue with invalid retention period", async () => { // GIVEN const app = new SimApp(); @@ -32,31 +56,6 @@ test("try to create a queue with invalid retention period", async () => { }).toThrowError("Retention period must be greater than or equal to timeout"); }); -test("create a queue", async () => { - // GIVEN - const app = new SimApp(); - new cloud.Queue(app, "my_queue"); - const s = await app.startSimulator(); - - // THEN - await s.stop(); - expect(s.getResourceConfig("/my_queue")).toMatchInlineSnapshot(` - { - "attrs": { - "handle": "sim-1", - }, - "path": "root/my_queue", - "props": { - "retentionPeriod": 3600, - "timeout": 30, - }, - "type": "@winglang/sdk.cloud.Queue", - } - `); - - expect(app.snapshot()).toMatchSnapshot(); -}); - test("queue with one subscriber, default batch size of 1", async () => { // GIVEN const app = new SimApp(); @@ -158,7 +157,7 @@ async handle() { trace.sourcePath === consumer.node.path && trace.data.message.startsWith("Invoke") ); - expect(invokeMessages.length).toEqual(2); // queue messages are processed in two batches based on batch size + expect(invokeMessages.length).toBeGreaterThanOrEqual(2); // queue messages are processed in multiple batches based on batch size expect(app.snapshot()).toMatchSnapshot(); }); @@ -231,7 +230,7 @@ test("messages are not requeued if the function fails before timeout", async () [ "@winglang/sdk.cloud.Queue created.", "Push (messages=BAD MESSAGE).", - "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-1).", + "Sending messages (messages=[\\"BAD MESSAGE\\"], subscriber=sim-0).", "Subscriber error - returning 1 messages to queue: ERROR", "@winglang/sdk.cloud.Queue deleted.", ] @@ -370,6 +369,6 @@ test("push rejects empty message", async () => { await s.stop(); expect(listMessages(s)).toMatchSnapshot(); - expect(s.listTraces()[2].data.status).toEqual("failure"); + expect(s.listTraces()[1].data.status).toEqual("failure"); expect(app.snapshot()).toMatchSnapshot(); }); diff --git a/libs/wingsdk/test/target-sim/redis.test.ts b/libs/wingsdk/test/target-sim/redis.test.ts index 5c92840495c..1b81ce43d07 100644 --- a/libs/wingsdk/test/target-sim/redis.test.ts +++ b/libs/wingsdk/test/target-sim/redis.test.ts @@ -15,6 +15,7 @@ test("create a Redis resource", async () => { handle: expect.any(String), }, path: "root/my_redis", + addr: expect.any(String), props: {}, type: ex.REDIS_FQN, }); diff --git a/libs/wingsdk/test/target-sim/schedule.test.ts b/libs/wingsdk/test/target-sim/schedule.test.ts index de13779e2ce..1706f985287 100644 --- a/libs/wingsdk/test/target-sim/schedule.test.ts +++ b/libs/wingsdk/test/target-sim/schedule.test.ts @@ -22,6 +22,7 @@ test("create a schedule", async () => { handle: expect.any(String), }, path: "root/my_schedule", + addr: expect.any(String), props: { cronExpression: cron, }, @@ -70,6 +71,7 @@ test("schedule with one task using rate of 10m", async () => { handle: expect.any(String), }, path: "root/my_schedule", + addr: expect.any(String), props: { cronExpression: expectedCron, }, @@ -96,6 +98,7 @@ test("schedule with one task using rate of 3h", async () => { handle: expect.any(String), }, path: "root/my_schedule", + addr: expect.any(String), props: { cronExpression: expectedCron, }, diff --git a/libs/wingsdk/test/target-sim/secret.test.ts b/libs/wingsdk/test/target-sim/secret.test.ts index 8e1d7f02b7a..fc1a9751c34 100644 --- a/libs/wingsdk/test/target-sim/secret.test.ts +++ b/libs/wingsdk/test/target-sim/secret.test.ts @@ -22,6 +22,7 @@ test("create a secret", async () => { handle: expect.any(String), }, path: "root/my_secret", + addr: expect.any(String), props: { name: "my_secret-c84793b7", }, diff --git a/libs/wingsdk/test/target-sim/service.test.ts b/libs/wingsdk/test/target-sim/service.test.ts index b413e301a52..833da74b492 100644 --- a/libs/wingsdk/test/target-sim/service.test.ts +++ b/libs/wingsdk/test/target-sim/service.test.ts @@ -28,6 +28,7 @@ test("create a service with on start method", async () => { handle: expect.any(String), }, path: "root/my_service", + addr: expect.any(String), props: { sourceCodeFile: expect.any(String), environmentVariables: {}, @@ -59,6 +60,7 @@ test("create a service with a on stop method", async () => { handle: expect.any(String), }, path: "root/my_service", + addr: expect.any(String), props: { sourceCodeFile: expect.any(String), environmentVariables: {}, @@ -100,6 +102,7 @@ test("create a service without autostart", async () => { handle: expect.any(String), }, path: "root/my_service", + addr: expect.any(String), props: { sourceCodeFile: expect.any(String), environmentVariables: {}, diff --git a/libs/wingsdk/test/target-sim/table.test.ts b/libs/wingsdk/test/target-sim/table.test.ts index 5547a309aa8..fe2bd767eee 100644 --- a/libs/wingsdk/test/target-sim/table.test.ts +++ b/libs/wingsdk/test/target-sim/table.test.ts @@ -21,6 +21,7 @@ test("create a table", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "new_table", columns: { @@ -58,6 +59,7 @@ test("insert row", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_insert_table", columns: { @@ -103,6 +105,7 @@ test("get row", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_get_table", columns: { @@ -147,6 +150,7 @@ test("tryGet row", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_get_table", columns: { @@ -190,6 +194,7 @@ test("update row", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_update_table", columns: { @@ -232,6 +237,7 @@ test("list table", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_list_table", columns: { @@ -336,6 +342,7 @@ test("can add row in preflight", async () => { handle: expect.any(String), }, path: "root/my_table", + addr: expect.any(String), props: { name: "my_addrow_table", columns: { diff --git a/libs/wingsdk/test/target-sim/test.test.ts b/libs/wingsdk/test/target-sim/test.test.ts index 26f5ff1b9e0..a157fdb7702 100644 --- a/libs/wingsdk/test/target-sim/test.test.ts +++ b/libs/wingsdk/test/target-sim/test.test.ts @@ -1,3 +1,4 @@ +import { Construct } from "constructs"; import { test, expect } from "vitest"; import { Testing } from "../../src/simulator"; import { Test } from "../../src/std"; @@ -10,19 +11,25 @@ async handle(event) { test("create a test", async () => { // GIVEN - const app = new SimApp(); - const handler = Testing.makeHandler(INFLIGHT_CODE); - new Test(app, "test:my_test", handler); + class Root extends Construct { + constructor(scope: Construct, id: string) { + super(scope, id); + const handler = Testing.makeHandler(INFLIGHT_CODE); + new Test(this, "test:my_test", handler); + } + } + const app = new SimApp({ isTestEnvironment: true, rootConstruct: Root }); // THEN const s = await app.startSimulator(); // for now, it just creates a cloud.Function - expect(s.getResourceConfig("/test:my_test/Handler")).toEqual({ + expect(s.getResourceConfig("/env0/test:my_test/Handler")).toEqual({ attrs: { handle: expect.any(String), }, - path: "root/test:my_test/Handler", + path: "root/env0/test:my_test/Handler", + addr: expect.any(String), props: { environmentVariables: {}, sourceCodeFile: expect.any(String), diff --git a/libs/wingsdk/test/target-sim/topic.test.ts b/libs/wingsdk/test/target-sim/topic.test.ts index 12f7b81b303..3040df22d98 100644 --- a/libs/wingsdk/test/target-sim/topic.test.ts +++ b/libs/wingsdk/test/target-sim/topic.test.ts @@ -17,6 +17,7 @@ test("create a topic", async () => { handle: expect.any(String), }, path: "root/my_topic", + addr: expect.any(String), props: {}, type: cloud.TOPIC_FQN, }); @@ -53,11 +54,9 @@ test("topic publishes messages to multiple subscribers", async () => { // GIVEN const app = new SimApp(); const handler = Testing.makeHandler( - "Handler1", `async handle(message) { console.log("Received " + message); }` ); const otherHandler = Testing.makeHandler( - "Handler2", `async handle(message) { console.log("Also received " + message); }` ); const topic = new cloud.Topic(app, "my_topic"); diff --git a/libs/wingsdk/test/target-sim/website.test.ts b/libs/wingsdk/test/target-sim/website.test.ts index 7f7d41ce754..2c0774ec24e 100644 --- a/libs/wingsdk/test/target-sim/website.test.ts +++ b/libs/wingsdk/test/target-sim/website.test.ts @@ -109,6 +109,7 @@ test("api.url is resolved in website config", async () => { url: expect.any(String), }, path: "root/website", + addr: expect.any(String), props: { fileRoutes: { "config.json": { @@ -144,6 +145,7 @@ test("multiple tokens are resolved in website config", async () => { url: expect.any(String), }, path: "root/website", + addr: expect.any(String), props: { fileRoutes: { "config.json": { diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap index c168c164600..59e17064715 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/bucket.test.ts.snap @@ -2,11 +2,6 @@ exports[`bucket is public 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "my_bucket": { @@ -52,29 +47,6 @@ exports[`bucket is public 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -151,11 +123,6 @@ exports[`bucket is public 2`] = ` exports[`bucket prefix must be lowercase 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "The-UncannyBucket": { @@ -205,29 +172,6 @@ exports[`bucket prefix must be lowercase 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -266,11 +210,6 @@ exports[`bucket prefix must be lowercase 2`] = ` exports[`bucket prefix valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "the-uncannybucket": { @@ -298,29 +237,6 @@ exports[`bucket prefix valid 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "the-uncanny.bucket": { "children": { "Default": { @@ -381,11 +297,6 @@ exports[`bucket prefix valid 2`] = ` exports[`bucket with onCreate method 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_bucket_oncreate-OnMessage0_CloudwatchLogGroup_E35B13F5": { @@ -541,29 +452,6 @@ exports[`bucket with onCreate method 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -764,11 +652,6 @@ exports[`bucket with onCreate method 2`] = ` exports[`bucket with onDelete method 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_bucket_ondelete-OnMessage0_CloudwatchLogGroup_420A05F2": { @@ -924,29 +807,6 @@ exports[`bucket with onDelete method 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -1147,11 +1007,6 @@ exports[`bucket with onDelete method 2`] = ` exports[`bucket with onEvent method 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_bucket_oncreate-OnMessage0_CloudwatchLogGroup_E35B13F5": { @@ -1447,29 +1302,6 @@ exports[`bucket with onEvent method 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -1902,11 +1734,6 @@ exports[`bucket with onEvent method 2`] = ` exports[`bucket with onUpdate method 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_bucket_onupdate-OnMessage0_CloudwatchLogGroup_25463B70": { @@ -2062,29 +1889,6 @@ exports[`bucket with onUpdate method 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -2285,11 +2089,6 @@ exports[`bucket with onUpdate method 2`] = ` exports[`bucket with two preflight files 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "my_bucket": { @@ -2347,29 +2146,6 @@ exports[`bucket with two preflight files 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -2462,11 +2238,6 @@ exports[`bucket with two preflight files 2`] = ` exports[`bucket with two preflight objects 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "my_bucket": { @@ -2524,29 +2295,6 @@ exports[`bucket with two preflight objects 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -2639,11 +2387,6 @@ exports[`bucket with two preflight objects 2`] = ` exports[`create a bucket 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_s3_bucket": { "my_bucket": { @@ -2671,29 +2414,6 @@ exports[`create a bucket 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap index 82199b7c725..db92942d07d 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/captures.test.ts.snap @@ -35,11 +35,6 @@ function: new (require(\\"[REDACTED]/wingsdk/src/shared-aws/function.inflight\\" exports[`function with a function binding 3`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function1_CloudwatchLogGroup_2120A680": { @@ -183,11 +178,6 @@ return class Handler { exports[`function with a queue binding 3`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -330,11 +320,6 @@ bucket: new (require(\\"[REDACTED]/wingsdk/src/shared-aws/bucket.inflight\\")).B exports[`function with bucket binding > put operation 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -408,11 +393,6 @@ exports[`function with bucket binding > put operation 2`] = ` exports[`two functions reusing the same IFunctionHandler 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function1_CloudwatchLogGroup_2120A680": { diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap index c45de1abd0d..a7ebea37192 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/counter.test.ts.snap @@ -2,11 +2,6 @@ exports[`counter name valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "TheAmazing-Counter_01": { @@ -63,29 +58,6 @@ exports[`counter name valid 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -124,11 +96,6 @@ exports[`counter name valid 2`] = ` exports[`counter with initial value 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "Counter": { @@ -185,29 +152,6 @@ exports[`counter with initial value 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -246,11 +190,6 @@ exports[`counter with initial value 2`] = ` exports[`dec() policy statement 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -447,29 +386,6 @@ exports[`dec() policy statement 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -508,11 +424,6 @@ exports[`dec() policy statement 2`] = ` exports[`default counter behavior 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "Counter": { @@ -551,11 +462,6 @@ my_counter: new (require(\\"[REDACTED]/wingsdk/src/shared-aws/counter.inflight\\ exports[`function with a counter binding 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -752,29 +658,6 @@ exports[`function with a counter binding 3`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -813,11 +696,6 @@ exports[`function with a counter binding 3`] = ` exports[`inc() policy statement 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -1014,29 +892,6 @@ exports[`inc() policy statement 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1075,11 +930,6 @@ exports[`inc() policy statement 2`] = ` exports[`peek() policy statement 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -1276,29 +1126,6 @@ exports[`peek() policy statement 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1337,11 +1164,6 @@ exports[`peek() policy statement 2`] = ` exports[`replace invalid character from counter name 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "TheAmazingCounter01": { @@ -1398,29 +1220,6 @@ exports[`replace invalid character from counter name 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1459,11 +1258,6 @@ exports[`replace invalid character from counter name 2`] = ` exports[`set() policy statement 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -1660,29 +1454,6 @@ exports[`set() policy statement 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap index e1b194f7c5c..16f677310f8 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/domain.test.ts.snap @@ -35,11 +35,6 @@ exports[`cloud.Domain for tf-aws > react website with a domain when passing valu }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Website-host_Distribution_16BBCB7A": { @@ -285,29 +280,6 @@ exports[`cloud.Domain for tf-aws > react website with a domain when passing valu "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -379,11 +351,6 @@ exports[`cloud.Domain for tf-aws > react website with a domain when passing valu }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Website-host_Distribution_16BBCB7A": { @@ -629,29 +596,6 @@ exports[`cloud.Domain for tf-aws > react website with a domain when passing valu "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -723,11 +667,6 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Distribution_5E840E42": { @@ -977,29 +916,6 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values fro "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1071,11 +987,6 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Distribution_5E840E42": { @@ -1325,29 +1236,6 @@ exports[`cloud.Domain for tf-aws > website with a domain when passing values on "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/dynamodb-table.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/dynamodb-table.test.ts.snap index 4f6d161efeb..653e8ddb087 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/dynamodb-table.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/dynamodb-table.test.ts.snap @@ -2,11 +2,6 @@ exports[`default dynamodb table behavior 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "Table": { @@ -45,11 +40,6 @@ my_table: new (require(\\"[REDACTED]/wingsdk/src/shared-aws/dynamodb-table.infli exports[`function with a table binding 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -246,29 +236,6 @@ exports[`function with a table binding 3`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap index 58f63cfd558..28fc94fd30f 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/function.test.ts.snap @@ -2,11 +2,6 @@ exports[`basic function 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -167,29 +162,6 @@ exports[`basic function 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -228,11 +200,6 @@ exports[`basic function 2`] = ` exports[`basic function with custom log retention 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -393,29 +360,6 @@ exports[`basic function with custom log retention 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -454,11 +398,6 @@ exports[`basic function with custom log retention 2`] = ` exports[`basic function with environment variables 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -621,29 +560,6 @@ exports[`basic function with environment variables 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -682,11 +598,6 @@ exports[`basic function with environment variables 2`] = ` exports[`basic function with infinite log retention 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_iam_role": { "Function_IamRole_678BE84C": { @@ -833,29 +744,6 @@ exports[`basic function with infinite log retention 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -894,11 +782,6 @@ exports[`basic function with infinite log retention 2`] = ` exports[`basic function with memory size specified 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -1059,29 +942,6 @@ exports[`basic function with memory size specified 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1120,11 +980,6 @@ exports[`basic function with memory size specified 2`] = ` exports[`basic function with timeout explicitly set 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -1285,29 +1140,6 @@ exports[`basic function with timeout explicitly set 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1346,11 +1178,6 @@ exports[`basic function with timeout explicitly set 2`] = ` exports[`function name valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "The-Mighty_Function-01_CloudwatchLogGroup_BC84FFD4": { @@ -1511,29 +1338,6 @@ exports[`function name valid 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -1572,11 +1376,6 @@ exports[`function name valid 2`] = ` exports[`replace invalid character from function name 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "TheMightyFunction_CloudwatchLogGroup_E141F677": { @@ -1737,29 +1536,6 @@ exports[`replace invalid character from function name 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap index 56a7d3e5764..ff8df66fb94 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/logger.test.ts.snap @@ -19,11 +19,6 @@ return class Handler { exports[`inflight function uses a logger 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap index 354026960e6..b9bf5d98e00 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/on-deploy.test.ts.snap @@ -11,11 +11,6 @@ exports[`create an OnDeploy 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_on_deploy_Function_CloudwatchLogGroup_A6EB6F36": { @@ -106,29 +101,6 @@ exports[`create an OnDeploy 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_on_deploy": { "children": { "Function": { @@ -270,11 +242,6 @@ exports[`execute OnDeploy after other resources 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_on_deploy_Function_CloudwatchLogGroup_A6EB6F36": { @@ -369,29 +336,6 @@ exports[`execute OnDeploy after other resources 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { @@ -553,11 +497,6 @@ exports[`execute OnDeploy before other resources 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "my_on_deploy_Function_CloudwatchLogGroup_A6EB6F36": { @@ -655,29 +594,6 @@ exports[`execute OnDeploy before other resources 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Default": { diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap index 6105a69221d..2c2873b10c6 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/queue.test.ts.snap @@ -2,11 +2,6 @@ exports[`default queue behavior 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sqs_queue": { "Queue": { @@ -57,29 +52,6 @@ exports[`default queue behavior 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -118,11 +90,6 @@ exports[`default queue behavior 2`] = ` exports[`queue name valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sqs_queue": { "The-Incredible_Queue-01": { @@ -173,29 +140,6 @@ exports[`queue name valid 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -236,11 +180,6 @@ exports[`queue with a consumer function 1`] = `"new (require(\\"[REDACTED]/wings exports[`queue with a consumer function 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Queue-SetConsumer0_CloudwatchLogGroup_56C2891C": { @@ -445,29 +384,6 @@ exports[`queue with a consumer function 3`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -506,11 +422,6 @@ exports[`queue with a consumer function 3`] = ` exports[`queue with custom retention 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sqs_queue": { "Queue": { @@ -561,29 +472,6 @@ exports[`queue with custom retention 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -622,11 +510,6 @@ exports[`queue with custom retention 2`] = ` exports[`queue with custom timeout 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sqs_queue": { "Queue": { @@ -677,29 +560,6 @@ exports[`queue with custom timeout 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -738,11 +598,6 @@ exports[`queue with custom timeout 2`] = ` exports[`replace invalid character from queue name 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sqs_queue": { "TheIncredibleQueue": { @@ -793,29 +648,6 @@ exports[`replace invalid character from queue name 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/react-app.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/react-app.test.ts.snap index 2e474ee0096..b4b8f975aa5 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/react-app.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/react-app.test.ts.snap @@ -35,11 +35,6 @@ exports[`Testing ReactApp > default React App behavior 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Website-host_Distribution_16BBCB7A": { @@ -248,29 +243,6 @@ exports[`Testing ReactApp > default React App behavior 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -342,11 +314,6 @@ exports[`Testing ReactApp > website with addEnvironment 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Website-host_Distribution_16BBCB7A": { @@ -557,29 +524,6 @@ exports[`Testing ReactApp > website with addEnvironment 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/redis.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/redis.test.ts.snap index 887913d7803..558bb7d49ea 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/redis.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/redis.test.ts.snap @@ -7,11 +7,6 @@ exports[`When creating a Redis resource > should create an elasticache cluster a "Region": {}, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_eip": { "EIP": {}, diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap index 25ad0654ab8..7ccd81c9421 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/schedule.test.ts.snap @@ -2,11 +2,6 @@ exports[`schedule behavior with cron 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_event_rule": { "Schedule_15669BF1": { @@ -226,29 +221,6 @@ exports[`schedule behavior with cron 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -287,11 +259,6 @@ exports[`schedule behavior with cron 2`] = ` exports[`schedule behavior with rate 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_event_rule": { "Schedule_15669BF1": { @@ -511,29 +478,6 @@ exports[`schedule behavior with rate 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -572,11 +516,6 @@ exports[`schedule behavior with rate 2`] = ` exports[`schedule with two functions 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_event_rule": { "Schedule_15669BF1": { @@ -796,29 +735,6 @@ exports[`schedule with two functions 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap index 4e58a414009..e6561bfa84d 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/secret.test.ts.snap @@ -6,9 +6,6 @@ exports[`default secret behavior 1`] = ` "Secret_SecretArn_C6DFE868": { "value": "\${aws_secretsmanager_secret.Secret.arn}", }, - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, }, "resource": { "aws_secretsmanager_secret": { @@ -66,29 +63,6 @@ exports[`default secret behavior 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -134,10 +108,5 @@ exports[`secret with a name 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, } `; diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap index ad4d7b1b61c..dfc43ebe7b7 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/table.test.ts.snap @@ -2,11 +2,6 @@ exports[`default table behavior 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_dynamodb_table": { "Table": { @@ -44,11 +39,6 @@ my_table: new (require(\\"[REDACTED]/wingsdk/src/shared-aws/table.inflight\\")). exports[`function with a table binding 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Function_CloudwatchLogGroup_ABDCF4C4": { @@ -247,29 +237,6 @@ exports[`function with a table binding 3`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap index ff802aa99c3..e52c755e8e9 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/tokens.test.ts.snap @@ -13,9 +13,9 @@ return class Handler { } }; })())({ -str: JSON.parse(process.env[\\"WING_TOKEN_HTTPS_TFTOKEN_TOKEN_8_EXECUTE_API_TFTOKEN_TOKEN_1_AMAZONAWS_COM_TFTOKEN_TOKEN_9\\"]), -num: JSON.parse(process.env[\\"WING_TOKEN_8_109562212591388E_298\\"]), -list: JSON.parse(process.env[\\"WING_TOKEN_TFTOKEN_TOKEN_11\\"]) +str: JSON.parse(process.env[\\"WING_TOKEN_HTTPS_TFTOKEN_TOKEN_7_EXECUTE_API_TFTOKEN_TOKEN_0_AMAZONAWS_COM_TFTOKEN_TOKEN_8\\"]), +num: JSON.parse(process.env[\\"WING_TOKEN_8_109562212591387E_298\\"]), +list: JSON.parse(process.env[\\"WING_TOKEN_TFTOKEN_TOKEN_10\\"]) })" `; @@ -26,11 +26,6 @@ exports[`captures tokens 2`] = ` "Region": {}, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_api_gateway_deployment": { "Api_api_deployment_7FB64CC4": { @@ -91,9 +86,9 @@ exports[`captures tokens 2`] = ` "variables": { "NODE_OPTIONS": "--enable-source-maps", "WING_FUNCTION_NAME": "get__-0-c8a5fd6a", - "WING_TOKEN_8_109562212591388E_298": "\${jsonencode(var.Number)}", - "WING_TOKEN_HTTPS_TFTOKEN_TOKEN_8_EXECUTE_API_TFTOKEN_TOKEN_1_AMAZONAWS_COM_TFTOKEN_TOKEN_9": "\${jsonencode(\\"https://\${aws_api_gateway_rest_api.Api_api_91C07D84.id}.execute-api.\${data.aws_region.Region.name}.amazonaws.com/\${aws_api_gateway_stage.Api_api_stage_E0FA39D6.stage_name}\\")}", - "WING_TOKEN_TFTOKEN_TOKEN_11": "\${jsonencode(var.List)}", + "WING_TOKEN_8_109562212591387E_298": "\${jsonencode(var.Number)}", + "WING_TOKEN_HTTPS_TFTOKEN_TOKEN_7_EXECUTE_API_TFTOKEN_TOKEN_0_AMAZONAWS_COM_TFTOKEN_TOKEN_8": "\${jsonencode(\\"https://\${aws_api_gateway_rest_api.Api_api_91C07D84.id}.execute-api.\${data.aws_region.Region.name}.amazonaws.com/\${aws_api_gateway_stage.Api_api_stage_E0FA39D6.stage_name}\\")}", + "WING_TOKEN_TFTOKEN_TOKEN_10": "\${jsonencode(var.List)}", }, }, "function_name": "get__-0-c8a5fd6a", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap index 91bae4c36ff..01c9ca4224c 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/topic.test.ts.snap @@ -2,11 +2,6 @@ exports[`default topic behavior 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sns_topic": { "Topic": { @@ -55,29 +50,6 @@ exports[`default topic behavior 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -116,11 +88,6 @@ exports[`default topic behavior 2`] = ` exports[`replace invalid character from queue name 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sns_topic": { "TheSpectacularTopic": { @@ -169,29 +136,6 @@ exports[`replace invalid character from queue name 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -230,11 +174,6 @@ exports[`replace invalid character from queue name 2`] = ` exports[`topic name valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_sns_topic": { "The-Spectacular_Topic-01": { @@ -283,29 +222,6 @@ exports[`topic name valid 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -359,11 +275,6 @@ return class Handler { exports[`topic with subscriber function 2`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudwatch_log_group": { "Topic-OnMessage0_CloudwatchLogGroup_DE4DF0A1": { @@ -582,29 +493,6 @@ exports[`topic with subscriber function 3`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap b/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap index 1492264d0f4..deef2b6c1e4 100644 --- a/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap +++ b/libs/wingsdk/test/target-tf-aws/__snapshots__/website.test.ts.snap @@ -35,11 +35,6 @@ exports[`default website behavior 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Distribution_5E840E42": { @@ -252,29 +247,6 @@ exports[`default website behavior 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -346,11 +318,6 @@ exports[`website with addFile 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Distribution_5E840E42": { @@ -580,29 +547,6 @@ exports[`website with addFile 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -674,11 +618,6 @@ exports[`website with addJson 1`] = ` }, }, }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "aws_cloudfront_distribution": { "Website_Distribution_5E840E42": { @@ -908,29 +847,6 @@ exports[`website with addJson 2`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", diff --git a/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap index 45f1433db5a..ce6578809db 100644 --- a/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-azure/__snapshots__/bucket.test.ts.snap @@ -2,11 +2,6 @@ exports[`bucket is public 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -66,29 +61,6 @@ exports[`bucket is public 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Bucket": { @@ -149,11 +121,6 @@ exports[`bucket is public 2`] = ` exports[`bucket name valid 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -235,29 +202,6 @@ exports[`bucket name valid 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -296,11 +240,6 @@ exports[`bucket name valid 2`] = ` exports[`bucket with two preflight files 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -376,29 +315,6 @@ exports[`bucket with two preflight files 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Blob-file1.txt": { @@ -475,11 +391,6 @@ exports[`bucket with two preflight files 2`] = ` exports[`bucket with two preflight objects 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -555,29 +466,6 @@ exports[`bucket with two preflight objects 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Blob-file1.txt": { @@ -654,11 +542,6 @@ exports[`bucket with two preflight objects 2`] = ` exports[`create a bucket 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -718,29 +601,6 @@ exports[`create a bucket 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Bucket": { @@ -801,11 +661,6 @@ exports[`create a bucket 2`] = ` exports[`create multiple buckets 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_resource_group": { "ResourceGroup": { @@ -870,29 +725,6 @@ exports[`create multiple buckets 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "my_bucket": { "children": { "Bucket": { diff --git a/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap index 432e274d4c1..dd33e93e49b 100644 --- a/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-azure/__snapshots__/function.test.ts.snap @@ -2,11 +2,6 @@ exports[`basic function 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_application_insights": { "ApplicationInsights": { @@ -224,29 +219,6 @@ exports[`basic function 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -285,11 +257,6 @@ exports[`basic function 2`] = ` exports[`basic function with environment variables 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_application_insights": { "ApplicationInsights": { @@ -509,29 +476,6 @@ exports[`basic function with environment variables 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "constructs.Construct", @@ -570,11 +514,6 @@ exports[`basic function with environment variables 2`] = ` exports[`replace invalid character from function name 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "azurerm_application_insights": { "ApplicationInsights": { @@ -724,29 +663,6 @@ exports[`replace invalid character from function name 2`] = ` "id": "azure", "path": "root/Default/azure", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "someFunction01": { "children": { "Asset": { diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap index 7deaaa3995c..cd8f11a696d 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/bucket.test.ts.snap @@ -2,11 +2,6 @@ exports[`bucket is public 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_storage_bucket": { "my_bucket": { @@ -41,29 +36,6 @@ exports[`bucket is public 2`] = ` "children": { "Default": { "children": { - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -156,11 +128,6 @@ exports[`bucket is public 2`] = ` exports[`bucket with two preflight files 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_storage_bucket": { "my_bucket": { @@ -200,29 +167,6 @@ exports[`bucket with two preflight files 2`] = ` "children": { "Default": { "children": { - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -323,11 +267,6 @@ exports[`bucket with two preflight files 2`] = ` exports[`bucket with two preflight objects 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_storage_bucket": { "my_bucket": { @@ -367,29 +306,6 @@ exports[`bucket with two preflight objects 2`] = ` "children": { "Default": { "children": { - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -490,11 +406,6 @@ exports[`bucket with two preflight objects 2`] = ` exports[`create a bucket 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_storage_bucket": { "my_bucket": { @@ -522,29 +433,6 @@ exports[`create a bucket 2`] = ` "children": { "Default": { "children": { - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -629,11 +517,6 @@ exports[`create a bucket 2`] = ` exports[`two buckets 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_storage_bucket": { "my_bucket1": { @@ -671,29 +554,6 @@ exports[`two buckets 2`] = ` "children": { "Default": { "children": { - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap index e688b73bca5..19025a6c704 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/function.test.ts.snap @@ -2,11 +2,6 @@ exports[`basic function 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_cloudfunctions_function": { "Function_DefaultFunction_81B206D7": { @@ -140,29 +135,6 @@ exports[`basic function 2`] = ` "id": "Function", "path": "root/Default/Function", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -217,11 +189,6 @@ exports[`basic function 2`] = ` exports[`basic function with environment variables 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_cloudfunctions_function": { "Function_DefaultFunction_81B206D7": { @@ -358,29 +325,6 @@ exports[`basic function with environment variables 2`] = ` "id": "Function", "path": "root/Default/Function", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -437,11 +381,6 @@ exports[`basic function with memory beyond the allowed range 1`] = `"Memory must exports[`basic function with memory size specified 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_cloudfunctions_function": { "Function_DefaultFunction_81B206D7": { @@ -575,29 +514,6 @@ exports[`basic function with memory size specified 2`] = ` "id": "Function", "path": "root/Default/Function", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", @@ -654,11 +570,6 @@ exports[`basic function with timeout beyond the allowed range 1`] = `"Timeout mu exports[`basic function with timeout explicitly set 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_cloudfunctions_function": { "Function_DefaultFunction_81B206D7": { @@ -792,29 +703,6 @@ exports[`basic function with timeout explicitly set 2`] = ` "id": "Function", "path": "root/Default/Function", }, - "cloud.TestRunner": { - "children": { - "TestFunctionIdentifiers": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionIdentifiers", - "path": "root/Default/cloud.TestRunner/TestFunctionIdentifiers", - }, - }, - "constructInfo": { - "fqn": "constructs.Construct", - "version": "10.2.70", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, "google": { "constructInfo": { "fqn": "cdktf.TerraformProvider", diff --git a/libs/wingsdk/test/target-tf-gcp/__snapshots__/table.test.ts.snap b/libs/wingsdk/test/target-tf-gcp/__snapshots__/table.test.ts.snap index df6d233befc..82ef1457651 100644 --- a/libs/wingsdk/test/target-tf-gcp/__snapshots__/table.test.ts.snap +++ b/libs/wingsdk/test/target-tf-gcp/__snapshots__/table.test.ts.snap @@ -2,11 +2,6 @@ exports[`create a table 1`] = ` { - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, - }, "resource": { "google_bigtable_instance": { "my_table_Instance_531C1B73": { diff --git a/libs/wingsdk/test/ui/__snapshots__/ui.test.ts.snap b/libs/wingsdk/test/ui/__snapshots__/ui.test.ts.snap index aeb7778b62a..b0165cd8998 100644 --- a/libs/wingsdk/test/ui/__snapshots__/ui.test.ts.snap +++ b/libs/wingsdk/test/ui/__snapshots__/ui.test.ts.snap @@ -2,13 +2,11 @@ exports[`can obtain ui components 1`] = ` [ - "@winglang/sdk.std.TestRunner created.", "@winglang/sdk.cloud.Function created.", "@winglang/sdk.cloud.Function created.", "Invoke (payload=\\"\\").", "Invoke (payload=\\"\\").", "@winglang/sdk.cloud.Function deleted.", "@winglang/sdk.cloud.Function deleted.", - "@winglang/sdk.std.TestRunner deleted.", ] `; diff --git a/libs/wingsdk/test/util.ts b/libs/wingsdk/test/util.ts index 9397e4e860f..4a1aaf96ad8 100644 --- a/libs/wingsdk/test/util.ts +++ b/libs/wingsdk/test/util.ts @@ -134,7 +134,10 @@ export function directorySnapshot(initialRoot: string) { const abspath = join(root, relpath); const key = prefix + relpath; if (statSync(abspath).isDirectory()) { - visit(root, relpath); + // ignore .state files + if (basename(abspath) !== ".state") { + visit(root, relpath); + } } else { switch (extname(f)) { case ".json": diff --git a/tools/hangar/__snapshots__/platform.ts.snap b/tools/hangar/__snapshots__/platform.ts.snap index d864a0896a0..0b20e770525 100644 --- a/tools/hangar/__snapshots__/platform.ts.snap +++ b/tools/hangar/__snapshots__/platform.ts.snap @@ -8,20 +8,7 @@ exports[`Multiple platforms > only first platform app is used 1`] = ` "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ @@ -182,20 +169,7 @@ exports[`Platform examples > AWS target platform > permission-boundary.js 1`] = "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ @@ -357,20 +331,7 @@ exports[`Platform examples > AWS target platform > replicate-s3.js 1`] = ` "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ @@ -719,20 +680,7 @@ exports[`Platform examples > AWS target platform > tf-backend.js > azurerm backe "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ @@ -893,20 +841,7 @@ exports[`Platform examples > AWS target platform > tf-backend.js > gcp backend 1 "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ @@ -1067,20 +1002,7 @@ exports[`Platform examples > AWS target platform > tf-backend.js > s3 backend 1` "stackName": "root", "version": "0.17.0", }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS", - }, - }, - }, - }, - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]", - }, + "outputs": {}, }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md index 95198810d54..9f81fdaa8cc 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/404.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md index c466c663977..c0d69a4a376 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/aws-api.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md index 070e1ef1356..9c66ce11fc7 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/cors.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md index 6eb50047bfa..f48bcf1f80f 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/delete.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md index 07100e9f0ec..0eb32e46908 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/get.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md index 4af8a752907..e9b14134df8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/options.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md index 28da74e072b..581c6a99e27 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/patch.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md index cb728cc396a..aaa82731909 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/path_vars.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md index 3d2eba86d9c..e21e0be85f6 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/post.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md index 38088616960..0870a21fdb3 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/api/put.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_file.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_file.test.w_compile_tf-aws.md index 7f83c054472..602d33a1da3 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_file.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_file.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_object.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_object.test.w_compile_tf-aws.md index ea98328bebe..22c09e851e0 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_object.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/add_object.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/aws-bucket.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/aws-bucket.test.w_compile_tf-aws.md index 42c667f4c57..1fe5d77c81b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/aws-bucket.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/aws-bucket.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket_list.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket_list.test.w_compile_tf-aws.md index 7ceb2015aa9..32aa853ba0d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket_list.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/bucket_list.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/copy.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/copy.test.w_compile_tf-aws.md index c3a548ba022..279ce834517 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/copy.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/copy.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/delete.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/delete.test.w_compile_tf-aws.md index bf83aecfeac..a9b631d9a1a 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/delete.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/delete.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md index 8a2918a18e4..d7e498223b5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/events.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/exists.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/exists.test.w_compile_tf-aws.md index d016d8ad91f..fe2a1bb7ddb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/exists.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/exists.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/load_test.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/load_test.test.w_compile_tf-aws.md index 1eb14eac9eb..185b8575b25 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/load_test.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/load_test.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/metadata.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/metadata.test.w_compile_tf-aws.md index 72b9834eb8c..5026c3ba895 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/metadata.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/metadata.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/public_url.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/public_url.test.w_compile_tf-aws.md index edf4597de99..e93d739ab30 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/public_url.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/public_url.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put.test.w_compile_tf-aws.md index beca9e9d0ac..17e06c74b66 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put_json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put_json.test.w_compile_tf-aws.md index 0fa11fed5dc..1d0d7e0d9d8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put_json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/put_json.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/signed_url.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/signed_url.test.w_compile_tf-aws.md index c9cbb196cde..6515e3e5bc6 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/signed_url.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/signed_url.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_delete.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_delete.test.w_compile_tf-aws.md index 85399298596..ec62ea75253 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_delete.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_delete.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get.test.w_compile_tf-aws.md index 2e9eda6acaf..99c1307ff7e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get_json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get_json.test.w_compile_tf-aws.md index ecd4c346549..52da8065ae1 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get_json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/bucket/try_get_json.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/aws-counter.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/aws-counter.test.w_compile_tf-aws.md index 69843409be0..da6265e478a 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/aws-counter.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/aws-counter.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/dec.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/dec.test.w_compile_tf-aws.md index e714616281c..e5eaf258c75 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/dec.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/dec.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/inc.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/inc.test.w_compile_tf-aws.md index b8ea881cb91..485695e7caf 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/inc.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/inc.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/initial.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/initial.test.w_compile_tf-aws.md index 087126060d9..49931454db4 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/initial.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/initial.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/peek.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/peek.test.w_compile_tf-aws.md index 4cd640c2400..95bf8d93460 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/peek.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/peek.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/set.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/set.test.w_compile_tf-aws.md index 72bbfa373c0..0e16be63523 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/set.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/counter/set.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/aws-dynamodb.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/aws-dynamodb.test.w_compile_tf-aws.md index 5dfbdff5f3c..7b1747b1c87 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/aws-dynamodb.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/aws-dynamodb.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/query.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/query.test.w_compile_tf-aws.md index fa740811b6f..5a8efc212bf 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/query.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/query.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/transaction.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/transaction.test.w_compile_tf-aws.md index 7dc1d9abe64..16483e3f2c9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/transaction.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/dynamodb-table/transaction.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_compile_tf-aws.md index d6e581900a3..ed6d69e4fdb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/expect/assert.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/basic.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/basic.test.w_compile_tf-aws.md index 2032374d4b0..6e71931ecae 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/basic.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/basic.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/directory.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/directory.test.w_compile_tf-aws.md index 8bfe6660685..2a77bcb9151 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/directory.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/directory.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/json.test.w_compile_tf-aws.md index 7d248237ee2..1ef64e04146 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/json.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/options.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/options.test.w_compile_tf-aws.md index 867e130e55f..e61d366bb41 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/options.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/options.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/path.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/path.test.w_compile_tf-aws.md index c2eec132bea..a09efa1613b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/path.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/path.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/stat.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/stat.test.w_compile_tf-aws.md index fc330e0e6ff..072b3a6012b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/stat.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/stat.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/temp_dir.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/temp_dir.test.w_compile_tf-aws.md index 394007fa601..3475a322c56 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/temp_dir.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/temp_dir.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/yaml.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/yaml.test.w_compile_tf-aws.md index c5e9a6349be..de2ad48d0ee 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/yaml.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/fs/yaml.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md index c0166c5353c..0d89dd39b49 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/aws-function.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md index 622d46ba1d7..6d9e541ab16 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/env.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md index f68876e4042..613808f369d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/invoke.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md index 5043884c180..a88ef5d616f 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/logging.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md index ade26e4843a..5229851f788 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/function/memory_and_env.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/url.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/url.test.w_compile_tf-aws.md index e01d5315030..b139b8ee6c7 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/url.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/http/url.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/abs.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/abs.test.w_compile_tf-aws.md index 46f8207d1cd..43fcc723aeb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/abs.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/abs.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acos.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acos.test.w_compile_tf-aws.md index c1f91de2e89..7b0f3a63a81 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acos.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acos.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acot.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acot.test.w_compile_tf-aws.md index a4b49ebfd34..bfb6ad2391b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acot.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acot.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acsc.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acsc.test.w_compile_tf-aws.md index 48a8b2f970b..a199bb53f05 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acsc.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/acsc.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/angular_conversion.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/angular_conversion.test.w_compile_tf-aws.md index 99466ed92d5..c919e8c9c23 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/angular_conversion.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/angular_conversion.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asec.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asec.test.w_compile_tf-aws.md index 61392ae20f5..c51d76368b6 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asec.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asec.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asin.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asin.test.w_compile_tf-aws.md index 6494b4362f7..99be3e23d35 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asin.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/asin.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan.test.w_compile_tf-aws.md index e8befdd3065..7b27952c18d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan2.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan2.test.w_compile_tf-aws.md index 35cd3ceb56b..92b60e61a60 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan2.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/atan2.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/combinations.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/combinations.test.w_compile_tf-aws.md index 419c2e96c07..303dc691fe5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/combinations.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/combinations.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cos.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cos.test.w_compile_tf-aws.md index baa4f9b53bc..1dd904f3bc6 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cos.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cos.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cot.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cot.test.w_compile_tf-aws.md index fa82b09a3a5..4b9596ada66 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cot.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/cot.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/csc.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/csc.test.w_compile_tf-aws.md index c1a1e100ac2..3e9185f2066 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/csc.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/csc.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/euler.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/euler.test.w_compile_tf-aws.md index 3a49d7dbb4c..d28e34fe166 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/euler.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/euler.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/factorial.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/factorial.test.w_compile_tf-aws.md index b27d52371ff..75de341883b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/factorial.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/factorial.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/fibonacci.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/fibonacci.test.w_compile_tf-aws.md index f98f04fff24..b2d87a7458d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/fibonacci.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/fibonacci.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/floor_ceil_round.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/floor_ceil_round.test.w_compile_tf-aws.md index 3c93a163d3a..c318edf494b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/floor_ceil_round.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/floor_ceil_round.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/hypot.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/hypot.test.w_compile_tf-aws.md index a32bdb3d58d..8a6a66d79f9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/hypot.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/hypot.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/median_mode_mean.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/median_mode_mean.test.w_compile_tf-aws.md index 2d5df6278e2..5e15065a569 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/median_mode_mean.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/median_mode_mean.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/min_max.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/min_max.test.w_compile_tf-aws.md index 936993e18df..ddcfe9aad4e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/min_max.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/min_max.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/pi.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/pi.test.w_compile_tf-aws.md index 2fce81c6ef7..abd2505e0de 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/pi.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/pi.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/prime.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/prime.test.w_compile_tf-aws.md index 67ee054c645..655c605b0d9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/prime.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/prime.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/random.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/random.test.w_compile_tf-aws.md index a5d26a748e8..318ab2fd6cb 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/random.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/random.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sec.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sec.test.w_compile_tf-aws.md index 6bafe6c4d9a..3a8c3f65554 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sec.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sec.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sin.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sin.test.w_compile_tf-aws.md index e0c46e1eddd..2e6d482bee0 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sin.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sin.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sqrt.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sqrt.test.w_compile_tf-aws.md index d9a99b9aeed..cc8ad9be196 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sqrt.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/sqrt.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tan.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tan.test.w_compile_tf-aws.md index 36e724b1d35..07e3a1dbe2d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tan.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tan.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tau.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tau.test.w_compile_tf-aws.md index fa4ce1f4b6c..6a79abf61ce 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tau.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/math/tau.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md index c6b95112cee..e107f9a2635 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/misc/empty-actions.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -31,11 +23,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md index 3260618584e..0828c41f95e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/on_deploy/execute_after.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_lambda_invocation": { @@ -53,11 +45,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/aws-queue.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/aws-queue.test.w_compile_tf-aws.md index 66f6559fba9..38432df9f69 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/aws-queue.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/aws-queue.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/pop.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/pop.test.w_compile_tf-aws.md index 67f36b12202..8fb7261200b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/pop.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/pop.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/purge.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/purge.test.w_compile_tf-aws.md index 23af5a34c26..ef9c6bef13e 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/purge.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/purge.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/push.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/push.test.w_compile_tf-aws.md index 27f2d4d4369..f432ab7c2b8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/push.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/push.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_compile_tf-aws.md index 88c27270184..4137e386b7b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/retention_period.main.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md index 5520e380206..11a002d5dab 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/queue/set_consumer.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/regex/match.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/regex/match.test.w_compile_tf-aws.md index 99f849099fa..a3c4561aaa0 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/regex/match.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/regex/match.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md index a0b9c8c3ff5..b6c4fe8a8e4 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/schedule/on_tick.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/callbacks.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/callbacks.test.w_compile_tf-aws.md index f6e08f3a0fa..bf64f3ced60 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/callbacks.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/callbacks.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/http-server.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/http-server.test.w_compile_tf-aws.md index 20ad3b34a37..35dbd74bb62 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/http-server.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/http-server.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/minimal.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/minimal.test.w_compile_tf-aws.md index e1e564db49d..9a756a02dba 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/minimal.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/minimal.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/stateful.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/stateful.test.w_compile_tf-aws.md index f1e7da8b608..5b9b2768e88 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/stateful.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/stateful.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/tokens.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/tokens.test.w_compile_tf-aws.md index 63790dda3d4..8affcdd9ff1 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/tokens.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/service/tokens.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/get.test.w_compile_tf-aws.md index fb3b857527c..655b4a35a00 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/get.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/set.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/set.test.w_compile_tf-aws.md index dab19e924bd..c6ac2435be6 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/set.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/state/set.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/array.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/array.test.w_compile_tf-aws.md index d17f9562a4e..f6431ccad64 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/array.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/array.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/bool.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/bool.test.w_compile_tf-aws.md index 80d2c90fbf3..15997683a99 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/bool.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/bool.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/datetime.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/datetime.test.w_compile_tf-aws.md index fb93deb0ef1..1f86525a78d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/datetime.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/datetime.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/duration.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/duration.test.w_compile_tf-aws.md index 88e4531011e..75b5753ba6b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/duration.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/duration.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/json.test.w_compile_tf-aws.md index 5e67819a1aa..d9615523341 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/json.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/map.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/map.test.w_compile_tf-aws.md index 37291684133..a0b24214296 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/map.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/map.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/node.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/node.test.w_compile_tf-aws.md index 6f69a675588..c7a6d093480 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/node.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/node.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/number.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/number.test.w_compile_tf-aws.md index f28281717b3..d7c3de7946f 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/number.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/number.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/range.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/range.test.w_compile_tf-aws.md index 71b9a74affa..ebeab452db3 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/range.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/range.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/set.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/set.test.w_compile_tf-aws.md index 6644617250a..ae8cb79f26d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/set.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/set.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/string.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/string.test.w_compile_tf-aws.md index 809bef6de9c..a351212bf82 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/string.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/string.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/struct.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/struct.test.w_compile_tf-aws.md index 4449378edf4..5544af9a0f8 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/struct.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/std/struct.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/add_row.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/add_row.test.w_compile_tf-aws.md index 2b5560a2f6a..971d137a13a 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/add_row.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/add_row.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/aws-table.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/aws-table.test.w_compile_tf-aws.md index 340fa7ff519..0d396de0066 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/aws-table.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/aws-table.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/get.test.w_compile_tf-aws.md index 465f7a90904..c9d326a2d72 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/get.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/list.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/list.test.w_compile_tf-aws.md index d2fd2dbcd2d..9166f80605b 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/list.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/list.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/try_get.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/try_get.test.w_compile_tf-aws.md index 75ffcc8d2ce..cf91afd31df 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/try_get.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/try_get.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/upsert.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/upsert.test.w_compile_tf-aws.md index c12b0559bbb..bca32889ae5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/upsert.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/table/upsert.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/aws-topic.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/aws-topic.test.w_compile_tf-aws.md index 335a93eda3d..0a15a26aa31 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/aws-topic.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/aws-topic.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md index 93b7a4d09c1..84b3e4caedf 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/no_blocking.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md index 0a5692fb3eb..7e216a30206 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/topic/on_message.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md index eeaa93e95ee..5ccd3644264 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/ui/section.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/base64.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/base64.test.w_compile_tf-aws.md index 5d968d8b06c..e676a68f8d9 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/base64.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/base64.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_compile_tf-aws.md index 01c29b04a75..46ebd7e14c1 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/env.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/nanoid.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/nanoid.test.w_compile_tf-aws.md index 605d5be31e4..bed7d5bfd8d 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/nanoid.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/nanoid.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sha256.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sha256.test.w_compile_tf-aws.md index 3e7239566a7..fcc412095b3 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sha256.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sha256.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sleep.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sleep.test.w_compile_tf-aws.md index 8c45db0e271..e37fedff9ca 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sleep.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/sleep.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/uuidv4.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/uuidv4.test.w_compile_tf-aws.md index ae8b7dd5171..2401454141c 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/uuidv4.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/uuidv4.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md index df058ff689d..0cbb1072699 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/util/wait-until.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-react-app.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-react-app.test.w_compile_tf-aws.md index afefc2299e0..5d9f51bdeb5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-react-app.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-react-app.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -58,11 +50,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-website.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-website.test.w_compile_tf-aws.md index 54e1f0ebbd1..124f5a0f397 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-website.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/aws-website.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -58,11 +50,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/react-app.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/react-app.test.w_compile_tf-aws.md index eb689b680f6..5304e081cf0 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/react-app.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/react-app.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -68,11 +60,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/two_websites.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/two_websites.test.w_compile_tf-aws.md index 71ac571fb19..3f483e3fed5 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/two_websites.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/two_websites.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -93,11 +85,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/website.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/website.test.w_compile_tf-aws.md index 8a01ed752ae..d3724285bd7 100644 --- a/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/website.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/sdk_tests/website/website.test.w_compile_tf-aws.md @@ -9,15 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -58,11 +50,6 @@ } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/anon_function.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/anon_function.test.w_compile_tf-aws.md index e60a447c6d8..53d9a9e9213 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/anon_function.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/anon_function.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md index 3926a229738..867e70c77e1 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api.test.w_compile_tf-aws.md @@ -84,15 +84,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -106,11 +98,6 @@ module.exports = function({ }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} @@ -322,7 +309,7 @@ module.exports = function({ }) { "NODE_OPTIONS": "--enable-source-maps", "WING_FUNCTION_NAME": "get_endpoint1_-0-c83be382", "WING_TARGET": "tf-aws", - "WING_TOKEN_HTTPS_TFTOKEN_TOKEN_31_EXECUTE_API_TFTOKEN_TOKEN_24_AMAZONAWS_COM_TFTOKEN_TOKEN_32": "${jsonencode(\"https://${aws_api_gateway_rest_api.A_cloudApi_api_37FCEF91.id}.execute-api.${data.aws_region.Region.name}.amazonaws.com/${aws_api_gateway_stage.A_cloudApi_api_stage_6D822CCE.stage_name}\")}" + "WING_TOKEN_HTTPS_TFTOKEN_TOKEN_30_EXECUTE_API_TFTOKEN_TOKEN_23_AMAZONAWS_COM_TFTOKEN_TOKEN_31": "${jsonencode(\"https://${aws_api_gateway_rest_api.A_cloudApi_api_37FCEF91.id}.execute-api.${data.aws_region.Region.name}.amazonaws.com/${aws_api_gateway_stage.A_cloudApi_api_stage_6D822CCE.stage_name}\")}" } }, "function_name": "get_endpoint1_-0-c83be382", diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md index 56cd5a2e7f2..5dae1035095 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_custom.test.w_compile_tf-aws.md @@ -104,15 +104,7 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -126,11 +118,6 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md index 493629f972d..d0a3ab97a76 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_cors_default.test.w_compile_tf-aws.md @@ -80,15 +80,7 @@ module.exports = function({ $apiDefaultCors_url, $expect_Util, $http_HttpMethod, "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -102,11 +94,6 @@ module.exports = function({ $apiDefaultCors_url, $expect_Util, $http_HttpMethod, } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md index 8253017c484..4750a9f8a45 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/api_valid_path.test.w_compile_tf-aws.md @@ -28,15 +28,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -50,11 +42,6 @@ module.exports = function({ }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/assert.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/assert.test.w_compile_tf-aws.md index b01a59c8870..60cd8528a3e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/assert.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/assert.test.w_compile_tf-aws.md @@ -42,20 +42,7 @@ module.exports = function({ $s1, $s2 }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md index 52b40491ea4..1144615633f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/asynchronous_model_implicit_await_in_functions.test.w_compile_tf-aws.md @@ -47,20 +47,7 @@ module.exports = function({ $strToStr }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_compile_tf-aws.md index d2fac3dedf7..e063ef275dd 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_alias.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_compile_tf-aws.md index 8720dfcbdd6..42841339f06 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_awscdk.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_compile_tf-aws.md index b9d46545df9..8447f28d2b3 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdk8s.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md index 30aa3896a3d..ad4023e14f9 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_cdktf.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_jsii.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_jsii.test.w_compile_tf-aws.md index caddd992fc7..b941e15ea82 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_jsii.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_jsii.test.w_compile_tf-aws.md @@ -30,20 +30,7 @@ module.exports = function({ $greeting, $stuff_HelloWorld }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md index 53abf987922..78d9b5214f4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local.test.w_compile_tf-aws.md @@ -119,15 +119,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_lambda_invocation": { @@ -144,11 +136,6 @@ module.exports = function({ }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_compile_tf-aws.md index 0d7c54bec45..fece6b8f9c4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_dir.test.w_compile_tf-aws.md @@ -61,20 +61,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_compile_tf-aws.md index 7e1adf26ae1..fd842df508a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_local_normalization.test.w_compile_tf-aws.md @@ -48,20 +48,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_compile_tf-aws.md index 4590cfd3297..3c839e67e30 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_projen.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bring_wing_library.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bring_wing_library.test.w_compile_tf-aws.md index d56ddb10508..8b9e58330e9 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bring_wing_library.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bring_wing_library.test.w_compile_tf-aws.md @@ -64,20 +64,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/bucket_keys.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/bucket_keys.test.w_compile_tf-aws.md index b19593f3517..5a3c1437210 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/bucket_keys.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/bucket_keys.test.w_compile_tf-aws.md @@ -38,20 +38,7 @@ module.exports = function({ $b }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/call_static_of_myself.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/call_static_of_myself.test.w_compile_tf-aws.md index 88a5ed601fe..b48e7df12b4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/call_static_of_myself.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/call_static_of_myself.test.w_compile_tf-aws.md @@ -77,20 +77,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/calling_inflight_variants.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/calling_inflight_variants.test.w_compile_tf-aws.md index 049d4e8144a..30f74294977 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/calling_inflight_variants.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/calling_inflight_variants.test.w_compile_tf-aws.md @@ -88,20 +88,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_containers.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_containers.test.w_compile_tf-aws.md index 8165ec46153..cca86bc2aad 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_containers.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_containers.test.w_compile_tf-aws.md @@ -36,20 +36,7 @@ module.exports = function({ $Object_keys_myMap__length, $__arr__index_______if__ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_in_binary.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_in_binary.test.w_compile_tf-aws.md index 471d5146e13..595ccb52200 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_in_binary.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_in_binary.test.w_compile_tf-aws.md @@ -30,20 +30,7 @@ module.exports = function({ $b, $x }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_mutables.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_mutables.test.w_compile_tf-aws.md index 7f93e26c548..76c0de5e5e8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_mutables.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_mutables.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ $handler }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md index da3ed50c235..57a84579163 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_primitives.test.w_compile_tf-aws.md @@ -42,20 +42,7 @@ module.exports = function({ $myBool, $myDur_hours, $myDur_minutes, $myDur_second "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_reassigable_class_field.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_reassigable_class_field.test.w_compile_tf-aws.md index 4415617ef8c..4f10a62f1b0 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_reassigable_class_field.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_reassigable_class_field.test.w_compile_tf-aws.md @@ -97,20 +97,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_reassignable.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_reassignable.test.w_compile_tf-aws.md index 96c8ca011ee..79ce47dd8ec 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_reassignable.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_reassignable.test.w_compile_tf-aws.md @@ -47,20 +47,7 @@ module.exports = function({ $handler }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_and_data.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_and_data.test.w_compile_tf-aws.md index 122d7431464..dab2cc3bce3 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_and_data.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_and_data.test.w_compile_tf-aws.md @@ -31,20 +31,7 @@ module.exports = function({ $data_size, $queue, $res }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_with_no_inflight.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_with_no_inflight.test.w_compile_tf-aws.md index bc5af737595..88b18765fe2 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_with_no_inflight.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_resource_with_no_inflight.test.w_compile_tf-aws.md @@ -48,20 +48,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/capture_tokens.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/capture_tokens.test.w_compile_tf-aws.md index b6350a23411..d7ec02211d4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/capture_tokens.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/capture_tokens.test.w_compile_tf-aws.md @@ -70,15 +70,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -92,11 +84,6 @@ module.exports = function({ }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md index 38ea65ca4a5..5f4cdea3813 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/captures.test.w_compile_tf-aws.md @@ -61,15 +61,7 @@ module.exports = function({ $headers }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -83,11 +75,6 @@ module.exports = function({ $headers }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_compile_tf-aws.md index 2759fa30490..2b0709dfc76 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/casting.test.w_compile_tf-aws.md @@ -14,20 +14,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/class.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/class.test.w_compile_tf-aws.md index dfdaf3834e9..0eba6e8997b 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/class.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/class.test.w_compile_tf-aws.md @@ -322,20 +322,7 @@ module.exports = function({ $PaidStudent }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/closure_class.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/closure_class.test.w_compile_tf-aws.md index ee7308f5822..07d4edc6fc8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/closure_class.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/closure_class.test.w_compile_tf-aws.md @@ -51,20 +51,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_compile_tf-aws.md index f477d77e62b..8e0d951bd00 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/construct-base.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_compile_tf-aws.md index 6e6a9a85c6d..608fd08a6c5 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/container_types.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_compile_tf-aws.md index 80a886678b8..2f1015710f7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/custom_obj_id.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/debug_env.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/debug_env.test.w_compile_tf-aws.md index edb8252a31d..6f569c6c7af 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/debug_env.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/debug_env.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/deep_equality.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/deep_equality.test.w_compile_tf-aws.md index dd20a9b8d23..55ed8b3f39c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/deep_equality.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/deep_equality.test.w_compile_tf-aws.md @@ -251,20 +251,7 @@ module.exports = function({ $arrayA, $arrayB }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/double_reference.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/double_reference.test.w_compile_tf-aws.md index 39bdba4511e..d1682818e1d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/double_reference.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/double_reference.test.w_compile_tf-aws.md @@ -65,20 +65,7 @@ module.exports = function({ $initCount }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md index 3cee8e76d3f..2519d138cbb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/doubler.test.w_compile_tf-aws.md @@ -120,20 +120,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/enums.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/enums.test.w_compile_tf-aws.md index 6c5b750e320..af75cd83a76 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/enums.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/enums.test.w_compile_tf-aws.md @@ -29,20 +29,7 @@ module.exports = function({ $SomeEnum, $one, $two }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_compile_tf-aws.md index 95abd7cf03c..00f0580ae26 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/expressions_binary_operators.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/expressions_string_interpolation.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/expressions_string_interpolation.test.w_compile_tf-aws.md index 7207e8d5b3c..3a2b2830564 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/expressions_string_interpolation.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/expressions_string_interpolation.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md index 913ee0747d0..e12c54a7bbc 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/extern_implementation.test.w_compile_tf-aws.md @@ -78,20 +78,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md index db1ac5dba92..5a821ad3512 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/file_counter.test.w_compile_tf-aws.md @@ -30,20 +30,7 @@ module.exports = function({ $bucket, $counter }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md index bef164b9d05..131f0f104f4 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/for_loop.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_compile_tf-aws.md index 9ab01f4e5c9..07923ec1211 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/forward_decl.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_returns_function.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/function_returns_function.test.w_compile_tf-aws.md index 0606228e12c..71f44c9c464 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_returns_function.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_returns_function.test.w_compile_tf-aws.md @@ -36,20 +36,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_compile_tf-aws.md index fe0875f9d29..3f79c8c9c05 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_type.test.w_compile_tf-aws.md @@ -80,20 +80,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_compile_tf-aws.md index 8e788ee4bfd..3383a439cff 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/function_variadic_arguments.test.w_compile_tf-aws.md @@ -36,20 +36,7 @@ module.exports = function({ $A }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md index 943dce6b24c..7d0a1c29c1a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/hello.test.w_compile_tf-aws.md @@ -28,20 +28,7 @@ module.exports = function({ $bucket }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_compile_tf-aws.md index 2024cd7831f..bca4ba16e7e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/identical_inflights.test.w_compile_tf-aws.md @@ -45,20 +45,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/impl_interface.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/impl_interface.test.w_compile_tf-aws.md index 72bb99e68ee..26d5cc17355 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/impl_interface.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/impl_interface.test.w_compile_tf-aws.md @@ -115,20 +115,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_compile_tf-aws.md index a77ace1a5cc..91d74d7f17f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/implicit_std.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_compile_tf-aws.md index 265acea6889..bbf77a819a2 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/in_scope_construct.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md index 9529a8412f8..8e2c2865586 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inference.test.w_compile_tf-aws.md @@ -28,15 +28,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -50,11 +42,6 @@ module.exports = function({ }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md index 2d0c646ee9f..36c147538e6 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight-subscribers.test.w_compile_tf-aws.md @@ -47,20 +47,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_capture_static.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_capture_static.test.w_compile_tf-aws.md index 62ea6ee285f..c21e1fda18d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_capture_static.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_capture_static.test.w_compile_tf-aws.md @@ -129,20 +129,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_as_struct_members.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_as_struct_members.test.w_compile_tf-aws.md index 26eeffd91e0..9c03eb346b8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_as_struct_members.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_as_struct_members.test.w_compile_tf-aws.md @@ -62,20 +62,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_const.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_const.test.w_compile_tf-aws.md index 04fd8a598f4..993baa7bfcb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_const.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_const.test.w_compile_tf-aws.md @@ -43,20 +43,7 @@ module.exports = function({ $myConst }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_preflight_object.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_preflight_object.test.w_compile_tf-aws.md index 4b37d26c053..c5da0147a20 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_preflight_object.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_capture_preflight_object.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_definitions.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_definitions.test.w_compile_tf-aws.md index b859dc29ff2..9740823b170 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_definitions.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_definitions.test.w_compile_tf-aws.md @@ -151,20 +151,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inner_capture_mutable.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inner_capture_mutable.test.w_compile_tf-aws.md index 1899dd3ba79..ec77a50b233 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inner_capture_mutable.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inner_capture_mutable.test.w_compile_tf-aws.md @@ -39,20 +39,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md index 5c3c63fcdae..2ee63b3f64e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_inside_inflight_closure.test.w_compile_tf-aws.md @@ -99,20 +99,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_compile_tf-aws.md index b69efc27734..832da3d6f17 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_modifiers.test.w_compile_tf-aws.md @@ -27,20 +27,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_outside_inflight_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_outside_inflight_closure.test.w_compile_tf-aws.md index 7d6e9d224a9..0f499564991 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_outside_inflight_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_outside_inflight_closure.test.w_compile_tf-aws.md @@ -49,20 +49,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_structural_interace_handler.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_structural_interace_handler.test.w_compile_tf-aws.md index 7acf942f81d..ecccc25a3fb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_structural_interace_handler.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_structural_interace_handler.test.w_compile_tf-aws.md @@ -53,20 +53,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_without_init.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_without_init.test.w_compile_tf-aws.md index 63526c4d182..b86e69e9d2a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_without_init.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_class_without_init.test.w_compile_tf-aws.md @@ -39,20 +39,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_compile_tf-aws.md index 59e083c8b6b..a0d8a5869f1 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_closure_inside_preflight_closure.test.w_compile_tf-aws.md @@ -40,20 +40,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_compile_tf-aws.md index 16d9cf8bca7..033c01c4a6e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_concat.test.w_compile_tf-aws.md @@ -26,20 +26,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflight_init.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflight_init.test.w_compile_tf-aws.md index 0a12cd4773e..376d3d1fa71 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflight_init.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflight_init.test.w_compile_tf-aws.md @@ -167,20 +167,7 @@ module.exports = function({ $Foo }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md index 12d6ae7cd83..f32c01bd704 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inflights_calling_inflights.test.w_compile_tf-aws.md @@ -124,20 +124,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md index cf23bd5605b..627651cafe2 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inherit_stdlib_class.test.w_compile_tf-aws.md @@ -62,15 +62,7 @@ module.exports = function({ $cloud_Api }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -84,11 +76,6 @@ module.exports = function({ $cloud_Api }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_inflight.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_inflight.test.w_compile_tf-aws.md index 2de02844c7d..eecb015da8a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_inflight.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_inflight.test.w_compile_tf-aws.md @@ -69,20 +69,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_compile_tf-aws.md index 5e333f76837..5766f77451c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_class_preflight.test.w_compile_tf-aws.md @@ -36,20 +36,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_compile_tf-aws.md index 84203d662be..0a87a7d0bbe 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/inheritance_interface.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_compile_tf-aws.md index f1981476e90..e5a7b2524a8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/interface.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md index c7379dd2255..ea630251da6 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/issue_2889.test.w_compile_tf-aws.md @@ -51,15 +51,7 @@ module.exports = function({ $api_url, $http_Util, $std_Json }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -73,11 +65,6 @@ module.exports = function({ $api_url, $http_Util, $std_Json }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_compile_tf-aws.md index 1bb183c73a0..2162e506d60 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md index e85be6a40c5..8595fb10c76 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json_bucket.test.w_compile_tf-aws.md @@ -49,20 +49,7 @@ module.exports = function({ $b, $fileName, $getJson, $j }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json_static.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/json_static.test.w_compile_tf-aws.md index 649e0469694..38c869688cb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json_static.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json_static.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ $std_Json }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_compile_tf-aws.md index 0fcd01cd803..121dae6c03f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/json_string_interpolation.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_expr_with_this.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_expr_with_this.test.w_compile_tf-aws.md index eaaa1a5aa90..55fb2842172 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_expr_with_this.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_expr_with_this.test.w_compile_tf-aws.md @@ -42,20 +42,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_redefinition.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_redefinition.test.w_compile_tf-aws.md index 9a5bb53272a..b35686abd54 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_redefinition.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_redefinition.test.w_compile_tf-aws.md @@ -30,20 +30,7 @@ module.exports = function({ $y }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_this.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_this.test.w_compile_tf-aws.md index 73595c55542..1ce68d2f135 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_this.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_this.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure.test.w_compile_tf-aws.md index 4718dcddcdd..bb728b8c143 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure.test.w_compile_tf-aws.md @@ -98,20 +98,7 @@ module.exports = function({ $bucket2 }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure_explicit.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure_explicit.test.w_compile_tf-aws.md index d13b4a40e66..33887cdb796 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure_explicit.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/lift_via_closure_explicit.test.w_compile_tf-aws.md @@ -48,20 +48,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_compile_tf-aws.md index df28f19ac77..82e5583c9f2 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/mut_container_types.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/new_in_static.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/new_in_static.test.w_compile_tf-aws.md index a8db71073a8..27fd53dfd9e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/new_in_static.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/new_in_static.test.w_compile_tf-aws.md @@ -41,20 +41,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_compile_tf-aws.md index 955184ceb0e..3af97ca51ba 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/new_jsii.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/nil.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/nil.test.w_compile_tf-aws.md index 3b5a57c5345..d9bc307ddd3 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/nil.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/nil.test.w_compile_tf-aws.md @@ -82,20 +82,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/optionals.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/optionals.test.w_compile_tf-aws.md index c6ee6c43c50..c54e2bacfb2 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/optionals.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/optionals.test.w_compile_tf-aws.md @@ -85,20 +85,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_compile_tf-aws.md index 9152b959d53..6a065183f3c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/primitive_methods.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/print.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/print.test.w_compile_tf-aws.md index 72d4004480b..9e01b7259a8 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/print.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/print.test.w_compile_tf-aws.md @@ -49,20 +49,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_compile_tf-aws.md index ddb5128bd14..f1638a26a28 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/reassignment.test.w_compile_tf-aws.md @@ -22,20 +22,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md index df7252c0d68..b5a4dbabb08 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/redis.test.w_compile_tf-aws.md @@ -54,15 +54,7 @@ module.exports = function({ $queue, $r, $r2, $util_Util }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_region": { @@ -76,11 +68,6 @@ module.exports = function({ $queue, $r, $r2, $util_Util }) { } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md index f63adee8e22..9b96674d389 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_compile_tf-aws.md @@ -221,20 +221,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_test_sim.md b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_test_sim.md index 5352c15aca0..0619811399e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_test_sim.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource.test.w_test_sim.md @@ -1,5 +1,18 @@ # [resource.test.w](../../../../../examples/tests/valid/resource.test.w) | test | sim +## stderr.log +```log +Error: No resource found with handle "sim-25". + at HandleManager.find (:LINE:COL) + at Object.findInstance (:LINE:COL) + at Queue.processMessages (:LINE:COL) + at /queue.inflight.js:12:59 + at loop (:LINE:COL) + at runNextTicks (node:internal/process/task_queues:60:5) + at listOnTimeout (node:internal/timers:538:9) + at process.processTimers (node:internal/timers:512:7) +``` + ## stdout.log ```log pass ┌ resource.test.wsim » root/env0/test:test diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md index 3db2d068844..76fa9d19673 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_as_inflight_literal.test.w_compile_tf-aws.md @@ -47,20 +47,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_call_static.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_call_static.test.w_compile_tf-aws.md index c8114e7e026..715f3356b50 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_call_static.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_call_static.test.w_compile_tf-aws.md @@ -44,20 +44,7 @@ module.exports = function({ $globalCounter }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures.test.w_compile_tf-aws.md index 0619e0148d4..7d834b08841 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures.test.w_compile_tf-aws.md @@ -156,20 +156,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md index 3854531206f..7869fb5d169 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/resource_captures_globals.test.w_compile_tf-aws.md @@ -131,20 +131,7 @@ module.exports = function({ $_parentThis_localCounter, $globalCounter }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_compile_tf-aws.md index 29417b4927e..15f0a3ea44d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/service.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/shadowing.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/shadowing.test.w_compile_tf-aws.md index 15a83ad7b23..7bb9ddc9f6a 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/shadowing.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/shadowing.test.w_compile_tf-aws.md @@ -59,20 +59,7 @@ module.exports = function({ $fn }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/statements_if.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/statements_if.test.w_compile_tf-aws.md index ab9c682776e..e0a97469afb 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/statements_if.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/statements_if.test.w_compile_tf-aws.md @@ -47,20 +47,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_compile_tf-aws.md index f0963f41d34..8adde3869c0 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/statements_variable_declarations.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/static_members.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/static_members.test.w_compile_tf-aws.md index de2ed4ce613..c6d204dd59c 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/static_members.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/static_members.test.w_compile_tf-aws.md @@ -54,20 +54,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_compile_tf-aws.md index 952c23001d8..a1785cbdfe7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/std_containers.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ $Animal }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/std_string.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/std_string.test.w_compile_tf-aws.md index ff09cf09de5..67df59a8ef5 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/std_string.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/std_string.test.w_compile_tf-aws.md @@ -30,20 +30,7 @@ module.exports = function({ $__arr__index_______if__index___0____index____arr_le "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/struct_from_json.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/struct_from_json.test.w_compile_tf-aws.md index e685b4b0fdc..62d0dbece71 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/struct_from_json.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/struct_from_json.test.w_compile_tf-aws.md @@ -151,20 +151,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/structs.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/structs.test.w_compile_tf-aws.md index 993a5877665..660ff179518 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/structs.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/structs.test.w_compile_tf-aws.md @@ -46,20 +46,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/super_call.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/super_call.test.w_compile_tf-aws.md index 82314840b0e..99bb8ff4a9e 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/super_call.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/super_call.test.w_compile_tf-aws.md @@ -179,20 +179,7 @@ module.exports = function({ $InflightA }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/symbol_shadow.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/symbol_shadow.test.w_compile_tf-aws.md index a7e33c46692..3f5efdd670f 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/symbol_shadow.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/symbol_shadow.test.w_compile_tf-aws.md @@ -99,20 +99,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/table.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/table.test.w_compile_tf-aws.md index c518522355b..798413ec1ff 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/table.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/table.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/test_bucket.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/test_bucket.test.w_compile_tf-aws.md index 52d5064c500..7e40fb200c7 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/test_bucket.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/test_bucket.test.w_compile_tf-aws.md @@ -50,20 +50,7 @@ module.exports = function({ $b }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/test_without_bring.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/test_without_bring.test.w_compile_tf-aws.md index 1fcc608a87d..b4dd525686d 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/test_without_bring.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/test_without_bring.test.w_compile_tf-aws.md @@ -28,20 +28,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_compile_tf-aws.md index b27f05f3be0..507a195e185 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/try_catch.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md index 747c64cf86f..4d9e0e95334 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/use_inflight_method_inside_init_closure.test.w_compile_tf-aws.md @@ -43,20 +43,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md index 0c25c36a591..9b7c62b9780 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/website_with_api.test.w_compile_tf-aws.md @@ -101,15 +101,7 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } + "outputs": {} }, "data": { "aws_iam_policy_document": { @@ -160,11 +152,6 @@ module.exports = function({ $api_url, $expect_Util, $http_HttpMethod, $http_Util } } }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } - }, "provider": { "aws": [ {} diff --git a/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_compile_tf-aws.md index a5fe663989f..48b325a5cef 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/while.test.w_compile_tf-aws.md @@ -9,20 +9,7 @@ "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md index 69cc1768d96..359489a6095 100644 --- a/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md +++ b/tools/hangar/__snapshots__/test_corpus/valid/while_loop_await.test.w_compile_tf-aws.md @@ -34,20 +34,7 @@ module.exports = function({ }) { "stackName": "root", "version": "0.17.0" }, - "outputs": { - "root": { - "Default": { - "cloud.TestRunner": { - "TestFunctionArns": "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS" - } - } - } - } - }, - "output": { - "WING_TEST_RUNNER_FUNCTION_IDENTIFIERS": { - "value": "[]" - } + "outputs": {} }, "provider": { "aws": [ diff --git a/tools/hangar/__snapshots__/tree_json.ts.snap b/tools/hangar/__snapshots__/tree_json.ts.snap index 0d85a4ea311..b0115f419ee 100644 --- a/tools/hangar/__snapshots__/tree_json.ts.snap +++ b/tools/hangar/__snapshots__/tree_json.ts.snap @@ -613,6 +613,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": { "description": "A cloud unit test.", + "hidden": true, "title": "Test", }, "id": "test:dependency cycles", @@ -625,6 +626,7 @@ exports[`tree.json for an app with many resources 1`] = ` }, "display": { "description": "A cloud unit test.", + "hidden": true, "title": "Test", }, "id": "test:test", @@ -647,29 +649,6 @@ exports[`tree.json for an app with many resources 1`] = ` "id": "aws", "path": "root/Default/aws", }, - "cloud.TestRunner": { - "children": { - "TestFunctionArns": { - "constructInfo": { - "fqn": "cdktf.TerraformOutput", - "version": "0.17.0", - }, - "id": "TestFunctionArns", - "path": "root/Default/cloud.TestRunner/TestFunctionArns", - }, - }, - "constructInfo": { - "fqn": "@winglang/sdk.std.TestRunner", - "version": "0.0.0", - }, - "display": { - "description": "A suite of APIs for running tests and collecting results.", - "hidden": true, - "title": "TestRunner", - }, - "id": "cloud.TestRunner", - "path": "root/Default/cloud.TestRunner", - }, }, "constructInfo": { "fqn": "@winglang/sdk.core.App",