Skip to content

Commit

Permalink
add unit tests to verify setting of obj states to content
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Sep 27, 2017
1 parent b101c45 commit 904f1f1
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions Tests/dsl/good/UnitTestOK012_objectState.yml
Expand Up @@ -43,6 +43,86 @@
descriptions:
eng-GB: Kaliop Migration Bundle Test Object State 2

-
type: content_type
mode: create
content_type_group: 1
identifier: kmb_test_12_ct
name: Kaliop Migration Bundle Test Class 12
name_pattern: '<ezstring>'
attributes:
-
type: ezstring
name: ezstring
identifier: ezstring

-
type: content
mode: create
content_type: kmb_test_12_ct
parent_location: 2
attributes:
- ezstring: hello world
references:
-
identifier: kmb_test_12_obj
attribute: object_id
object_states:
- an_object_state_group_updated/another_object_state

-
type: content
mode: load
match:
content_id: "reference:kmb_test_12_obj"
references:
-
identifier: kmb_test_12_obj_state1
attribute: object_state.an_object_state_group_updated

-
type: assert
target: reference
identifier: reference:kmb_test_12_obj_state1
test:
equals: "an_object_state_group_updated/another_object_state"

-
type: content
mode: update
match:
content_id: "reference:kmb_test_12_obj"
object_states:
- "an_object_state_group_updated/an_object_state"

-
type: content
mode: load
match:
content_id: "reference:kmb_test_12_obj"
references:
-
identifier: kmb_test_12_obj_state2
attribute: object_state.an_object_state_group_updated

-
type: assert
target: reference
identifier: reference:kmb_test_12_obj_state2
test:
equals: "an_object_state_group_updated/an_object_state"

-
type: content
mode: delete
match:
content_type: kmb_test_12_ct

-
type: content_type
mode: delete
identifier: kmb_test_12_ct

-
type: object_state
mode: update
Expand Down

0 comments on commit 904f1f1

Please sign in to comment.