Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filesystem resource #189

Merged
merged 6 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/filesystem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test Filesystem rs

on:
workflow_dispatch:
push:
branches:
- master
paths:
- "**.go"
- ".github/workflows/filesystem.yml"
pull_request:
branches:
- master
paths:
- "**gridscale_filesystem**"
- "gridscale/error-handler/**"
- "gridscale/common.go"
- "gridscale/config.go"
- "gridscale/provider.go"
- "gridscale/provider_test.go"
- ".github/workflows/filesystem.yml"

jobs:
build:
name: GS Filesystem AccTest
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
GRIDSCALE_UUID: ${{ secrets.CI_USER_UUID }}
GRIDSCALE_TOKEN: ${{ secrets.CI_API_TOKEN }}
GRIDSCALE_URL: ${{ secrets.CI_API_URL }}
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v2
with:
go-version: ^1.16
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Run TestAccResourceGridscaleFilesystem_Basic
run: make testacc TEST=./gridscale TESTARGS='-run=TestAccResourceGridscaleFilesystem_Basic'
1 change: 1 addition & 0 deletions gridscale/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var firewallActionTypes = []string{"accept", "drop"}
var firewallRuleProtocols = []string{"udp", "tcp"}
var marketplaceAppCategories = []string{"CMS", "project management", "Adminpanel", "Collaboration", "Cloud Storage", "Archiving"}
var postgreSQLPerformanceClasses = []string{"standard", "high", "insane", "ultra"}
var filesystemPerformanceClasses = []string{"standard", "high", "insane", "ultra"}
var msSQLServerPerformanceClasses = []string{"standard", "high", "insane", "ultra"}
var mariaDBPerformanceClasses = []string{"standard", "high", "insane", "ultra"}

Expand Down
1 change: 1 addition & 0 deletions gridscale/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func Provider() *schema.Provider {
"gridscale_mysql": resourceGridscaleMySQL(),
"gridscale_mariadb": resourceGridscaleMariaDB(),
"gridscale_memcached": resourceGridscaleMemcached(),
"gridscale_filesystem": resourceGridscaleFilesystem(),
"gridscale_object_storage_accesskey": resourceGridscaleObjectStorage(),
"gridscale_template": resourceGridscaleTemplate(),
"gridscale_isoimage": resourceGridscaleISOImage(),
Expand Down
Loading