Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

test: crash docker and validate against common node count #1946

Merged

Conversation

jackfrancis
Copy link
Member

Reason for Change:

We are running docker crash simulations against a list of nodes whose length we determine at the time the test runs. We also need to do all validations against that common list.

Issue Fixed:

Requirements:

Notes:

@@ -940,7 +940,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu

var expectedReadyNodes int
if !eng.ExpandedDefinition.Properties.HasLowPriorityScaleset() {
expectedReadyNodes = eng.NodeCount()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By setting this expected count against the value in the api model, we don't take into account that the list we enumerate through in line 918 above may not have the exact same numbers due to environmental behaviors. Because we are specifically testing docker crash simulation in this test, we want to make sure the node count before and after operate against a common number of nodes.

@acs-bot
Copy link

acs-bot commented Sep 13, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov
Copy link

codecov bot commented Sep 13, 2019

Codecov Report

Merging #1946 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1946   +/-   ##
=======================================
  Coverage   76.67%   76.67%           
=======================================
  Files         135      135           
  Lines       20536    20536           
=======================================
  Hits        15745    15745           
  Misses       3873     3873           
  Partials      918      918

@jackfrancis jackfrancis merged commit 1fac474 into Azure:master Sep 13, 2019
@jackfrancis jackfrancis deleted the e2e-windows-docker-crash-nodelist branch September 13, 2019 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants