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
8327e433
Unverified
Commit
8327e433
authored
Jan 07, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #72645 from liggitt/service-account-test
Wait for propagation of secret deletion
parents
abf42b33
1afce6db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
service_account_test.go
test/integration/serviceaccount/service_account_test.go
+13
-0
No files found.
test/integration/serviceaccount/service_account_test.go
View file @
8327e433
...
...
@@ -319,6 +319,19 @@ func TestServiceAccountTokenAuthentication(t *testing.T) {
if
err
!=
nil
{
t
.
Fatalf
(
"could not delete token: %v"
,
err
)
}
// wait for delete to be observed and reacted to via watch
wait
.
PollImmediate
(
100
*
time
.
Millisecond
,
30
*
time
.
Second
,
func
()
(
bool
,
error
)
{
sa
,
err
:=
c
.
Core
()
.
ServiceAccounts
(
myns
)
.
Get
(
readOnlyServiceAccountName
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
return
false
,
err
}
for
_
,
secretRef
:=
range
sa
.
Secrets
{
if
secretRef
.
Name
==
roTokenName
{
return
false
,
nil
}
}
return
true
,
nil
})
doServiceAccountAPIRequests
(
t
,
roClient
,
myns
,
false
,
false
,
false
)
// Create "rw" user in myns
...
...
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