This commit is contained in:
2025-12-08 10:47:09 -05:00
parent 136b88ccdc
commit c4445aa92f
109 changed files with 9007 additions and 1219 deletions

View File

@@ -1,3 +0,0 @@
name: basic-py
runtime: python
description: A basic python program for integration testing

View File

@@ -1,18 +0,0 @@
# Copyright 2024, Pulumi Corporation.
#
# 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 pulumi
import pulumi_xyz
resource = pulumi_xyz.Resource("Resource", sample_attribute = "attr")

View File

@@ -1,2 +0,0 @@
pulumi>=3.0.0,<4.0.0
pulumi-xyz>=1.0.0,<2.0.0

View File

@@ -1,12 +1,25 @@
import * as incus from "@kiterun/incus";
const resource = new incus.Instance("instance1", {
name: "instance1",
const resource = new incus.Instance("instance2", {
name: "instance2",
image: "images:ubuntu/24.04",
project: "default",
config: {
"limits.cpu": "4",
},
remote: "pizazz",
devices: [
{
name: "eth0",
type: "nic",
properties: {
network: "production",
}
}
],
waitFors: [{
type: "ipv4",
}]
})
export const ip1 = resource.ipv4Address;

View File

@@ -1,5 +0,0 @@
// Copyright 2024, Pulumi Corporation. All rights reserved.
//go:build dotnet || all
// +build dotnet all
package examples

View File

@@ -1,23 +0,0 @@
// Copyright 2024, Pulumi Corporation. All rights reserved.
//go:build python || all
// +build python all
package examples
import (
"path/filepath"
"testing"
"github.com/pulumi/pulumi/pkg/v3/testing/integration"
)
func TestBasicPy(t *testing.T) {
t.Skip("Skipping until the provider has been implemented")
test := getPythonBaseOptions(t).
With(integration.ProgramTestOptions{
Dir: filepath.Join(getCwd(t), "basic-py"),
})
integration.ProgramTest(t, &test)
}

View File

@@ -64,7 +64,7 @@ func getCSBaseOptions(t *testing.T) integration.ProgramTestOptions {
base := getBaseOptions(t)
baseJS := base.With(integration.ProgramTestOptions{
Dependencies: []string{
"Pulumi.Xyz",
"Pulumi.Incus",
},
})