Skip to content

Conversation

@informalict
Copy link
Contributor

@informalict informalict commented Nov 22, 2019

Unit tests:
I wrote 50 unit tests with different scenarios for EnsurePods and ensureImages and those tests pass on my branch and on the temporary branch testing/after-cleaning (I created from master that only for testing because I had to export a few functions and create short helpful functions, we can assume that branch is the same like master. Compare testing branch with master: https://github.com/arangodb/kube-arangodb/compare/testing/after-cleaning)

Integration tests:
Full integration tests passed with image arangodb/enterprise-preview:3.5.3

@informalict informalict changed the title Move sources into proper places Cleaning the code Nov 22, 2019
Function CreateArangodPod has been cleaned

Clean up CreateArangoSyncPod function

Create interface for new containers

Improvements

Seperate logic into apart files

Fix Nil pointer exception

First unit test

Add first unit test for EnsurePods function

verify TLS in unit tests

Add 9 unit tests for EnsurePods function

Cleaning code

Adjust unit test to master branch

Unit test for arangosync pod

Fix unit tests for sync master according to branch master

Move creating volumes and volume mounts into one place

Add unit test for sync worker

Add unit tests for ensureImage function

Add unit tests for update image

add imagepullsecret and secretpullpolicy to interface

Add image and env to interface

Cleaning

Add new unit tests

Check deployment

cleaning the code
Copy link
Contributor

@maierlars maierlars left a comment

Choose a reason for hiding this comment

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

LGTM

@informalict informalict requested a review from ajanikow November 25, 2019 06:28
@ajanikow ajanikow merged commit be9ca18 into master Nov 25, 2019
@ajanikow ajanikow deleted the refactor/cleaning-code branch November 25, 2019 06:38
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.

4 participants