generate/main-test.py (5 lines of code) (raw):

# Copyright 2024 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import pytest from cdktf import Testing # The tests below are example tests, you can find more information at # https://cdk.tf/testing class TestMain: def test_my_app(self): assert True #stack = TerraformStack(Testing.app(), "stack") #app_abstraction = MyApplicationsAbstraction(stack, "app-abstraction") #synthesized = Testing.synth(stack) # def test_should_contain_container(self): # assert Testing.to_have_resource(self.synthesized, Container.TF_RESOURCE_TYPE) # def test_should_use_an_ubuntu_image(self): # assert Testing.to_have_resource_with_properties(self.synthesized, Image.TF_RESOURCE_TYPE, { # "name": "ubuntu:latest", # }) # def test_check_validity(self): # assert Testing.to_be_valid_terraform(Testing.full_synth(stack))