Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
550b2035
Commit
550b2035
authored
3 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "Job Failed #276418"
parent
76034e44
No related branches found
No related tags found
9 merge requests
!246
Develop
,
!245
Develop into Master
,
!244
Master into develop2 into master
,
!219
Draft: Testing
,
!214
Test pipelines
,
!195
DO NOT MERGE 2
,
!194
DO NOT MERGE! just for testing
,
!164
Resolve "Job Failed #276418"
,
!138
Develop
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
api/apiIntegration_test.go
+1
-17
1 addition, 17 deletions
api/apiIntegration_test.go
build/cd/deploy.go
+0
-3
0 additions, 3 deletions
build/cd/deploy.go
build/ci/.test.yml
+3
-10
3 additions, 10 deletions
build/ci/.test.yml
with
4 additions
and
30 deletions
api/apiIntegration_test.go
+
1
−
17
View file @
550b2035
package
api
package
api
import
(
import
(
"fmt"
"os"
"os"
"testing"
"testing"
...
@@ -17,8 +16,6 @@ import (
...
@@ -17,8 +16,6 @@ import (
const
unreachable
=
"203.0.113.10:6030"
const
unreachable
=
"203.0.113.10:6030"
const
testPath
=
"/system/config/hostname"
const
testPath
=
"/system/config/hostname"
var
testIP
=
"141.100.70.171"
var
testPort
=
"6030"
var
testAddress
=
testIP
+
":"
+
testPort
var
testAddress
=
testIP
+
":"
+
testPort
var
testAPIEndpoint
=
"gosdn-latest.apps.ocp.fbi.h-da.de"
var
testAPIEndpoint
=
"gosdn-latest.apps.ocp.fbi.h-da.de"
var
testUsername
=
"admin"
var
testUsername
=
"admin"
...
@@ -41,20 +38,7 @@ func testSetupIntegration() {
...
@@ -41,20 +38,7 @@ func testSetupIntegration() {
log
.
SetLevel
(
log
.
PanicLevel
)
log
.
SetLevel
(
log
.
PanicLevel
)
}
}
a
:=
os
.
Getenv
(
"GOSDN_TEST_ENDPOINT_IP"
)
api
:=
viper
.
GetString
(
"GOSDN_TEST_API_ENDPOINT"
)
if
a
!=
""
{
testIP
=
a
log
.
Infof
(
"GOSDN_TEST_ENDPOINT_IP set to %v"
,
testIP
)
}
port
:=
os
.
Getenv
(
"GOSDN_TEST_ENDPOINT_PORT"
)
if
port
!=
""
{
testPort
=
port
log
.
Infof
(
"GOSDN_TEST_ENDPOINT_PORT set to %v"
,
testPort
)
}
testAddress
=
testIP
+
":"
+
testPort
fmt
.
Printf
(
"Testadress: %s, Testport: %s, Port: %s"
,
testAddress
,
testPort
,
port
)
api
:=
os
.
Getenv
(
"GOSDN_TEST_API_ENDPOINT"
)
if
api
!=
""
{
if
api
!=
""
{
testAPIEndpoint
=
api
testAPIEndpoint
=
api
log
.
Infof
(
"GOSDN_TEST_API_ENDPOINT set to %v"
,
testAPIEndpoint
)
log
.
Infof
(
"GOSDN_TEST_API_ENDPOINT set to %v"
,
testAPIEndpoint
)
...
...
This diff is collapsed.
Click to expand it.
build/cd/deploy.go
+
0
−
3
View file @
550b2035
...
@@ -244,9 +244,6 @@ func createService(environment string) *corev1.Service {
...
@@ -244,9 +244,6 @@ func createService(environment string) *corev1.Service {
Name
:
environment
,
Name
:
environment
,
Namespace
:
"cocsn"
,
Namespace
:
"cocsn"
,
Labels
:
map
[
string
]
string
{
"run"
:
environment
},
Labels
:
map
[
string
]
string
{
"run"
:
environment
},
Annotations
:
map
[
string
]
string
{
"metallb.universe.tf/address-pool"
:
"hdanet"
,
},
OwnerReferences
:
[]
metav1
.
OwnerReference
{
OwnerReferences
:
[]
metav1
.
OwnerReference
{
{
{
APIVersion
:
"v1"
,
APIVersion
:
"v1"
,
...
...
This diff is collapsed.
Click to expand it.
build/ci/.test.yml
+
3
−
10
View file @
550b2035
...
@@ -25,13 +25,15 @@
...
@@ -25,13 +25,15 @@
integration-test:nucleus
:
integration-test:nucleus
:
<<
:
*integration-test
<<
:
*integration-test
script
:
script
:
-
./build/ci/generate_port.sh $CI_PIPELINE_ID >> port
-
export GOSDN_TEST_ENDPOINT_PORT=$(cat port)
-
cd ./test/integration
-
cd ./test/integration
-
go test -race -v -run TestGnmi_SetIntegration
-
go test -race -v -run TestGnmi_SetIntegration
-
go test -race -v -run TestGnmi_GetIntegration
-
go test -race -v -run TestGnmi_GetIntegration
-
go test -race -v -run TestGnmi_SubscribeIntegration
-
go test -race -v -run TestGnmi_SubscribeIntegration
-
go test -race -v -run TestGnmi_CapabilitiesIntegration
-
go test -race -v -run TestGnmi_CapabilitiesIntegration
integration-test:
cmd
:
integration-test:
api
:
<<
:
*integration-test
<<
:
*integration-test
variables
:
variables
:
K8S_OP
:
"
getenv"
K8S_OP
:
"
getenv"
...
@@ -42,15 +44,6 @@ integration-test:cmd:
...
@@ -42,15 +44,6 @@ integration-test:cmd:
-
job
:
"
build:k8s-bot"
-
job
:
"
build:k8s-bot"
artifacts
:
true
artifacts
:
true
script
:
script
:
-
cd ./test/integration
-
./../../build/cd/k8s-bot
-
go test -race -v -run TestCmdIntegration
integration-test:cli
:
<<
:
*integration-test
script
:
-
./build/ci/generate_port.sh $CI_PIPELINE_ID >> port
-
export GOSDN_TEST_ENDPOINT_PORT=$(cat port)
-
cd ./api
-
cd ./api
-
go test -race -v -run TestApiIntegration
-
go test -race -v -run TestApiIntegration
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment