Skip to content
Snippets Groups Projects
Commit a9c617db authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

change test endpoints

parent 7e0894ef
Branches
No related tags found
1 merge request!159Resolve "Integration Tests Fail"
Pipeline #73467 passed with warnings
...@@ -370,8 +370,9 @@ func createIngress(env string) *netv1.Ingress { ...@@ -370,8 +370,9 @@ func createIngress(env string) *netv1.Ingress {
APIVersion: "v1", APIVersion: "v1",
}, },
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Name: env, Name: env,
Namespace: "cocsn", Namespace: "cocsn",
Annotations: map[string]string{"nginx.ingress.kubernetes.io/grpc-backend": "true"},
}, },
Spec: netv1.IngressSpec{ Spec: netv1.IngressSpec{
Rules: []netv1.IngressRule{ Rules: []netv1.IngressRule{
...@@ -381,10 +382,9 @@ func createIngress(env string) *netv1.Ingress { ...@@ -381,10 +382,9 @@ func createIngress(env string) *netv1.Ingress {
HTTP: &netv1.HTTPIngressRuleValue{ HTTP: &netv1.HTTPIngressRuleValue{
Paths: []netv1.HTTPIngressPath{ Paths: []netv1.HTTPIngressPath{
{ {
Path: "/api",
Backend: netv1.IngressBackend{ Backend: netv1.IngressBackend{
ServiceName: env, ServiceName: env,
ServicePort: intstr.IntOrString{IntVal: 8080}, ServicePort: intstr.IntOrString{IntVal: 55055},
}, },
}, },
}, },
......
...@@ -6,7 +6,7 @@ integration-test: ...@@ -6,7 +6,7 @@ integration-test:
- job: "deploy:integration-test" - job: "deploy:integration-test"
variables: variables:
GOSDN_LOG: "nolog" GOSDN_LOG: "nolog"
GOSDN_TEST_API_ENDPOINT: http://gosdn-$CI_COMMIT_SHA.apps.ocp.fbi.h-da.de/api GOSDN_TEST_API_ENDPOINT: http://gosdn-$CI_COMMIT_SHA.apps.ocp.fbi.h-da.de
rules: rules:
- if: $CI_NIGHTLY - if: $CI_NIGHTLY
when: delayed when: delayed
......
...@@ -19,7 +19,7 @@ const unreachable = "203.0.113.10:6030" ...@@ -19,7 +19,7 @@ const unreachable = "203.0.113.10:6030"
const testPath = "/system/config/hostname" const testPath = "/system/config/hostname"
var testAddress = "141.100.70.171:6030" var testAddress = "141.100.70.171:6030"
var testAPIEndpoint = "http://gosdn-latest.apps.ocp.fbi.h-da.de/api" var testAPIEndpoint = "http://gosdn-latest.apps.ocp.fbi.h-da.de"
var testUsername = "admin" var testUsername = "admin"
var testPassword = "arista" var testPassword = "arista"
var opt *tpb.TransportOption var opt *tpb.TransportOption
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment