Skip to content

Commit 28a55f2

Browse files
committed
revery workflow after fixing tests is compleated
1 parent e4bdc03 commit 28a55f2

File tree

4 files changed

+87
-86
lines changed

4 files changed

+87
-86
lines changed

.github/workflows/terratest.yml

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Intgeration tests
22

33
on:
4-
# schedule:
5-
# - cron: "0 0 * * *"
4+
schedule:
5+
- cron: "0 0 * * *"
66
workflow_dispatch:
77
push:
8-
# tags:
9-
# - "v*"
8+
tags:
9+
- "v*"
1010

1111
jobs:
1212
go-tests:
@@ -50,89 +50,89 @@ jobs:
5050
mkdir -p ~/.terraform.d/plugins/threefoldtechdev.com/providers/grid/0.2/linux_amd64/
5151
go build -o terraform-provider-grid
5252
mv terraform-provider-grid ~/.terraform.d/plugins/threefoldtechdev.com/providers/grid/0.2/linux_amd64/
53-
# - name: Test virtual machines
54-
# env:
55-
# MNEMONICS: ${{ secrets.MNEMONICS }}
56-
# NETWORK: ${{ matrix.network }}
57-
# working-directory: integrationtests
58-
# run: go test -v ./... --tags=integration -run TestVM
59-
#
53+
- name: Test virtual machines
54+
env:
55+
MNEMONICS: ${{ secrets.MNEMONICS }}
56+
NETWORK: ${{ matrix.network }}
57+
working-directory: integrationtests
58+
run: go test -v ./... --tags=integration -run TestVM
59+
6060
- name: Test kubernetes
6161
env:
6262
MNEMONICS: ${{ secrets.MNEMONICS }}
6363
NETWORK: ${{ matrix.network }}
6464
working-directory: integrationtests
6565
run: |
66-
# go test -v ./... --tags=integration -run TestK8s
66+
go test -v ./... --tags=integration -run TestK8s
6767
go test -v ./... --tags=integration -run TestModuleK8s
6868
69-
# - name: Test Gateways
70-
# env:
71-
# MNEMONICS: ${{ secrets.MNEMONICS }}
72-
# NETWORK: ${{ matrix.network }}
73-
# working-directory: integrationtests
74-
# run: go test -v ./... --tags=integration -run TestGatewayDeployments
75-
#
76-
# - name: Test private gateways
77-
# env:
78-
# MNEMONICS: ${{ secrets.MNEMONICS }}
79-
# NETWORK: ${{ matrix.network }}
80-
# working-directory: integrationtests
81-
# run: go test -v ./... --tags=integration -run TestGatewayPrivate
82-
#
83-
# - name: Test wireguard
84-
# env:
85-
# MNEMONICS: ${{ secrets.MNEMONICS }}
86-
# NETWORK: ${{ matrix.network }}
87-
# working-directory: integrationtests
88-
# run: go test -v ./... --tags=integration -run TestWireguard
89-
#
90-
# - name: Test ZDBs
91-
# env:
92-
# MNEMONICS: ${{ secrets.MNEMONICS }}
93-
# NETWORK: ${{ matrix.network }}
94-
# working-directory: integrationtests
95-
# run: go test -v ./... --tags=integration -run TestZdbs
96-
#
97-
# - name: Test QSFS
98-
# env:
99-
# MNEMONICS: ${{ secrets.MNEMONICS }}
100-
# NETWORK: ${{ matrix.network }}
101-
# working-directory: integrationtests
102-
# run: go test -v ./... --tags=integration -run TestQSFS
103-
#
104-
# - name: Test peertube
105-
# env:
106-
# MNEMONICS: ${{ secrets.MNEMONICS }}
107-
# NETWORK: ${{ matrix.network }}
108-
# working-directory: integrationtests
109-
# run: go test -v ./... --tags=integration -run TestPeertube
110-
#
111-
# - name: Test presearch
112-
# env:
113-
# MNEMONICS: ${{ secrets.MNEMONICS }}
114-
# NETWORK: ${{ matrix.network }}
115-
# working-directory: integrationtests
116-
# run: go test -v ./... --tags=integration -run TestPresearch
117-
#
118-
# - name: Test taiga
119-
# env:
120-
# MNEMONICS: ${{ secrets.MNEMONICS }}
121-
# NETWORK: ${{ matrix.network }}
122-
# working-directory: integrationtests
123-
# run: go test -v ./... --tags=integration -run TestTaiga
124-
#
125-
# - name: Test mattermost
126-
# env:
127-
# MNEMONICS: ${{ secrets.MNEMONICS }}
128-
# NETWORK: ${{ matrix.network }}
129-
# working-directory: integrationtests
130-
# run: go test -v ./... --tags=integration -run TestMattermost
131-
#
132-
# - name: Test nomad
133-
# env:
134-
# MNEMONICS: ${{ secrets.MNEMONICS }}
135-
# NETWORK: ${{ matrix.network }}
136-
# working-directory: integrationtests
137-
# run: go test -v ./... --tags=integration -run TestNomad
138-
#
69+
- name: Test Gateways
70+
env:
71+
MNEMONICS: ${{ secrets.MNEMONICS }}
72+
NETWORK: ${{ matrix.network }}
73+
working-directory: integrationtests
74+
run: go test -v ./... --tags=integration -run TestGatewayDeployments
75+
76+
- name: Test private gateways
77+
env:
78+
MNEMONICS: ${{ secrets.MNEMONICS }}
79+
NETWORK: ${{ matrix.network }}
80+
working-directory: integrationtests
81+
run: go test -v ./... --tags=integration -run TestGatewayPrivate
82+
83+
- name: Test wireguard
84+
env:
85+
MNEMONICS: ${{ secrets.MNEMONICS }}
86+
NETWORK: ${{ matrix.network }}
87+
working-directory: integrationtests
88+
run: go test -v ./... --tags=integration -run TestWireguard
89+
90+
- name: Test ZDBs
91+
env:
92+
MNEMONICS: ${{ secrets.MNEMONICS }}
93+
NETWORK: ${{ matrix.network }}
94+
working-directory: integrationtests
95+
run: go test -v ./... --tags=integration -run TestZdbs
96+
97+
- name: Test QSFS
98+
env:
99+
MNEMONICS: ${{ secrets.MNEMONICS }}
100+
NETWORK: ${{ matrix.network }}
101+
working-directory: integrationtests
102+
run: go test -v ./... --tags=integration -run TestQSFS
103+
104+
- name: Test peertube
105+
env:
106+
MNEMONICS: ${{ secrets.MNEMONICS }}
107+
NETWORK: ${{ matrix.network }}
108+
working-directory: integrationtests
109+
run: go test -v ./... --tags=integration -run TestPeertube
110+
111+
- name: Test presearch
112+
env:
113+
MNEMONICS: ${{ secrets.MNEMONICS }}
114+
NETWORK: ${{ matrix.network }}
115+
working-directory: integrationtests
116+
run: go test -v ./... --tags=integration -run TestPresearch
117+
118+
- name: Test taiga
119+
env:
120+
MNEMONICS: ${{ secrets.MNEMONICS }}
121+
NETWORK: ${{ matrix.network }}
122+
working-directory: integrationtests
123+
run: go test -v ./... --tags=integration -run TestTaiga
124+
125+
- name: Test mattermost
126+
env:
127+
MNEMONICS: ${{ secrets.MNEMONICS }}
128+
NETWORK: ${{ matrix.network }}
129+
working-directory: integrationtests
130+
run: go test -v ./... --tags=integration -run TestMattermost
131+
132+
- name: Test nomad
133+
env:
134+
MNEMONICS: ${{ secrets.MNEMONICS }}
135+
NETWORK: ${{ matrix.network }}
136+
working-directory: integrationtests
137+
run: go test -v ./... --tags=integration -run TestNomad
138+

integrationtests/k8s_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package integrationtests
22

33
import (
4-
"fmt"
54
"strings"
65
"testing"
76
"time"
@@ -25,7 +24,6 @@ func RequireNodesAreReady(t *testing.T, terraformOptions *terraform.Options, pri
2524
require.NoError(t, err)
2625

2726
numberOfReadyNodes := strings.Count(output, "Ready")
28-
fmt.Println(output)
2927
require.True(t, numberOfReadyNodes == nodesNumber, "number of ready nodes is not equal to number of nodes only %d nodes are ready", numberOfReadyNodes)
3028
}
3129

integrationtests/k8s_using_module/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "kubernetes" {
2-
source = "../../modules/k8s-module"
2+
source = "github.com/threefoldtech/terraform-provider-grid/modules/k8s-module"
33
token = local.token
44
network = local.network
55
master = var.master

integrationtests/remoterun.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build integration
2+
// +build integration
3+
14
// Package integrationtests includes integration tests for deploying solutions on the tf grid, and some utilities to test these solutions.
25
package integrationtests
36

@@ -22,7 +25,7 @@ func setup() (deployer.TFPluginClient, error) {
2225
network = "dev"
2326
}
2427

25-
return deployer.NewTFPluginClient(mnemonics, deployer.WithNetwork(network), deployer.WithLogs(), deployer.WithRMBTimeout(60))
28+
return deployer.NewTFPluginClient(mnemonics, deployer.WithNetwork(network), deployer.WithLogs())
2629
}
2730

2831
// RemoteRun used for running cmd remotely using ssh

0 commit comments

Comments
 (0)