Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

tck test case should wait after schema changes #1228

Closed
HarrisChu opened this issue Jul 9, 2021 · 0 comments
Closed

tck test case should wait after schema changes #1228

HarrisChu opened this issue Jul 9, 2021 · 0 comments

Comments

@HarrisChu
Copy link
Contributor

tck test case should wait after schema changes.

e.g.
below test case would be failed.

Feature: tag and edge index tests from pytest

  Background:
    Given an empty graph
    And create a space with following options:
      | partition_num  | 9                |
      | replica_factor | 1                |
      | vid_type       | FIXED_STRING(30) |
      | charset        | utf8             |
      | collate        | utf8_bin         |
    And having executed:
      """
      CREATE TAG tag_1(col1 string, col2 int, col3 double, col4 timestamp);
      CREATE EDGE edge_1(col1 string, col2 int, col3 double, col4 timestamp);
      INSERT VERTEX
        tag_1(col1, col2, col3, col4)
      VALUES
        '101':('Tom', 18, 35.4, `timestamp`('2010-09-01T08:00:00')),
        '102':('Jerry', 22, 38.4, `timestamp`('2011-09-01T08:00:00')),
        '103':('Bob', 19, 36.4, `timestamp`('2010-09-01T12:00:00'));
      INSERT EDGE
        edge_1(col1, col2, col3, col4)
      VALUES
        '101'->'102':('Red', 81, 45.3, `timestamp`('2010-09-01T08:00:00')),
        '102'->'103':('Yellow', 22, 423.8, `timestamp`('2011-09-01T08:00:00')),
        '103'->'101':('Blue', 91, 43.1, `timestamp`('2010-09-01T12:00:00'));
      """

How to run tck on remote nebula graph:

  1. start docker-compose
  2. in tests folder, run
PYTHONPATH=$PYTHONPATH:.. ./nebula-test-run.py --cmd=start --rm_dir=true --build_dir=../build --debug=true --multi_graphd=true --address=127.0.0.1:9669
  1. in tests folder, run
python3 -m pytest -n16 -m "not skip" tck/steps/test_tck.py --address=127.0.0.1:9669
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant