diff --git a/pkg/codegen/testing/test/program_driver.go b/pkg/codegen/testing/test/program_driver.go index 7dfc2c122939..d4619af8ffc7 100644 --- a/pkg/codegen/testing/test/program_driver.go +++ b/pkg/codegen/testing/test/program_driver.go @@ -271,10 +271,6 @@ var PulumiPulumiYAMLProgramTests = []ProgramTest{ Directory: transpiled("cue-random"), Description: "Cue random", }, - { - Directory: transpiled("cue-static-web-app"), - Description: "Cue static web app", - }, { Directory: transpiled("getting-started"), Description: "Getting started", diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/cue-static-web-app.pp b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/cue-static-web-app.pp deleted file mode 100644 index 738347d89d5c..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/cue-static-web-app.pp +++ /dev/null @@ -1,63 +0,0 @@ -resource rawkodeGroup "azure-native:resources:ResourceGroup" { - __logicalName = "rawkode-group" - location = "WestUs" -} - -resource rawkodeStorage "azure-native:storage:StorageAccount" { - __logicalName = "rawkode-storage" - resourceGroupName = rawkodeGroup.name - kind = "StorageV2" - sku = { - name = "Standard_LRS" - } -} - -resource rawkodeWebsite "azure-native:storage:StorageAccountStaticWebsite" { - __logicalName = "rawkode-website" - resourceGroupName = rawkodeGroup.name - accountName = rawkodeStorage.name - indexDocument = "index.html" - error404Document = "404.html" -} - -resource rawkodeIndexHtml "azure-native:storage:Blob" { - __logicalName = "rawkode-index.html" - resourceGroupName = rawkodeGroup.name - accountName = rawkodeStorage.name - containerName = rawkodeWebsite.containerName - contentType = "text/html" - type = "Block" - source = fileAsset("./website/index.html") -} - -resource stack72Group "azure-native:resources:ResourceGroup" { - __logicalName = "stack72-group" - location = "WestUs" -} - -resource stack72Storage "azure-native:storage:StorageAccount" { - __logicalName = "stack72-storage" - resourceGroupName = stack72Group.name - kind = "StorageV2" - sku = { - name = "Standard_LRS" - } -} - -resource stack72Website "azure-native:storage:StorageAccountStaticWebsite" { - __logicalName = "stack72-website" - resourceGroupName = stack72Group.name - accountName = stack72Storage.name - indexDocument = "index.html" - error404Document = "404.html" -} - -resource stack72IndexHtml "azure-native:storage:Blob" { - __logicalName = "stack72-index.html" - resourceGroupName = stack72Group.name - accountName = stack72Storage.name - containerName = stack72Website.containerName - contentType = "text/html" - type = "Block" - source = fileAsset("./website/index.html") -} diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/cue-static-web-app.cs b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/cue-static-web-app.cs deleted file mode 100644 index f01a224c968e..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/cue-static-web-app.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System.Collections.Generic; -using Pulumi; -using AzureNative = Pulumi.AzureNative; - -return await Deployment.RunAsync(() => -{ - var rawkodeGroup = new AzureNative.Resources.ResourceGroup("rawkode-group", new() - { - Location = "WestUs", - }); - - var rawkodeStorage = new AzureNative.Storage.StorageAccount("rawkode-storage", new() - { - ResourceGroupName = rawkodeGroup.Name, - Kind = "StorageV2", - Sku = new AzureNative.Storage.Inputs.SkuArgs - { - Name = "Standard_LRS", - }, - }); - - var rawkodeWebsite = new AzureNative.Storage.StorageAccountStaticWebsite("rawkode-website", new() - { - ResourceGroupName = rawkodeGroup.Name, - AccountName = rawkodeStorage.Name, - IndexDocument = "index.html", - Error404Document = "404.html", - }); - - var rawkodeIndexHtml = new AzureNative.Storage.Blob("rawkode-index.html", new() - { - ResourceGroupName = rawkodeGroup.Name, - AccountName = rawkodeStorage.Name, - ContainerName = rawkodeWebsite.ContainerName, - ContentType = "text/html", - Type = AzureNative.Storage.BlobType.Block, - Source = new FileAsset("./website/index.html"), - }); - - var stack72Group = new AzureNative.Resources.ResourceGroup("stack72-group", new() - { - Location = "WestUs", - }); - - var stack72Storage = new AzureNative.Storage.StorageAccount("stack72-storage", new() - { - ResourceGroupName = stack72Group.Name, - Kind = "StorageV2", - Sku = new AzureNative.Storage.Inputs.SkuArgs - { - Name = "Standard_LRS", - }, - }); - - var stack72Website = new AzureNative.Storage.StorageAccountStaticWebsite("stack72-website", new() - { - ResourceGroupName = stack72Group.Name, - AccountName = stack72Storage.Name, - IndexDocument = "index.html", - Error404Document = "404.html", - }); - - var stack72IndexHtml = new AzureNative.Storage.Blob("stack72-index.html", new() - { - ResourceGroupName = stack72Group.Name, - AccountName = stack72Storage.Name, - ContainerName = stack72Website.ContainerName, - ContentType = "text/html", - Type = AzureNative.Storage.BlobType.Block, - Source = new FileAsset("./website/index.html"), - }); - -}); - diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/dotnet.csproj b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/dotnet.csproj deleted file mode 100644 index ca7c203d8e74..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/dotnet/dotnet.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - Exe - net6.0 - enable - enable - - - - - - - diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/go/cue-static-web-app.go b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/go/cue-static-web-app.go deleted file mode 100644 index 4b04d8032d52..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/go/cue-static-web-app.go +++ /dev/null @@ -1,85 +0,0 @@ -package main - -import ( - resources "github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources" - storage "github.com/pulumi/pulumi-azure-native/sdk/go/azure/storage" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -func main() { - pulumi.Run(func(ctx *pulumi.Context) error { - rawkodeGroup, err := resources.NewResourceGroup(ctx, "rawkode-group", &resources.ResourceGroupArgs{ - Location: pulumi.String("WestUs"), - }) - if err != nil { - return err - } - rawkodeStorage, err := storage.NewStorageAccount(ctx, "rawkode-storage", &storage.StorageAccountArgs{ - ResourceGroupName: rawkodeGroup.Name, - Kind: pulumi.String("StorageV2"), - Sku: &storage.SkuArgs{ - Name: pulumi.String("Standard_LRS"), - }, - }) - if err != nil { - return err - } - rawkodeWebsite, err := storage.NewStorageAccountStaticWebsite(ctx, "rawkode-website", &storage.StorageAccountStaticWebsiteArgs{ - ResourceGroupName: rawkodeGroup.Name, - AccountName: rawkodeStorage.Name, - IndexDocument: pulumi.String("index.html"), - Error404Document: pulumi.String("404.html"), - }) - if err != nil { - return err - } - _, err = storage.NewBlob(ctx, "rawkode-index.html", &storage.BlobArgs{ - ResourceGroupName: rawkodeGroup.Name, - AccountName: rawkodeStorage.Name, - ContainerName: rawkodeWebsite.ContainerName, - ContentType: pulumi.String("text/html"), - Type: storage.BlobTypeBlock, - Source: pulumi.NewFileAsset("./website/index.html"), - }) - if err != nil { - return err - } - stack72Group, err := resources.NewResourceGroup(ctx, "stack72-group", &resources.ResourceGroupArgs{ - Location: pulumi.String("WestUs"), - }) - if err != nil { - return err - } - stack72Storage, err := storage.NewStorageAccount(ctx, "stack72-storage", &storage.StorageAccountArgs{ - ResourceGroupName: stack72Group.Name, - Kind: pulumi.String("StorageV2"), - Sku: &storage.SkuArgs{ - Name: pulumi.String("Standard_LRS"), - }, - }) - if err != nil { - return err - } - stack72Website, err := storage.NewStorageAccountStaticWebsite(ctx, "stack72-website", &storage.StorageAccountStaticWebsiteArgs{ - ResourceGroupName: stack72Group.Name, - AccountName: stack72Storage.Name, - IndexDocument: pulumi.String("index.html"), - Error404Document: pulumi.String("404.html"), - }) - if err != nil { - return err - } - _, err = storage.NewBlob(ctx, "stack72-index.html", &storage.BlobArgs{ - ResourceGroupName: stack72Group.Name, - AccountName: stack72Storage.Name, - ContainerName: stack72Website.ContainerName, - ContentType: pulumi.String("text/html"), - Type: storage.BlobTypeBlock, - Source: pulumi.NewFileAsset("./website/index.html"), - }) - if err != nil { - return err - } - return nil - }) -} diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/cue-static-web-app.ts b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/cue-static-web-app.ts deleted file mode 100644 index 1d327ac0c557..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/cue-static-web-app.ts +++ /dev/null @@ -1,47 +0,0 @@ -import * as pulumi from "@pulumi/pulumi"; -import * as azure_native from "@pulumi/azure-native"; - -const rawkodeGroup = new azure_native.resources.ResourceGroup("rawkode-group", {location: "WestUs"}); -const rawkodeStorage = new azure_native.storage.StorageAccount("rawkode-storage", { - resourceGroupName: rawkodeGroup.name, - kind: "StorageV2", - sku: { - name: "Standard_LRS", - }, -}); -const rawkodeWebsite = new azure_native.storage.StorageAccountStaticWebsite("rawkode-website", { - resourceGroupName: rawkodeGroup.name, - accountName: rawkodeStorage.name, - indexDocument: "index.html", - error404Document: "404.html", -}); -const rawkodeIndexHtml = new azure_native.storage.Blob("rawkode-index.html", { - resourceGroupName: rawkodeGroup.name, - accountName: rawkodeStorage.name, - containerName: rawkodeWebsite.containerName, - contentType: "text/html", - type: azure_native.storage.BlobType.Block, - source: new pulumi.asset.FileAsset("./website/index.html"), -}); -const stack72Group = new azure_native.resources.ResourceGroup("stack72-group", {location: "WestUs"}); -const stack72Storage = new azure_native.storage.StorageAccount("stack72-storage", { - resourceGroupName: stack72Group.name, - kind: "StorageV2", - sku: { - name: "Standard_LRS", - }, -}); -const stack72Website = new azure_native.storage.StorageAccountStaticWebsite("stack72-website", { - resourceGroupName: stack72Group.name, - accountName: stack72Storage.name, - indexDocument: "index.html", - error404Document: "404.html", -}); -const stack72IndexHtml = new azure_native.storage.Blob("stack72-index.html", { - resourceGroupName: stack72Group.name, - accountName: stack72Storage.name, - containerName: stack72Website.containerName, - contentType: "text/html", - type: azure_native.storage.BlobType.Block, - source: new pulumi.asset.FileAsset("./website/index.html"), -}); diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/package.json b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/package.json deleted file mode 100644 index a0cb7fece1a8..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "", - "version": "", - "dependencies": { - "@pulumi/azure-native": "^1.29.0", - "@pulumi/pulumi": "latest" - }, - "devDependencies": { - "@types/node": "^17.0.14", - "typescript": "^4.5.5" - }, - "pulumi": { - "resource": false - } -} \ No newline at end of file diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/tsconfig.json b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/tsconfig.json deleted file mode 100644 index 9e26dfeeb6e6..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/nodejs/tsconfig.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/python/cue-static-web-app.py b/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/python/cue-static-web-app.py deleted file mode 100644 index 649ad4913065..000000000000 --- a/pkg/codegen/testing/test/testdata/transpiled_examples/cue-static-web-app-pp/python/cue-static-web-app.py +++ /dev/null @@ -1,41 +0,0 @@ -import pulumi -import pulumi_azure_native as azure_native - -rawkode_group = azure_native.resources.ResourceGroup("rawkode-group", location="WestUs") -rawkode_storage = azure_native.storage.StorageAccount("rawkode-storage", - resource_group_name=rawkode_group.name, - kind="StorageV2", - sku=azure_native.storage.SkuArgs( - name="Standard_LRS", - )) -rawkode_website = azure_native.storage.StorageAccountStaticWebsite("rawkode-website", - resource_group_name=rawkode_group.name, - account_name=rawkode_storage.name, - index_document="index.html", - error404_document="404.html") -rawkode_index_html = azure_native.storage.Blob("rawkode-index.html", - resource_group_name=rawkode_group.name, - account_name=rawkode_storage.name, - container_name=rawkode_website.container_name, - content_type="text/html", - type=azure_native.storage.BlobType.BLOCK, - source=pulumi.FileAsset("./website/index.html")) -stack72_group = azure_native.resources.ResourceGroup("stack72-group", location="WestUs") -stack72_storage = azure_native.storage.StorageAccount("stack72-storage", - resource_group_name=stack72_group.name, - kind="StorageV2", - sku=azure_native.storage.SkuArgs( - name="Standard_LRS", - )) -stack72_website = azure_native.storage.StorageAccountStaticWebsite("stack72-website", - resource_group_name=stack72_group.name, - account_name=stack72_storage.name, - index_document="index.html", - error404_document="404.html") -stack72_index_html = azure_native.storage.Blob("stack72-index.html", - resource_group_name=stack72_group.name, - account_name=stack72_storage.name, - container_name=stack72_website.container_name, - content_type="text/html", - type=azure_native.storage.BlobType.BLOCK, - source=pulumi.FileAsset("./website/index.html"))