feat: more_tests #85

Merged
marcel.henselin merged 26 commits from feat/more_tests into alpha 2026-03-17 15:02:08 +00:00
8 changed files with 274 additions and 752 deletions
Showing only changes of commit 40e96de685 - Show all commits

View file

@ -12,8 +12,10 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Self-hosted Renovate - name: Self-hosted Renovate
uses: renovatebot/github-action@v41.0.0 uses: renovatebot/github-action@v46.1.4
with: with:
configurationFile: .github/renovate.json configurationFile: .github/renovate.json
token: ${{ secrets.RENOVATE_TOKEN }} # token: ${{ secrets.RENOVATE_TOKEN }}
token: ${{ env.FORGEJO_TOKEN }}

View file

@ -31,10 +31,10 @@ linters:
main: main:
list-mode: lax list-mode: lax
allow: allow:
- tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview
- github.com/hashicorp/terraform-plugin-framework - github.com/hashicorp/terraform-plugin-framework
- github.com/hashicorp/terraform-plugin-log - github.com/hashicorp/terraform-plugin-log
- github.com/stackitcloud/stackit-sdk-go - github.com/stackitcloud/stackit-sdk-go
- tf-provider.git.onstackit.cloud/stackit-dev-tools/terraform-provider-stackitprivatepreview
deny: deny:
- pkg: github.com/stretchr/testify - pkg: github.com/stretchr/testify
desc: Do not use a testing framework desc: Do not use a testing framework
@ -76,6 +76,7 @@ linters:
exclusions: exclusions:
paths: paths:
- generator/ - generator/
- internal/testutils
generated: lax generated: lax
warn-unused: true warn-unused: true
# Excluding configuration per-path, per-linter, per-text and per-source. # Excluding configuration per-path, per-linter, per-text and per-source.
@ -86,7 +87,7 @@ linters:
- gochecknoinits - gochecknoinits
formatters: formatters:
enable: enable:
#- gofmt - gofmt
- goimports - goimports
settings: settings:
goimports: goimports:

View file

@ -23,7 +23,7 @@ resource "stackitprivatepreview_postgresflexalpha_instance" "{{ .TfName }}" {
} }
{{ end }} {{ end }}
network = { network = {
acl = ["{{ .ACLString }}"] acl = [{{ range $i, $v := .ACLStrings }}{{if $i}},{{end}}"{{$v}}"{{end}}]
access_scope = "{{ .AccessScope }}" access_scope = "{{ .AccessScope }}"
} }
version = {{ .Version }} version = {{ .Version }}

View file

@ -161,7 +161,7 @@ func CreateInstanceWaitHandler(
if !ok { if !ok {
return false, nil, err return false, nil, err
} }
// TODO: refactor and cooperate with api guys to mitigate // TODO: refactor and cooperate with api guys to mitigate // nolint: // reason upfront
if oapiErr.StatusCode < 500 { if oapiErr.StatusCode < 500 {
return true, instanceGetResponse, fmt.Errorf( return true, instanceGetResponse, fmt.Errorf(
"users request after instance creation returned %d status code", "users request after instance creation returned %d status code",