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

fix - tck contains is invalid #3314

Merged
merged 9 commits into from
Nov 26, 2021
1 change: 1 addition & 0 deletions tests/common/comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def s(self, b: bytes) -> str:

def _whether_return(self, cmp: bool) -> bool:
return ((self._contains == CmpType.EQUAL and not cmp)
or (self._contains == CmpType.CONTAINS and not cmp)
or (self._contains == CmpType.NOT_CONTAINS and cmp))

def compare(self, resp: DataSet, expect: DataSet):
Expand Down
6 changes: 3 additions & 3 deletions tests/tck/features/admin/Hosts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ Feature: Admin hosts
"""
Then the result should contain:
| Host | Port | Status | Role | Git Info Sha | Version |
| /\w+/ | /\d+/ | "ONLINE" | "GRAPH" | /[0-9a-f]{7}/ | EMPTY |
| /\w+/ | /\d+/ | "ONLINE" | "GRAPH" | /[0-9a-f]{7}/ | /.*/ |
When executing query:
"""
SHOW HOSTS META;
"""
Then the result should contain:
| Host | Port | Status | Role | Git Info Sha | Version |
| /\w+/ | /\d+/ | "ONLINE" | "META" | /[0-9a-f]{7}/ | EMPTY |
| /\w+/ | /\d+/ | "ONLINE" | "META" | /[0-9a-f]{7}/ | /.*/ |
When executing query:
"""
SHOW HOSTS STORAGE;
"""
Then the result should contain:
| Host | Port | Status | Role | Git Info Sha | Version |
| /\w+/ | /\d+/ | "ONLINE" | "STORAGE" | /[0-9a-f]{7}/ | EMPTY |
| /\w+/ | /\d+/ | "ONLINE" | "STORAGE" | /[0-9a-f]{7}/ | /.*/ |

Scenario: Create space
When executing query:
Expand Down
12 changes: 4 additions & 8 deletions tests/tck/features/index/TagEdgeIndex.feature
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ Feature: tag and edge index tests from pytest
SHOW TAG INDEX STATUS
"""
Then the result should contain:
| Name | Index Status |
| 'single_tag_index' | 'FINISHED' |
| 'multi_tag_index' | 'FINISHED' |
| 'disorder_tag_index' | 'FINISHED' |
| Name | Index Status |
| 'single_tag_index,multi_tag_index,disorder_tag_index' | 'FINISHED' |
When executing query:
"""
LOOKUP ON tag_1 WHERE tag_1.col2 == 18 YIELD tag_1.col1
Expand Down Expand Up @@ -333,10 +331,8 @@ Feature: tag and edge index tests from pytest
SHOW EDGE INDEX STATUS
"""
Then the result should contain:
| Name | Index Status |
| 'single_edge_index' | 'FINISHED' |
| 'multi_edge_index' | 'FINISHED' |
| 'disorder_edge_index' | 'FINISHED' |
| Name | Index Status |
| 'single_edge_index,multi_edge_index,disorder_edge_index' | 'FINISHED' |
# Lookup
When executing query:
"""
Expand Down