Skip to content

Commit

Permalink
test: use file in the scenario instead EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
anvial committed Oct 8, 2024
1 parent 51a81b4 commit 60cf3b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,7 @@ jobs:
if: ${{ matrix.action-operator.cloud == 'lxd' }}
# language=bash
run: |
{
echo "MICROK8S_CONFIG<<EOF"
sudo microk8s.config view
echo EOF
} >> "$GITHUB_ENV"
sudo microk8s.config > $HOME/microk8s-config.yaml
- run: go mod download
- env:
TF_ACC: "1"
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/resource_kubernetes_cloud_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func testAccResourceKubernetesCloud(cloudName string, modelName string, config s
resource "juju_kubernetes_cloud" "tf-test-k8scloud" {
name = "{{.CloudName}}"
kubernetes_config = {{.Config}}
kubernetes_config = file("microk8s-config.yaml")
}
resource "juju_model" {{.ModelName}} {
Expand Down

0 comments on commit 60cf3b8

Please sign in to comment.