mirror of https://github.com/pulumi/pulumi.git
136 lines
5.4 KiB
Python
136 lines
5.4 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "pulumi-test-language_lib",
|
|
srcs = [
|
|
"interface.go",
|
|
"main.go",
|
|
"snapshots.go",
|
|
"testing.go",
|
|
"tests.go",
|
|
],
|
|
embedsrcs = [
|
|
"testdata/l1-empty/main.pp",
|
|
"testdata/l1-output-bool/main.pp",
|
|
"testdata/l2-destroy/0/main.pp",
|
|
"testdata/l2-destroy/1/main.pp",
|
|
"testdata/l2-engine-update-options/main.pp",
|
|
"testdata/l2-resource-simple/main.pp",
|
|
"testdata/l2-target-up-with-new-dependency/0/main.pp",
|
|
"testdata/l2-target-up-with-new-dependency/1/main.pp",
|
|
"testdata/snapshots/projects/l1-empty/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l1-main/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-destroy/0/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-destroy/1/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-resource-simple/Pulumi.yaml",
|
|
"testdata/snapshots/sdks/simple-2.0.0/test.txt",
|
|
"testdata/snapshots_bad/projects/l1-empty/Pulumi.yaml",
|
|
"testdata/snapshots_bad/projects/l2-resource-simple/Pulumi.yaml",
|
|
"testdata/snapshots_bad/sdks/simple-2.0.0/test.txt",
|
|
"testdata/snapshots_runtime_options/projects/l1-empty/Pulumi.yaml",
|
|
"testdata/l1-output-array/main.pp",
|
|
"testdata/l1-output-number/main.pp",
|
|
"testdata/l1-output-string/main.pp",
|
|
"testdata/snapshots_edit/projects/l1-empty/Pulumi.yaml",
|
|
"testdata/snapshots_edit/projects/l2-resource-simple/Pulumi.yaml",
|
|
"testdata/snapshots_edit/sdks/simple-2.0.0/test.txt",
|
|
"testdata/l1-main/subdir/main.pp",
|
|
"testdata/l1-stack-reference/main.pp",
|
|
"testdata/l2-failed-create-continue-on-error/main.pp",
|
|
"testdata/l2-large-string/main.pp",
|
|
"testdata/l2-resource-asset-archive/archive.tar",
|
|
"testdata/l2-resource-asset-archive/subdir/main.pp",
|
|
"testdata/l2-resource-asset-archive/test.txt",
|
|
"testdata/snapshots/projects/l2-failed-create-continue-on-error/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-large-string/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-resource-asset-archive/Pulumi.yaml",
|
|
"testdata/snapshots/projects/l2-resource-asset-archive/archive.tar",
|
|
"testdata/snapshots/projects/l2-resource-asset-archive/test.txt",
|
|
"testdata/snapshots/sdks/asset-archive-5.0.0/test.txt",
|
|
"testdata/snapshots/sdks/fail_on_create-4.0.0/test.txt",
|
|
"testdata/snapshots/sdks/large-4.3.2/test.txt",
|
|
"testdata/l2-resource-asset-archive/folder/test.txt",
|
|
"testdata/snapshots/projects/l2-resource-asset-archive/folder/test.txt",
|
|
],
|
|
importpath = "github.com/pulumi/pulumi/cmd/pulumi-test-language",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//cmd/pulumi-test-language/providers",
|
|
"//pkg/backend",
|
|
"//pkg/backend/display",
|
|
"//pkg/backend/diy",
|
|
"//pkg/codegen/schema",
|
|
"//pkg/display",
|
|
"//pkg/engine",
|
|
"//pkg/resource/deploy",
|
|
"//pkg/resource/stack",
|
|
"//pkg/secrets/b64",
|
|
"//proto/pulumi:pulumirpc_go_proto",
|
|
"//proto/pulumi/testing:testing_go_proto",
|
|
"//sdk/go/common/apitype",
|
|
"//sdk/go/common/diag",
|
|
"//sdk/go/common/diag/colors",
|
|
"//sdk/go/common/resource",
|
|
"//sdk/go/common/resource/config",
|
|
"//sdk/go/common/resource/plugin",
|
|
"//sdk/go/common/tokens",
|
|
"//sdk/go/common/util/cmdutil",
|
|
"//sdk/go/common/util/contract",
|
|
"//sdk/go/common/util/result",
|
|
"//sdk/go/common/util/rpcutil",
|
|
"//sdk/go/common/workspace",
|
|
"@com_github_blang_semver//:semver",
|
|
"@com_github_deckarep_golang_set_v2//:golang-set",
|
|
"@com_github_hexops_gotextdiff//:gotextdiff",
|
|
"@com_github_hexops_gotextdiff//myers",
|
|
"@com_github_hexops_gotextdiff//span",
|
|
"@com_github_segmentio_encoding//json",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//credentials/insecure",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "pulumi-test-language",
|
|
embed = [":pulumi-test-language_lib"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "pulumi-test-language_test",
|
|
srcs = [
|
|
"interface_test.go",
|
|
"internal_test.go",
|
|
"l1empty_test.go",
|
|
"l1main_test.go",
|
|
"l2continue_on_error_test.go",
|
|
"l2destroy_test.go",
|
|
"l2large_test.go",
|
|
"l2resourceasset_test.go",
|
|
"l2resourcesimple_test.go",
|
|
"runtime_options_test.go",
|
|
"snapshot_test.go",
|
|
],
|
|
data = glob(["testdata/**"]),
|
|
embed = [":pulumi-test-language_lib"],
|
|
deps = [
|
|
"//proto/pulumi:pulumirpc_go_proto",
|
|
"//proto/pulumi/testing:testing_go_proto",
|
|
"//sdk/go/common/apitype",
|
|
"//sdk/go/common/resource",
|
|
"//sdk/go/common/resource/plugin",
|
|
"//sdk/go/common/util/contract",
|
|
"//sdk/go/common/util/rpcutil",
|
|
"//sdk/go/common/workspace",
|
|
"@com_github_segmentio_encoding//json",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
"@in_gopkg_yaml_v2//:yaml_v2",
|
|
"@org_golang_google_grpc//:go_default_library",
|
|
"@org_golang_google_grpc//credentials/insecure",
|
|
"@org_golang_google_protobuf//types/known/structpb",
|
|
],
|
|
)
|