Skip to content

Commit

Permalink
TEST: Introduce delays in mock fleet server responses
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Jun 21, 2024
1 parent d2146e3 commit 620004a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions testing/integration/proxy_url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "ackToken-AckTokenTestNoProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)

Expand Down Expand Up @@ -137,7 +137,7 @@ func TestProxyURL(t *testing.T) {
require.NoError(t, err, "could not generate action with policy")
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)

Expand Down Expand Up @@ -179,7 +179,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestValidProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)

Expand Down Expand Up @@ -227,7 +227,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestValidProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)
return map[string]*proxytest.Proxy{"proxyFleetPolicy": proxyFleetPolicy}, installArgs{insecure: true, enrollmentURL: mockFleet.fleetServer.LocalhostURL}
Expand Down Expand Up @@ -276,7 +276,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestRemoveProxyFromThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)

Expand Down Expand Up @@ -318,7 +318,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestRemovedProxyFromThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)

Expand Down Expand Up @@ -385,7 +385,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestValidProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)
return map[string]*proxytest.Proxy{"proxyFleetPolicy": proxyFleetPolicy}, installArgs{insecure: true, enrollmentURL: mockFleet.fleetServer.LocalhostURL}
Expand Down Expand Up @@ -486,7 +486,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestValidProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)
return map[string]*proxytest.Proxy{"proxyFleetPolicy": proxyFleetPolicy}, installArgs{insecure: true, enrollmentURL: mockFleet.fleetServer.LocalhostURL}
Expand Down Expand Up @@ -626,7 +626,7 @@ func TestProxyURL(t *testing.T) {
ackToken := "AckToken-TestValidProxyInThePolicy"
mockFleet.checkinWithAcker.AddCheckin(
ackToken,
0,
30*time.Second,
action,
)
return map[string]*proxytest.Proxy{"enroll": proxyEnroll, "proxyFleetPolicy": proxyFleetPolicy},
Expand Down

0 comments on commit 620004a

Please sign in to comment.