Skip to content

Commit b02be3f

Browse files
authored
Merge pull request #9 from cloudify-incubator/0.1.2-build
bump version
2 parents ede44f4 + 0637e3c commit b02be3f

File tree

6 files changed

+85
-111
lines changed

6 files changed

+85
-111
lines changed

.circleci/config.yml

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,37 @@ executors:
2727
image: ubuntu-2004:202201-02
2828

2929
commands:
30+
31+
setup_manager:
32+
steps:
33+
- run: |
34+
if [[ -z "${CLOUDIFY_HOST}" ]]; then
35+
exit 1
36+
fi
37+
- run: |
38+
if [[ -z "${CLOUDIFY_TENANT}" ]]; then
39+
exit 1
40+
fi
41+
- run: |
42+
if [[ -z "${CLOUDIFY_TOKEN}" ]]; then
43+
exit 1
44+
fi
45+
- run: |
46+
response=$(curl --write-out '%{http_code}' --silent --insecure --header "Tenant: ${CLOUDIFY_TENANT}" --header "Authentication-Token: ${CLOUDIFY_TOKEN}" https://$CLOUDIFY_HOST/api/v3.1/status --output /dev/null)
47+
if [[ $response != 200 ]]; then
48+
echo "Failed to get manager status";
49+
exit 1
50+
fi
51+
- run: pip3 install https://github.com/cloudify-incubator/cloudify-ecosystem-test/archive/refs/heads/master.zip
52+
- run: git submodule update --init --recursive --remote
53+
3054
prepare_test_manager:
3155
steps:
32-
- run: ecosystem-test prepare-test-manager -l $TEST_LICENSE -es aws_access_key_id=$aws_access_key_id -es aws_secret_access_key=$aws_secret_access_key --yum-package python-netaddr --yum-package git -p $(find ~/project/workspace/build/ -name *centos-Core*x86_64.wgn) ~/project/plugin.yaml
56+
- run: ecosystem-test prepare-remote-test-manager -es aws_access_key_id=$aws_access_key_id -es aws_secret_access_key=$aws_secret_access_key -p $(find ~/project/workspace/build/ -name *centos-Core*x86_64.wgn) ~/project/plugin.yaml
3357

3458
run_blueprint:
3559
steps:
36-
- run: ecosystem-test local-blueprint-test -b examples/blueprint.yaml --test-id=hello-world-example --on-failure=uninstall-force --timeout=1800
60+
- run: ecosystem-test remote-blueprint-test -b examples/blueprint.yaml --test-id=hello-world-example --on-failure=uninstall-force --timeout=1800
3761

3862
jobs:
3963

@@ -52,13 +76,19 @@ workflows:
5276
tests:
5377
jobs:
5478
- node/check_py3_compat_job
55-
- node/unittests_job
79+
- node/unittests_job:
80+
context:
81+
- plugins-inputs
5682
- node/validate_version_job
5783
- node/validate_documentation_job
5884
- wagonorb/wagon:
5985
filters:
6086
branches:
6187
only: /([0-9\.]*\-build|master)/
88+
- wagonorb/wagon_311:
89+
filters:
90+
branches:
91+
only: /([0-9\.]*\-build|master)/
6292
- wagonorb/arch64_wagon:
6393
filters:
6494
branches:
@@ -68,25 +98,33 @@ workflows:
6898
branches:
6999
only: /([0-9\.]*\-build|master)/
70100
- integration_tests_py3:
101+
context:
102+
- plugins-inputs
71103
requires:
72104
- wagonorb/wagon
105+
- wagonorb/wagon_311
73106
- wagonorb/arch64_wagon
74107
- wagonorb/rhel_wagon
75108
filters:
76109
branches:
77110
only: /([0-9\.]*\-build|master)/
78111
- releaseorb/release:
112+
context:
113+
- plugins-inputs
79114
filters:
80115
branches:
81116
only: /master/
82117
requires:
83118
- wagonorb/wagon
119+
- wagonorb/wagon_311
84120
- wagonorb/arch64_wagon
85121
- wagonorb/rhel_wagon
86122
- node/validate_version_job
87123
- node/validate_documentation_job
88124
- integration_tests_py3
89125
- releaseorb/merge_docs_job:
126+
context:
127+
- plugins-inputs
90128
filters:
91129
branches:
92130
only: /master/
@@ -104,11 +142,17 @@ workflows:
104142
jobs:
105143
- node/check_py3_compat_job
106144
- node/validate_version_job
107-
- node/unittests_job
145+
- node/unittests_job:
146+
context:
147+
- plugins-inputs
108148
- wagonorb/wagon:
109149
filters:
110150
branches:
111151
only: /([0-9\.]*\-build|master)/
152+
- wagonorb/wagon_311:
153+
filters:
154+
branches:
155+
only: /([0-9\.]*\-build|master)/
112156
- wagonorb/arch64_wagon:
113157
filters:
114158
branches:
@@ -118,8 +162,11 @@ workflows:
118162
branches:
119163
only: /([0-9\.]*\-build|master)/
120164
- integration_tests_py3:
165+
context:
166+
- plugins-inputs
121167
requires:
122168
- wagonorb/wagon
169+
- wagonorb/wagon_311
123170
- wagonorb/arch64_wagon
124171
- wagonorb/rhel_wagon
125172
filters:

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0.0.1: POC
22
0.1.0: Productized release.
33
0.1.1: add __version__.py file
4+
0.1.2: py311 wagon & remote manager & context.

plugin.yaml

Lines changed: 17 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,75 @@
11
plugins:
2-
32
sl:
43
executor: central_deployment_agent
54
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.1'
7-
5+
package_version: 0.1.2
86
data_types:
9-
107
cloudify.types.serverless.ServerlessConfig:
118
properties:
129
executable_path:
1310
type: string
1411
default: ''
15-
description: File path to Serverless binary. Leave blank and Cloudify will store the binary.
16-
1712
cloudify.types.serverless.ClientConfig:
1813
properties:
1914
provider:
2015
type: string
21-
description: The Serverless provider name.
2216
required: false
2317
credentials:
24-
# type: dict
18+
type: dict
2519
required: false
26-
description: Credentials of the provider.
27-
2820
cloudify.types.serverless.ServiceConfig:
2921
properties:
3022
name:
3123
type: string
32-
description: The Serverless service name.
3324
required: true
3425
template:
3526
type: string
36-
description: Template for the service.
3727
required: true
3828
template_url:
3929
type: string
40-
description: Template URL for the service. Supports GitHub, BitBucket.
4130
required: false
4231
template_path:
4332
type: string
44-
description: Template local path for the service.
4533
required: false
4634
functions:
47-
# type: list
35+
type: list
4836
required: true
49-
description: List of cloudify.types.serverless.FunctionConfig.
5037
env:
51-
# type: dict
38+
type: dict
5239
required: false
53-
description: >
54-
A dict of environment variables to use during execution of serverless CLI calls.
55-
# For example, you can provide AWS credentials:
56-
# env:
57-
# AWS_ACCESS_KEY_ID: { get_secret: AWS_ACCESS_KEY_ID }
58-
# AWS_SECRET_ACCESS_KEY: { get_secret: AWS_SECRET_ACCESS_KEY }
59-
6040
cloudify.types.serverless.FunctionConfig:
6141
properties:
6242
name:
6343
type: string
64-
description: The Serverless function name.
6544
required: true
6645
handler:
6746
type: string
68-
description: The Serverless function handelr.
6947
required: true
7048
events:
71-
# type: list
72-
description: List of events assoicated with the function.
49+
type: list
7350
required: false
7451
environment:
75-
# type: dict
76-
description: Function environment variables.
52+
type: dict
7753
required: false
78-
7954
dsl_definitions:
80-
81-
serverless_configuration: &serverless_config
82-
serverless_config:
55+
serverless_configuration:
56+
serverless_config: &id001
8357
type: cloudify.types.serverless.ServerlessConfig
84-
85-
use_external_resource_desc: &use_external_resource_desc >
86-
Indicate whether the resource exists or if Cloudify should create the resource,
87-
true if you are bringing an existing resource, false if you want cloudify to create it.
88-
89-
external_resource: &external_resource
90-
use_external_resource:
91-
description: *use_external_resource_desc
58+
use_external_resource_desc: >
59+
Indicate whether the resource exists or if Cloudify should create the resource, true if you are bringing an existing resource, false if you want cloudify to create it.
60+
external_resource:
61+
use_external_resource: &id002
9262
type: boolean
9363
default: false
94-
9564
node_types:
96-
9765
cloudify.nodes.serverless.Binary:
9866
derived_from: cloudify.nodes.SoftwareComponent
9967
properties:
100-
<<: *serverless_config
101-
<<: *external_resource
68+
serverless_config: *id001
69+
use_external_resource: *id002
10270
installation_source:
10371
type: string
104-
default: 'https://github.com/serverless/serverless/releases/download/v3.22.0/serverless-linux-x64'
105-
description: >
106-
Location to download the Helm installation from. Ignored if 'use_existing_resource' is true.
72+
default: https://github.com/serverless/serverless/releases/download/v3.22.0/serverless-linux-x64
10773
max_sleep_time:
10874
type: integer
10975
default: 300
@@ -113,15 +79,13 @@ node_types:
11379
implementation: sl.serverless_plugin.tasks.install_binary
11480
delete:
11581
implementation: sl.serverless_plugin.tasks.uninstall_binary
116-
11782
cloudify.nodes.serverless.Service:
11883
derived_from: cloudify.nodes.SoftwareComponent
11984
properties:
120-
<<: *serverless_config
121-
<<: *external_resource
85+
serverless_config: *id001
86+
use_external_resource: *id002
12287
client_config:
12388
type: cloudify.types.serverless.ClientConfig
124-
description: Configure the Serverless provider and client credentials.
12589
required: true
12690
resource_config:
12791
type: cloudify.types.serverless.ServiceConfig

plugin_1_4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins:
33
sl:
44
executor: central_deployment_agent
55
package_name: cloudify-serverless-plugin
6-
package_version: '0.1.1'
6+
package_version: '0.1.2'
77

88
data_types:
99

serverless_plugin/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = '0.1.1'
1+
version = '0.1.2'

0 commit comments

Comments
 (0)