]> begriffs open source - cmsis-freertos/blob - Test/litani/test/e2e/tests/single_pool.py
Update README.md - branch main is now the base branch
[cmsis-freertos] / Test / litani / test / e2e / tests / single_pool.py
1 # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License").
4 # You may not use this file except in compliance with the License.
5 # A copy of the License is located at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # or in the "license" file accompanying this file. This file is distributed
10 # on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11 # express or implied. See the License for the specific language governing
12 # permissions and limitations under the License.
13
14
15 def get_init_args():
16     return {
17         "kwargs": {
18             "project": "foo",
19             "pools": [ "foo-pool:1" ]
20         }
21     }
22
23
24 def get_jobs():
25     return [{
26         "kwargs": {
27             "command": "true",
28             "ci-stage": "build",
29             "pipeline": "foo"
30         }
31     }]
32
33
34 def get_run_build_args():
35     return {}
36
37
38 def check_run(run):
39     return run.get("pools") == { "foo-pool": 1 }