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
014622db
Commit
014622db
authored
May 19, 2016
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
address comments.
parent
7e432051
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
third-party.go
test/e2e/third-party.go
+4
-4
No files found.
test/e2e/third-party.go
View file @
014622db
...
...
@@ -110,7 +110,7 @@ var _ = Describe("ThirdParty resources", func() {
}
list
:=
FooList
{}
if
err
:=
json
.
Unmarshal
(
data
,
&
list
);
err
!=
nil
{
framework
.
Failf
(
"failed to decode: %v"
,
err
)
framework
.
Failf
(
"failed to decode: %
#
v"
,
err
)
}
if
len
(
list
.
Items
)
!=
0
{
framework
.
Failf
(
"unexpected object before create: %v"
,
list
)
...
...
@@ -139,7 +139,7 @@ var _ = Describe("ThirdParty resources", func() {
}
out
:=
Foo
{}
if
err
:=
json
.
Unmarshal
(
data
,
&
out
);
err
!=
nil
{
framework
.
Failf
(
"failed to decode: %v"
,
err
)
framework
.
Failf
(
"failed to decode: %
#
v"
,
err
)
}
if
out
.
Name
!=
foo
.
Name
||
out
.
SomeField
!=
foo
.
SomeField
||
out
.
OtherField
!=
foo
.
OtherField
{
framework
.
Failf
(
"expected:
\n
%#v
\n
saw:
\n
%#v
\n
%s
\n
"
,
foo
,
&
out
,
string
(
data
))
...
...
@@ -150,7 +150,7 @@ var _ = Describe("ThirdParty resources", func() {
framework
.
Failf
(
"failed to list with no objects: %v"
,
err
)
}
if
err
:=
json
.
Unmarshal
(
data
,
&
list
);
err
!=
nil
{
framework
.
Failf
(
"failed to decode: %v"
,
err
)
framework
.
Failf
(
"failed to decode: %
#
v"
,
err
)
}
if
len
(
list
.
Items
)
!=
1
{
framework
.
Failf
(
"unexpected object too few or too many: %v"
,
list
)
...
...
@@ -168,7 +168,7 @@ var _ = Describe("ThirdParty resources", func() {
framework
.
Failf
(
"failed to list with no objects: %v"
,
err
)
}
if
err
:=
json
.
Unmarshal
(
data
,
&
list
);
err
!=
nil
{
framework
.
Failf
(
"failed to decode: %v"
,
err
)
framework
.
Failf
(
"failed to decode: %
#
v"
,
err
)
}
if
len
(
list
.
Items
)
!=
0
{
framework
.
Failf
(
"unexpected object after delete: %v"
,
list
)
...
...
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