File tree 8 files changed +193
-80
lines changed
8 files changed +193
-80
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,21 @@ jobs:
25
25
with :
26
26
username : ${{ secrets.DOCKER_USERNAME }}
27
27
password : ${{ secrets.DOCKER_PASSWORD }}
28
- - name : Docker build & push
28
+ - name : Docker build & push services
29
29
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && success()
30
30
run : |
31
31
cd service && docker build --no-cache -t ${{ secrets.IMAGE_NAME }} .
32
32
docker tag ${{ secrets.IMAGE_NAME }}:latest ${{ secrets.IMAGE_NAME }}:${GITHUB_SHA::6}
33
33
docker push ${{ secrets.IMAGE_NAME }}:latest
34
34
docker push ${{ secrets.IMAGE_NAME }}:${GITHUB_SHA::6}
35
+ cd ../smi-conformance && docker build --no-cache -t smi-conformance:latest .
36
+ docker tag smi-conformance:latest smi-conformance:${GITHUB_SHA::6}
37
+ docker push smi-conformance:latest
38
+ docker push smi-conformance:${GITHUB_SHA::6}
35
39
- name : Docker tag release & push
36
40
if : github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/') && success()
37
41
run : |
38
42
docker tag ${{ secrets.IMAGE_NAME }}:latest ${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}
39
43
docker push ${{ secrets.IMAGE_NAME }}:${GITHUB_REF/refs\/tags\//}
44
+ docker tag smi-conformance:latest smi-conformance:${GITHUB_REF/refs\/tags\//}
45
+ docker push smi-conformance:${GITHUB_REF/refs\/tags\//}
Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ mesh:
97
97
# Tracing configuration.
98
98
#
99
99
tracing :
100
- deploy : true
100
+ deploy : false
101
101
jaeger :
102
102
image :
103
103
name : groundnuty/k8s-wait-for:v1.3
104
- enabled : true
104
+ enabled : false
105
105
localagenthostport : " "
106
106
samplingserverurl : " "
107
107
# datadog:
@@ -142,10 +142,10 @@ tracing:
142
142
# Metrics configuration.
143
143
#
144
144
metrics :
145
- deploy : true
145
+ deploy : false
146
146
prometheus :
147
147
# whether to expose Prometheus metrics
148
- enabled : true
148
+ enabled : false
149
149
# # you can override values of the metrics subchart here.
150
150
# # check charts/metrics/values.yaml for the defaults.
151
151
# # example:
Original file line number Diff line number Diff line change 1
1
FROM golang:1.14-alpine3.11 as build-img
2
2
LABEL maintainer "Layer5.io"
3
3
4
- ENV GO111MODULE=off
5
4
6
5
RUN apk update && apk add --no-cache git libc-dev gcc pkgconf && mkdir /home/meshery
7
6
COPY ${PWD} /go/src/github.com/layer5io/learn-layer5/smi-conformance/
8
7
WORKDIR /go/src/github.com/layer5io/learn-layer5/smi-conformance/
9
8
# RUN git rev-parse HEAD > /home/meshery/version
10
9
# RUN git describe --tags `git rev-list --tags --max-count=1` >> /home/com/version
11
-
12
10
RUN go mod vendor && go build -a -ldflags "-s -w" -o /home/meshery/smi_conformance main.go
13
11
14
12
FROM alpine:latest
15
13
16
- RUN apk --no-cache add ca-certificates
14
+ RUN apk --no-cache add ca-certificates && mkdir /home/test-yamls && mkdir /home/test-yamls/traffic-access && mkdir /home/test-yamls/traffic-spec && mkdir /home/test-yamls/traffic-split
17
15
COPY --from=build-img /home/meshery/** /home/
16
+ COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/traffic-access/** /home/test-yamls/traffic-access/
17
+ COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/test-split/** /home/test-yamls/traffic-split/
18
+ COPY --from=build-img /go/src/github.com/layer5io/learn-layer5/smi-conformance/test-gen/test-yamls/test-spec/** /home/test-yamls/traffic-spec/
18
19
WORKDIR /home/
19
20
EXPOSE 10008
20
21
CMD ["sh" ,"-c" ,"./smi_conformance" ]
Original file line number Diff line number Diff line change @@ -5,18 +5,25 @@ option go_package = "conformance;conformance";
5
5
6
6
message Request {
7
7
map <string , string > annotations = 1 ;
8
- string meshname = 2 ;
8
+ string meshname = 2 ;
9
9
}
10
10
11
11
message SingleTestResult {
12
- string name = 1 ;
13
- string testCasesPassed = 2 ;
14
- string totalCases = 3 ;
15
- string message = 4 ;
12
+ string name = 1 ;
13
+ string time = 2 ;
14
+ string assertions = 3 ;
15
+ Failure failure = 4 ;
16
+ }
17
+
18
+ message Failure {
19
+ string test = 1 ;
20
+ string message = 2 ;
16
21
}
17
22
18
23
message Response {
19
- repeated SingleTestResult singleTestResult = 1 ;
24
+ string tests = 1 ;
25
+ string failures = 2 ;
26
+ repeated SingleTestResult singleTestResult = 3 ;
20
27
}
21
28
22
29
service conformanceTesting {
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ require (
10
10
github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4
11
11
github.com/kudobuilder/kuttl v0.0.0-00010101000000-000000000000
12
12
github.com/kumarabd/gokit v0.2.0
13
+ github.com/sirupsen/logrus v1.6.0
13
14
github.com/stretchr/testify v1.6.1 // indirect
14
15
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
15
16
google.golang.org/genproto v0.0.0-20191009194640-548a555dbc03 // indirect
You can’t perform that action at this time.
0 commit comments