Skip to content

Commit

Permalink
chore(ci): update CI to use super admin kestra config
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Dec 19, 2024
1 parent 6f69e3f commit 42300cb
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 43 deletions.
4 changes: 4 additions & 0 deletions .github/docker/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
kestra:
security:
super-admin:
username: [email protected]
password: Root!1234
encryption:
secret-key: LWBErwwlb/BQcxWujsm+/scPeO01cTKzvW44GbAWvII=
kafka:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ jobs:
TF_ACC: "1"
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
KESTRA_URL: "http://127.27.27.27:8080"
KESTRA_USERNAME: john@doe.com
KESTRA_PASSWORD: pass
KESTRA_USERNAME: root@root.com
KESTRA_PASSWORD: Root!1234
run: |
go test -v -cover ./internal/provider/
Expand Down
26 changes: 13 additions & 13 deletions internal/provider/resource_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func TestAccResourceApp(t *testing.T) {
func testAccResourceApp(resourceId string) string {
return fmt.Sprintf(
`
resource "kestra_flow" "new_flow" {
namespace = "company.team"
flow_id = "get_data"
resource "kestra_flow" "new_flow" {
namespace = "company.team"
flow_id = "get_data"
content = <<EOT
id: get_data
namespace: company.team
Expand All @@ -37,9 +37,9 @@ tasks:
type: io.kestra.plugin.core.log.Log
message: Hello World! 🚀
EOT
}
resource "kestra_app" "%s" {
source = <<-EOF
}
resource "kestra_app" "%s" {
source = <<-EOF
id: test_tf
type: io.kestra.plugin.ee.apps.Execution
displayName: New display name
Expand All @@ -49,12 +49,12 @@ access: PRIVATE
layout:
- on: OPEN
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
## Request data
Select the dataset you want to download.
EOF
}`,
blocks:
- type: io.kestra.plugin.ee.apps.core.blocks.Markdown
content: |
## Request data
Select the dataset you want to download.
EOF
}`,
resourceId)
}
55 changes: 27 additions & 28 deletions internal/provider/resource_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,32 @@ func TestAccResourceDashboard(t *testing.T) {
func testAccResourceDashboard(resourceId string) string {
return fmt.Sprintf(
`
resource "kestra_dashboard" "%s" {
source_code = <<-EOF
title: Overview_test
charts:
- id: executions_timeseries
type: io.kestra.plugin.core.dashboard.chart.TimeSeries
chartOptions:
displayName: Executions
description: Executions duration and count per date
legend:
enabled: true
column: date
colorByColumn: state
data:
type: io.kestra.plugin.core.dashboard.data.Executions
columns:
date:
field: START_DATE
displayName: Date
state:
field: STATE
total:
displayName: Executions
agg: COUNT
graphStyle: BARS
EOF
}`,
resource "kestra_dashboard" "%s" {
source_code = <<-EOF
title: Overview_test
charts:
- id: executions_timeseries
type: io.kestra.plugin.core.dashboard.chart.TimeSeries
chartOptions:
displayName: Executions
description: Executions duration and count per date
legend:
enabled: true
column: date
colorByColumn: state
data:
type: io.kestra.plugin.core.dashboard.data.Executions
columns:
date:
field: START_DATE
displayName: Date
state:
field: STATE
total:
displayName: Executions
agg: COUNT
graphStyle: BARS
EOF
}`,
resourceId)
}

0 comments on commit 42300cb

Please sign in to comment.