Skip to content

Commit ca59756

Browse files
committed
TEST: ci: extract https tests to separate ci job on github
1 parent 7b1878a commit ca59756

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
@@ -149,11 +149,12 @@ docker-build:
149149
- branches
150150
parallel:
151151
matrix:
152-
- TEST_PART: [ "18#e2e_parallel", "1#e2e_sequential" ]
152+
- TEST_PART: [ "18#e2e_parallel", "18#e2e_https", "1#e2e_sequential" ]
153153
VAR_DUMMY: "YES"
154154
script:
155155
- CI_ENV=gitlab deploy/tests/create.sh
156156
- kubectl get pods -A
157+
- IFS='#' read -r -a array <<< $TEST_PART; echo "running tests with --tags=${array[1]}"
157158
- 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]}
158159
.kind_deployment_schedules:
159160
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)