Skip to content

Add proper integration test suite#1009

Merged
smarterclayton merged 3 commits intokubernetes:masterfrom
smarterclayton:add_integration_tests
Aug 25, 2014
Merged

Add proper integration test suite#1009
smarterclayton merged 3 commits intokubernetes:masterfrom
smarterclayton:add_integration_tests

Conversation

@smarterclayton
Copy link
Copy Markdown
Contributor

Only tests etcd, but sets framework for other types of tests. Runs as part of hack/test-integration.sh during Travis. Use the !no-docker tag for test suites that include Docker specific behavior.

Fixes #510

@smarterclayton
Copy link
Copy Markdown
Contributor Author

@brendandburns @lavalamp review please - in this model all integration tests would go into subdirectories of kubernetes/integration so that we can run them without running all the normal tests. Since these tests in theory can span multiple packages I feel that's a better structure - open to opinions.

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 23, 2014

LGTM

./integration or ./test/integration ? e.g. when we have more classes of tests that are bigger than units, where will they live?

@smarterclayton
Copy link
Copy Markdown
Contributor Author

Test makes sense, will move it under there.

@smarterclayton
Copy link
Copy Markdown
Contributor Author

Fixed

@thockin
Copy link
Copy Markdown
Member

thockin commented Aug 23, 2014

LGTM stands. Who is number 2?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we call SetObj(key, "object") again to cover the CompareAndSwap case in SetObj method?

It seems there are a lot more such cases, but most of them is covered in unittest. Can we assume they work as expected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Probably we want to test main scenarios, of which CAS is a big one. Once this lands I think we'll start asking folks to make sure they have integration test coverage for their high value paths.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK, sg.

@lavalamp
Copy link
Copy Markdown
Contributor

LGTM as long as this still runs our current integration test, does it?

@smarterclayton
Copy link
Copy Markdown
Contributor Author

Yup.

smarterclayton added a commit that referenced this pull request Aug 25, 2014
@smarterclayton smarterclayton merged commit 0a06de6 into kubernetes:master Aug 25, 2014
@smarterclayton smarterclayton deleted the add_integration_tests branch February 11, 2015 02:21
vishh pushed a commit to vishh/kubernetes that referenced this pull request Apr 6, 2016
add unit test for 'validate' package
josefkarasek pushed a commit to josefkarasek/kubernetes that referenced this pull request Oct 27, 2021
…ated_pods_openshift_4.9

[release-4.9] Bug 2011815: UPSTREAM: 105527: kubelet: do not arbitrarily create a podSyncStatus for finished pods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve integration test setup

4 participants