Skip to content

Commit

Permalink
Update to respect updated method signautre for CMA 2.0.0, update fixt…
Browse files Browse the repository at this point in the history
…ure (#42)

* Update to respect updated method signautre for CMA 2.0.0, update fixture

* Fix requirements range
  • Loading branch information
Jkovarik committed Dec 22, 2021
1 parent 3ab2966 commit aeca584
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [v2.0.0] - 2021-12-21

- **CUMULUS-2577**
- Update to match call signatures in [cumulus-message-adapter](https://github.com/nasa/cumulus-message-adapter) 2.0.0. This release requires `cumulus-message-adapter` > 2.0.0.
- Update test fixture to remove deprecated 'workflow_config' config key

## [v1.2.2] - 2021-11-04

- [Issue #38](https://github.com/nasa/cumulus-message-adapter-python/issues/38)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
cumulus-message-adapter>=1.2.0<1.4.0
cumulus-message-adapter>=2.0.0<2.1.0
2 changes: 1 addition & 1 deletion run_cumulus_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run_cumulus_task(

adapter = MessageAdapter(schemas)
full_event = adapter.load_and_update_remote_event(cumulus_message, context_dict)
nested_event = adapter.load_nested_event(full_event, context_dict)
nested_event = adapter.load_nested_event(full_event)
message_config = nested_event.get('messageConfig', {})

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_parameter_event():

def create_event():
return {
"workflow_config": {
"task_config": {
"Example": {
"foo": "wut",
"cumulus_message": {}
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = 'v1.2.2'
__version__ = 'v2.0.0'

0 comments on commit aeca584

Please sign in to comment.