Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Add acceptance test for meta policy engine and scaling actions. #60

Merged
merged 1 commit into from
Oct 1, 2019

Conversation

jrasell
Copy link
Owner

@jrasell jrasell commented Oct 1, 2019

The acceptance testing has been expanded to cover scaling actions
as well as the Nomad meta policy backend. The Nomad meta engine
requires Sherpa to run in a different mode than the rest of the
tests, therefore the make targets have been split to make this
clear until the whole process is automated.

The scale tests are particulary basic, but are a start for further
work in the future.

These tests have already uncovered #59.

A condensed test report for the two targets:

=== RUN   TestPolicy_list
--- PASS: TestPolicy_list (0.14s)
=== RUN   TestPolicy_readJob
--- PASS: TestPolicy_readJob (0.14s)
=== RUN   TestPolicy_readJobGroup
--- PASS: TestPolicy_readJobGroup (0.14s)
=== RUN   TestPolicy_write
--- PASS: TestPolicy_write (0.14s)
=== RUN   TestPolicy_deleteJobPolicy
--- PASS: TestPolicy_deleteJobPolicy (0.14s)
=== RUN   TestPolicy_deleteJobGroupPolicy
--- PASS: TestPolicy_deleteJobGroupPolicy (0.15s)
=== RUN   TestScaleIn_singleTaskGroupCountSet
--- PASS: TestScaleIn_singleTaskGroupCountSet (0.66s)
=== RUN   TestScaleIn_singleTaskGroupCountSetTooLow
--- PASS: TestScaleIn_singleTaskGroupCountSetTooLow (0.64s)
=== RUN   TestScaleOut_singleTaskGroupCountSet
--- PASS: TestScaleOut_singleTaskGroupCountSet (0.65s)
=== RUN   TestScaleOut_singleTaskGroupCountSetTooHigh
--- PASS: TestScaleOut_singleTaskGroupCountSetTooHigh (0.66s)
=== RUN   TestMetaPolicy_singleTaskGroupFullMetaRemoveAllMeta
--- PASS: TestMetaPolicy_singleTaskGroupFullMetaRemoveAllMeta (1.16s)
=== RUN   TestMetaPolicy_singleTaskGroupFullMetaStopJob
--- PASS: TestMetaPolicy_singleTaskGroupFullMetaStopJob (1.14s)
=== RUN   TestMetaPolicy_multiTaskGroupFullMetaRemoveAllMeta
--- PASS: TestMetaPolicy_multiTaskGroupFullMetaRemoveAllMeta (1.15s)
=== RUN   TestMetaPolicy_multiTaskGroupFullMetaStopJob
--- PASS: TestMetaPolicy_multiTaskGroupFullMetaStopJob (1.14s)
=== RUN   TestMetaPolicy_multiTaskGroupPartialMetaRemoveAllMeta
--- PASS: TestMetaPolicy_multiTaskGroupPartialMetaRemoveAllMeta (1.16s)
=== RUN   TestMetaPolicy_multiTaskGroupPartialMetaStopJob
--- PASS: TestMetaPolicy_multiTaskGroupPartialMetaStopJob (1.16s)
=== RUN   TestMetaPolicy_multiTaskGroupPartialMetaAddAllMeta
--- PASS: TestMetaPolicy_multiTaskGroupPartialMetaAddAllMeta (1.14s)

The acceptance testing has been expanded to cover scaling actions
as well as the Nomad meta policy backend. The Nomad meta engine
requires Sherpa to run in a different mode than the rest of the
tests, therefore the make targets have been split to make this
clear until the whole process is automated.

The scale tests are particulary basic, but are a start for further
work in the future.

These tests have already uncovered #59.
@jrasell jrasell added kind/enhancement Issues relating to enhancements area/testing Issues related to testing labels Oct 1, 2019
@jrasell jrasell self-assigned this Oct 1, 2019
@jrasell jrasell merged commit ac16b93 into master Oct 1, 2019
@jrasell jrasell deleted the add-scale-and-meta-policy-acctests branch October 1, 2019 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing Issues related to testing kind/enhancement Issues relating to enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant