Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke committed Sep 20, 2024
1 parent 2ed0b60 commit eece1d6
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
resource "teleport_static_host_user" "test" {
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
node_labels_expression = "labels.foo == \"bar\""
groups = ["foo", "bar"]
sudoers = ["abcd1234"]
uid = 1234
gid = 1234
default_shell = "/bin/bash"
}
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
}
node_labels_expression = "labels.foo == \"bar\""
groups = ["foo", "bar"]
sudoers = ["abcd1234"]
uid = 1234
gid = 1234
default_shell = "/bin/bash"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
resource "teleport_static_host_user" "test" {
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
groups = ["foo", "bar"]
}
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "foo"
values = ["bar"]
}
]
}
groups = ["foo", "bar"]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
resource "teleport_static_host_user" "test" {
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "baz"
values = ["quux"]
}
]
groups = ["baz", "quux"]
}
version = "v2"
metadata = {
name = "test"
}
spec = {
matchers = [
{
node_labels = [
{
name = "baz"
values = ["quux"]
}
]
}
groups = ["baz", "quux"]
}
]
}
}
9 changes: 5 additions & 4 deletions integrations/terraform/testlib/static_host_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ import (
"fmt"
"time"

v1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/header/v1"
labelv1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/label/v1"
userprovisioningv2 "github.com/gravitational/teleport/api/gen/proto/go/teleport/userprovisioning/v2"
"github.com/gravitational/teleport/api/types"
"github.com/gravitational/trace"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
"github.com/stretchr/testify/require"

v1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/header/v1"
labelv1 "github.com/gravitational/teleport/api/gen/proto/go/teleport/label/v1"
userprovisioningv2 "github.com/gravitational/teleport/api/gen/proto/go/teleport/userprovisioning/v2"
"github.com/gravitational/teleport/api/types"
)

func (s *TerraformSuiteOSS) TestStaticHostUser() {
Expand Down

0 comments on commit eece1d6

Please sign in to comment.