Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema commit time validations #290

Merged
merged 29 commits into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
04132d4
Modify old validation steps to match new bdd steps
farost Jul 4, 2024
f3cecea
Add transaction closes before opening new transactions for validation…
farost Jul 5, 2024
5ff59da
Add values and range annotations tests for types. Refactor range anno…
farost Jul 8, 2024
a23d6fe
Fix attribute type tests for values and range
farost Jul 9, 2024
569c3ee
Fix attribute type and owns tests for new annotations
farost Jul 9, 2024
f91e339
Fix small issues with attribute type and owns tests
farost Jul 10, 2024
757eeaf
Enhance and fix some of the schema validation tests
farost Jul 10, 2024
05a1bca
Add more steps to check override corruption
farost Jul 10, 2024
80b0b6e
Fix some of the schema validation tests based on owns, plays, and rel…
farost Jul 11, 2024
79c29d4
Finish fixing old schema validation tests
farost Jul 11, 2024
9985d72
Enhance checks for getting cardinality
farost Jul 12, 2024
20338ba
Clean todos. Add more steps for inheritance all the way around
farost Jul 12, 2024
e5fa4ae
Change @card format from (arg1, arg2) to (arg1..arg2)
farost Jul 13, 2024
11037ac
Add more tests for abstractness. Fix card format. Finish entitytypes …
farost Jul 15, 2024
b55c395
Small steps fixes
farost Jul 15, 2024
e0517bc
Fix remove redundant value type settings and fix some tests for attri…
farost Jul 16, 2024
b115bd3
Fix attribute type and owns tests with value types
farost Jul 16, 2024
1be2109
Add tests for abstract plays
farost Jul 16, 2024
369d6c9
Add tests for cardinality with multiple levels of inheritance
farost Jul 17, 2024
7299c36
Add checks for root type modifications
farost Jul 17, 2024
9063c5f
Add tests for implicit cascade and independent annotations. Small fixes
farost Jul 17, 2024
6039704
Fix old relationtype and attributetype tests
farost Jul 18, 2024
0fcbf51
Update schema validation tests after more checks are introduces
farost Jul 18, 2024
1fc2718
Remove redundant todos and steps
farost Jul 18, 2024
4d5f859
Fix owns test after a fixed check
farost Jul 18, 2024
7e8bee2
Fix tests for plays to consider the updated default card value
farost Jul 18, 2024
90566f0
Move schema-validation tests to separate files
farost Jul 18, 2024
b748b2f
Split owns to owns and owns-annotations
farost Jul 19, 2024
9bd0bdd
Use database reset instead of database create for type tests
farost Jul 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions concept/thing/attribute.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ Feature: Concept Attribute
Then attribute $x has value type: <type>
Then attribute $x has value: <value>
Examples:
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01T11:22:33 |
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01T11:22:33 |
| event-date | datetime-tz | 1990-01-01T11:22:33 Asia/Kathmandu |
| event-date | datetime-tz | 1990-01-01T11:22:33-0700 |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |

Scenario Outline: Attribute with value type <type> can be retrieved by its value
When $x = attribute(<attr>) put instance with value: <value>
Expand All @@ -74,15 +74,15 @@ Feature: Concept Attribute
When $x = attribute(<attr>) get instance with value: <value>
Then attribute(<attr>) get instances contain: $x
Examples:
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01 11:22:33 |
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01 11:22:33 |
| event-date | datetime-tz | 1990-01-01 11:22:33 Asia/Kathmandu |
| event-date | datetime-tz | 1990-01-01T11:22:33-0700 |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |

Scenario Outline: Attribute with value type <type> can be deleted
When $x = attribute(<attr>) put instance with value: <value>
Expand All @@ -107,15 +107,15 @@ Feature: Concept Attribute
When $x = attribute(<attr>) get instance with value: <value>
Then attribute $x does not exist
Examples:
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01 11:22:33 |
| attr | type | value |
| is-alive | boolean | true |
| age | long | 21 |
| score | double | 123.456 |
| name | string | alice |
| birth-date | datetime | 1990-01-01 11:22:33 |
| event-date | datetime-tz | 1990-01-01 11:22:33 Asia/Kathmandu |
| event-date | datetime-tz | 1990-01-01T11:22:33-0700 |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |
| schedule-interval | duration | P1Y2M3DT4H5M6.789S |

Scenario: Attribute with value type string that satisfies the regular expression can be created
When $x = attribute(email) put instance with value: alice@email.com
Expand Down
3 changes: 3 additions & 0 deletions concept/type/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ exports_files([
"attributetype.feature",
"entitytype.feature",
"relationtype.feature",
"plays.feature",
"owns.feature",
"owns-annotations.feature",
])

checkstyle_test(
Expand Down
Loading