Skip to content

Commit 8bddf5e

Browse files
committed
TEST: ci: extract https tests to separate ci job on github
1 parent 2dac94e commit 8bddf5e

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ docker-build:
150150
- branches
151151
parallel:
152152
matrix:
153-
- TEST_PART: [ "18#e2e_parallel", "1#e2e_sequential" ]
153+
- TEST_PART: [ "18#e2e_parallel", "18#e2e_https", "1#e2e_sequential" ]
154154
VAR_DUMMY: "YES"
155155
script:
156156
- CI_ENV=gitlab deploy/tests/create.sh
157157
- kubectl get pods -A
158+
- IFS='#' read -r -a array <<< $TEST_PART; echo "running tests with --tags=${array[1]}"
158159
- IFS='#' read -r -a array <<< $TEST_PART; KIND_URL=docker CGO_ENABLED=0 go test -v -p ${array[0]} ./deploy/tests/e2e/... --tags=${array[1]}
159160
.kind_deployment_schedules:
160161
only:

deploy/tests/e2e/https/offload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build e2e_parallel
15+
//go:build e2e_https
1616

1717
package https
1818

deploy/tests/e2e/https/passthrough.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build e2e_parallel
15+
//go:build e2e_https
1616

1717
package https
1818

@@ -76,6 +76,6 @@ func (suite *HTTPSSuite) Test_HTTPS_Passthrough() {
7676
}
7777
// should not be blocked by whitelist rule since sni does not match
7878
return res != nil
79-
}, e2e.WaitDuration, e2e.TickDuration)
79+
}, e2e.WaitDuration, e2e.TickDuration, "reason is :: ")
8080
})
8181
}

deploy/tests/e2e/https/redirect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build e2e_parallel
15+
//go:build e2e_https
1616

1717
package https
1818

deploy/tests/e2e/https/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
//go:build e2e_parallel
15+
//go:build e2e_https
1616

1717
package https
1818

0 commit comments

Comments
 (0)