Skip to content

Conversation

@justinc1
Copy link
Collaborator

@justinc1 justinc1 commented Apr 4, 2023

I just want more integration tests to pass. Main problems are that sometimes test cluster does not support the needed feature (say virtual disks). The integration_config.yml is extended to allow detecting what cluster does offer.

The PR does fix some of tests, but not all. I guess it should be viewed commit-by-commit. The main part is spliting larger files into smaller, to make them usable on different clusters.

virtual_disk/virtual_disk_info - on version 9.1 run tests, but expect error, and check error message is as expected.

cluster_name - on version 9.1 run test, but expect error, and check error message is as expected. We can however check if name returned by cluster_info is as expected ("HC3 System").

version_update_info - on version 9.1.14 we know 9.1.23 will be offered, test that. On version 9.2 - we know no updates will be offered, test that.

vm_replication_info/vm_replication - on cluster with no replication, we can only check that VM replication is correctly reported as not being replicated. We need to run test on .50 test cluster to actually test replication.

This is an older CI job where those tests were failing: https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4565210170/jobs/8056036571

A new job: https://github.com/ScaleComputing/HyperCoreAnsibleCollection/actions/runs/4605693676. After one retry (due to connection refused error), most jobs should pass.

justinc1 added 7 commits April 4, 2023 07:38
Warning was like
tests/integration/integration_config.yml, line 79, column 5, found a
duplicate dict key (smtp). Using last defined value only.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
This depends on HyperCore version. We need to know if
cluster name can be changed, version can be upgraded, and if
virtual disk feature is supported.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Also test replication factor is exactly as expected.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
CI_CONFIG_HC_IP50_SC_USERNAME was not set in github.
ci_config_all was not used anymore.

Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 changed the title Fixes for integreation test on virtual nodes Fixes for integration test on virtual nodes Apr 4, 2023
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
Signed-off-by: Justin Cinkelj <justin.cinkelj@xlab.si>
@justinc1 justinc1 merged commit e73cf44 into main Apr 5, 2023
@justinc1 justinc1 deleted the ci-cluster-name branch April 5, 2023 19:57
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.

2 participants