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
Merge requests
!138
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Develop
develop
into
master
Overview
0
Commits
196
Pipelines
446
Changes
1
Closed
Ghost User
requested to merge
develop
into
master
4 years ago
Overview
0
Commits
196
Pipelines
446
Changes
1
Expand
0
0
Merge request reports
Viewing commit
18f46026
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
18f46026
remove controller test from coverage
· 18f46026
Manuel Kieweg
authored
4 years ago
build/ci/.test.yml deleted
100644 → 0
+
0
−
48
Options
integration-test
:
image
:
golang:1.16
stage
:
integration-test
needs
:
-
job
:
"
apply"
-
job
:
"
deploy:integration-test"
variables
:
GOSDN_LOG
:
"
nolog"
GOSDN_TEST_API_ENDPOINT
:
http://gosdn-$CI_COMMIT_SHA.apps.ocp.fbi.h-da.de/api
rules
:
-
if
:
$CI_NIGHTLY
when
:
delayed
start_in
:
2 minutes
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
when
:
delayed
start_in
:
2 minutes
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
allow_failure
:
true
when
:
delayed
start_in
:
2 minutes
script
:
-
go test -race ./test/integration -v -coverprofile=coverage.out
.test
:
&test
image
:
golang:1.16
stage
:
test
allow_failure
:
true
variables
:
GOSDN_LOG
:
"
nolog"
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
-
if
:
$CI_NIGHTLY
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
allow_failure
:
true
after_script
:
-
go tool cover -func=coverage.out
unit-test
:
script
:
-
go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
<<
:
*test
http-api-test
:
script
:
-
cd ./nucleus
-
go test -race -v -run Test_httpApi -coverprofile=coverage.out
<<
:
*test
\ No newline at end of file
Loading