Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
30c78c7e
Commit
30c78c7e
authored
Feb 21, 2019
by
Thomas Runyon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feedback from review
parent
6770fa7b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
README.md
test/cmd/README.md
+2
-2
legacy-script.sh
test/cmd/legacy-script.sh
+13
-7
No files found.
test/cmd/README.md
View file @
30c78c7e
# Kubernetes Command-Line Integration Test Suite
# Kubernetes Command-Line Integration Test Suite
This document describes how
Kubernetes should interact with the Kubernetes command-line integration test
suite.
This document describes how
you can use the Kubernetes command-line integration test-
suite.
## Running Tests
## Running Tests
...
@@ -27,7 +27,7 @@ if kube::test::if_supports_resource "${replicasets}" ; then
...
@@ -27,7 +27,7 @@ if kube::test::if_supports_resource "${replicasets}" ; then
fi
fi
```
```
Be sure to validate any supported resouces required for the test by using the
`kue::test::if_supports_resource`
function.
Be sure to validate any supported resouces required for the test by using the
`ku
b
e::test::if_supports_resource`
function.
### New File
### New File
...
...
test/cmd/legacy-script.sh
View file @
30c78c7e
...
@@ -386,12 +386,23 @@ runTests() {
...
@@ -386,12 +386,23 @@ runTests() {
kubectl get
"
${
kube_flags
[@]
}
"
-f
hack/testdata/kubernetes-service.yaml
kubectl get
"
${
kube_flags
[@]
}
"
-f
hack/testdata/kubernetes-service.yaml
fi
fi
cleanup
(){
kube::test::clear_all
if
[[
-n
"
${
foundError
}
"
]]
;
then
echo
"FAILED TESTS: ""
${
foundError
}
"
exit
1
fi
}
if
[[
-n
"
${
WHAT
-
}
"
]]
;
then
if
[[
-n
"
${
WHAT
-
}
"
]]
;
then
for
pkg
in
${
WHAT
}
for
pkg
in
${
WHAT
}
do
do
record_command run_
${
pkg
}
_tests
record_command run_
${
pkg
}
_tests
done
done
else
cleanup
return
fi
#########################
#########################
# Kubectl version #
# Kubectl version #
#########################
#########################
...
@@ -854,11 +865,6 @@ runTests() {
...
@@ -854,11 +865,6 @@ runTests() {
####################
####################
record_command run_wait_tests
record_command run_wait_tests
fi
kube::test::clear_all
if
[[
-n
"
${
foundError
}
"
]]
;
then
cleanup
echo
"FAILED TESTS: ""
${
foundError
}
"
exit
1
fi
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment