Started calculate disk usage of build Finished Calculation of disk usage of build in 0 seconds Started calculate disk usage of workspace Finished Calculation of disk usage of workspace in 0 seconds [INFO] [INFO] --------------< org.locationtech.geogig:geogig-cli-core >--------------- [INFO] Building GeoGig Command Line Interface Core 1.4-SNAPSHOT [9/22] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] Downloading from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/maven-metadata.xml [INFO] Downloading from osgeo: http://download.osgeo.org/webdav/geotools/org/geotools/gt-shapefile/20-SNAPSHOT/maven-metadata.xml [INFO] Downloaded from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/maven-metadata.xml (963 B at 2.7 kB/s) [INFO] Downloading from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/gt-shapefile-20-20180930.125752-173.pom [INFO] Downloaded from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/gt-shapefile-20-20180930.125752-173.pom (5.3 kB at 55 kB/s) [INFO] Downloading from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/gt-shapefile-20-20180930.125752-173.jar [INFO] Downloaded from boundless: https://repo.boundlessgeo.com/main/org/geotools/gt-shapefile/20-SNAPSHOT/gt-shapefile-20-20180930.125752-173.jar (220 kB at 825 kB/s) [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ geogig-cli-core --- [INFO] Deleting /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target [INFO] [INFO] --- git-commit-id-plugin:2.2.2:revision (default) @ geogig-cli-core --- [INFO] [INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ geogig-cli-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ geogig-cli-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 62 source files to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/classes [INFO] [INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ geogig-cli-core --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 45 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ geogig-cli-core --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ geogig-cli-core --- [INFO] Surefire report directory: /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- ------------------------------------------------------- T E S T S ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Picked up JAVA_TOOL_OPTIONS: -Xmx2G -Djava.io.tmpdir=/tmp/genie.geogig Running org.locationtech.geogig.cli.test.functional.RunGenralFunctionalTest Running org.locationtech.geogig.cli.test.functional.RunIndexFunctionalTest Running org.locationtech.geogig.cli.test.functional.RunPorcelainFunctionalTest Running org.locationtech.geogig.cli.test.functional.RunPlumbingFunctionalTest Running org.locationtech.geogig.cli.test.functional.RunHooksFunctionalTest Running org.locationtech.geogig.cli.test.ArgumentTokenizerTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.428 sec - in org.locationtech.geogig.cli.test.ArgumentTokenizerTest Feature: General features of CLI In order to use the CLI As a Geogig User I want to use some basic functionality [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Use command alias': Using URIBuilder DefaultTestRepoURIBuilder Feature: "hooks" functionality In order to control how geogig commands are executed As a Geogig User I want to set hooks in my repo [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Set a pre-commit hook and perform a wrong commit': Using URIBuilder DefaultTestRepoURIBuilder Feature: Automatic index updating In order to keep an index up to date with the canonical tree As a Geogig User Whenever I make changes to a repository, the index should be automatically updated Feature: "cat" command In order to know the content of a given element As a Geogig User I want to display its content [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Committing a modified indexed feature updates the indexes': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the content of a tree.': Using URIBuilder DefaultTestRepoURIBuilder Feature: "add" command In order to prepare for making a commit to the geogig repository As a Geogig User I want to stage my changes to the working tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add a conflicted feature': Using URIBuilder DefaultTestRepoURIBuilder 0% 100% [4bace375fc1f0e1380474db59189d66d3c94b8e7] noIndexCommitted, counting objects...1 features added, 0 changed, 0 deleted. 1% Index updated in 4.057 ms. Building final tree...QuadTree created. Size: 1, time: 4.397 msIndex created successfully: 431a3203 0% Updating index pp(QUADTREE) on Points...Updated index: 938922ec, size: 1, bounds: POLYGON ((1 2, 1 2, 1 2, 1 2, 1 2))updated indexes: [Index(938922ec) QUADTREE on Points(pp)]100% [7fb3dee47a10464cba242393c1fb59bdfcc94a91] withIndexCommitted, counting objects...0 features added, 1 changed, 0 deleted. 100.0 [919db19bdfe2467a11435c1c3aae0e0da2e0a1e5] messageCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show command candidate when command is mistyped': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Merging updates the index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Committing a modified indexed feature updates the indexes # AutomaticIndexUpdating.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m noIndex" # DefaultStepDefinitions.I_run_the_command_X(String) And the response should contain "1 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Updated index" # DefaultStepDefinitions.the_response_should_not_contain(String) When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And I have staged "points1_modified" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m withIndex" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Updated index" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Scenario: Use command alias # General.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "config alias.ci commit" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "ci -m message" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) id 99dfd3607e82eb0f85baa185c60da9da9d8858d9TREEsize 3numtrees 0REF FEATURE Points.2 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 0000000000000000000000000000000000000000 2.0;2.0;2.0;2.0REF FEATURE Points.3 5f5e58345cd7831c88e48ffa674541fd7703edc2 0000000000000000000000000000000000000000 3.0;3.0;3.0;3.0REF FEATURE Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 0000000000000000000000000000000000000000 1.0;1.0;1.0;1.0 id 99dfd3607e82eb0f85baa185c60da9da9d8858d9TREEsize 3numtrees 0REF FEATURE Points.2 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 0000000000000000000000000000000000000000 2.0;2.0;2.0;2.0REF FEATURE Points.3 5f5e58345cd7831c88e48ffa674541fd7703edc2 0000000000000000000000000000000000000000 3.0;3.0;3.0;3.0REF FEATURE Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 0000000000000000000000000000000000000000 1.0;1.0;1.0;1.0 id 99dfd3607e82eb0f85baa185c60da9da9d8858d9TREEsize 3numtrees 0REF FEATURE Points.2 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 0000000000000000000000000000000000000000 2.0;2.0;2.0;2.0REF FEATURE Points.3 5f5e58345cd7831c88e48ffa674541fd7703edc2 0000000000000000000000000000000000000000 3.0;3.0;3.0;3.0REF FEATURE Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 0000000000000000000000000000000000000000 1.0;1.0;1.0;1.0 brunch is not a geogig command. See geogig --help.Did you mean this? branch'brunch' is not a command. brunch is not a geogig command. See geogig --help.Did you mean this? branch'brunch' is not a command. [main] INFO org.locationtech.geogig.hooks.Scripting - Running jvm script /opt/public/hipp/ramdisk/geogig/junit4716536775402154881/data/localrepo/.geogig/hooks/pre_commit.js [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show command candidates when command is mistyped': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the content of a feature.': Using URIBuilder DefaultTestRepoURIBuilder Commit messages must have at least 5 letters (command aborted by .geogig/hooks/pre_commit.js) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Set a pre-commit hook and perform a valid commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the content of a tree. # Cat.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "cat HEAD:Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points}" # DefaultStepDefinitions.checkResponseTextContains(String) Scenario: Show command candidate when command is mistyped # General.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "brunch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Did you mean this?" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Set a pre-commit hook and perform a wrong commit # Hooks.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I set up a hook # DefaultStepDefinitions.I_set_up_a_hook() When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() And the response should contain "Commit messages must have at least 5 letters" # DefaultStepDefinitions.the_response_should_contain(String) confit is not a geogig command. See geogig --help.Did you mean one of these? commit config'confit' is not a command. confit is not a geogig command. See geogig --help.Did you mean one of these? commit config'confit' is not a command. confit is not a geogig command. See geogig --help.Did you mean one of these? commit config'confit' is not a command. Scenario: Show command candidates when command is mistyped # General.feature:22 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "confit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Did you mean one of these?" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "config" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "commit" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Feature: "help" command In order to know how to use geogig As a Geogig User I want to see the description of a command [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show general help, containing only porcelain commands': Using URIBuilder DefaultTestRepoURIBuilder Counting unstaged elements...0Staging changes...Removing 0 merged conflicts...Done. 1 unmerged conflicts.1 features and 1 trees staged for commit0 features and 0 trees not staged for commit No elements need merging. usage: geogig [--repo ] []The most commonly used geogig commands are:--help Print this help message, or provide a command name to get help for--version Display GeoGig version informationadd Add features to the staging areaapply Apply a patch to the current working treeblame Shows information about authors of modifications for a single featurebranch List, create, or delete branchescheckout Checkout a branch or paths to the working treecherry-pick Apply the changes introduced by existing commitsclean Deletes untracked features from working treecommit Record staged changes to the repositoryconfig Get and set repository or global optionsconflicts Shows existing conflictsdiff Show changes between commits, commit and working tree, etcformat-patch Creates a patch with a set of changeshelp Print this help message, or provide a command name to get help forindex Indexing command utilitiesinit Create an empty geogig repository or reinitialize an existing onelog Show commit logsls Obtain information about features in the index and the working tree.merge Merge two or more histories into onerebase Forward-port local commits to the updated upstream headreset Reset current HEAD to the specified state, optionally modifying index and working tree to matchrevert Revert commits to undo the changes maderm Remove features or treesshow Displays information about a commit, feature or feature typesquash Squash commitsstatus Show the working tree statustag creates/deletes tagsversion Display GeoGig version information Scenario: Show general help, containing only porcelain commands # Help.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "help" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "cat-object" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "ls-tree" # DefaultStepDefinitions.the_response_should_not_contain(String) 4 Scenarios (4 passed) 23 Steps (23 passed) 0m10.311s Tests run: 27, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.9 sec - in org.locationtech.geogig.cli.test.functional.RunGenralFunctionalTest [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add features to the index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add a conflicted feature # Add.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() And I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "add Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1 features and 1 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with zero exit code # DefaultStepDefinitions.it_should_exit_with_zero_exit_code() When I run the command "conflicts" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No elements need merging" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.hooks.Scripting - Running jvm script /opt/public/hipp/ramdisk/geogig/junit2724734869803088651/data/localrepo/.geogig/hooks/pre_commit.js id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) Merge: merging [fd3a96aa07dd6be2872a05868a522d66d39778ea] onto HEAD -> [refs/heads/master -> 387aa8af438008415bed249dcb70f1fa206dff3c]Checking for possible conflicts...Merging commit fd3a96aa (Commit3) onto 387aa8af (Commit5)Conflicts: 0, merged: 0, unconflicted: 3Staging changes...0 Building final tree PointsTree Points staged in 1.478 msDone.Creating merge commitMerge: created merge commit Commit[74a2a00e06ade196bd13c8ca98bb928cf6205f1a, 'MergeMessage'][74a2a00e06ade196bd13c8ca98bb928cf6205f1a] MergeMessageCommitted, counting objects...2 features added, 0 changed, 0 deleted. 100.0 [b8b5482878dfa480a9c3c288672d36a33676a03b] longermessageCommitted, counting objects...6 features added, 0 changed, 0 deleted. Counting unstaged elements...5Staging changes...100% 3 features and 2 trees staged for commit0 features and 0 trees not staged for commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add a specific feature type to the index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Set a pre-commit hook and perform a valid commit # Hooks.feature:14 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I set up a hook # DefaultStepDefinitions.I_set_up_a_hook() When I run the command "commit -m LongerMessage " # DefaultStepDefinitions.I_run_the_command_X(String) Then it should exit with zero exit code # DefaultStepDefinitions.it_should_exit_with_zero_exit_code() And the response should not contain "Commit messages must have at least 5 letters" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "6 features added" # DefaultStepDefinitions.the_response_should_contain(String) 2 Scenarios (2 passed) 13 Steps (13 passed) 0m11.559s Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.081 sec - in org.locationtech.geogig.cli.test.functional.RunHooksFunctionalTest [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the content of a feature that does not exist': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Rebasing a branch generates indexes for each rebased commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add features to the index # Add.feature:16 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features and 2 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Merging updates the index # AutomaticIndexUpdating.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Scenario: Try to show the content of a feature. # Cat.feature:16 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "cat HEAD:Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1000" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "POINT (1 1)" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "StringProp1_1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) refspec did not resolve to any object. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the content of a feature in the working tree.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the content of a feature that does not exist # Cat.feature:26 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "cat WORK_HEAD:Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() And the response should contain "refspec did not resolve to any object" # DefaultStepDefinitions.the_response_should_contain(String) Counting unstaged elements...3Staging changes...0 Building final tree PointsTree Points staged in 1.222 msDone.2 features and 1 trees staged for commit1 features and 1 trees not staged for commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add a using too many parameters': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add a specific feature type to the index # Add.feature:24 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "add Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features and 1 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) Only a single path is supported so far [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add a specific feature to the index': Using URIBuilder DefaultTestRepoURIBuilder id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the content of HEAD.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add a using too many parameters # Add.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "add Points Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Only a single path is supported so far" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Try to show the content of a feature in the working tree. # Cat.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() When I run the command "cat WORK_HEAD:Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1000" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "POINT (1 1)" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "StringProp1_1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|WORK_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) Counting unstaged elements...3Staging changes...0 Building final tree PointsTree Points staged in 952.9 μsDone.1 features and 1 trees staged for commit2 features and 2 trees not staged for commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add an empty feature type': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add a specific feature to the index # Add.feature:39 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "add Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1 features and 1 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Cherry-picking a commit updates the index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Rebasing a branch generates indexes for each rebased commit # AutomaticIndexUpdating.feature:36 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "rebase master branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Counting unstaged elements...1Staging changes...100% 0 features and 1 trees staged for commit0 features and 0 trees not staged for commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add an empty feature type to an unclean index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add an empty feature type # Add.feature:47 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged an empty feature type # DefaultStepDefinitions.I_have_unstaged_an_empty_feature_type() When I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "0 features and 1 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) id e3b7392dd61757e063346e3df667aad030423f9dCOMMITtree 484d4f13baf8a3197a114ae1ccea12127c570f39parents author John Doe JohnDoe@example.com 1538348539706 -14400000committer John Doe JohnDoe@example.com 1538348539707 -14400000message TestCommit id e3b7392dd61757e063346e3df667aad030423f9dCOMMITtree 484d4f13baf8a3197a114ae1ccea12127c570f39parents author John Doe JohnDoe@example.com 1538348539706 -14400000committer John Doe JohnDoe@example.com 1538348539707 -14400000message TestCommit id e3b7392dd61757e063346e3df667aad030423f9dCOMMITtree 484d4f13baf8a3197a114ae1ccea12127c570f39parents author John Doe JohnDoe@example.com 1538348539706 -14400000committer John Doe JohnDoe@example.com 1538348539707 -14400000message TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try show the binary content of HEAD': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the content of HEAD. # Cat.feature:41 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "cat HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "COMMIT" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "JohnDoe@example.com" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "TestCommit" # DefaultStepDefinitions.the_response_should_contain(String) Counting unstaged elements...1Staging changes...Done.1.0 1 features and 2 trees staged for commit0 features and 0 trees not staged for commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add an empty feature type to an unclean index # Add.feature:53 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) And I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) And I have unstaged an empty feature type # DefaultStepDefinitions.I_have_unstaged_an_empty_feature_type() When I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1 features and 2 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add when no changes have been made': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add from an empty directory # Add.feature:61 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Counting unstaged elements...No unstaged elements, exiting. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to just stage a modified feature with add update': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add when no changes have been made # Add.feature:67 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No unstaged elements" # DefaultStepDefinitions.the_response_should_contain(String) commitHMOºø£zJáÌê|W9John DoeJohnDoe@example.comf,¸ ¥ÿ$FJohn DoeJohnDoe@example.comf,¸ ¦ÿ$F TestCommit Scenario: Try show the binary content of HEAD # Cat.feature:50 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "cat --binary HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Feature: "diff-tree" command In order to know changes made in a repository As a Geogig User I want to see the existing differences between trees [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Creating a branch updates the index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Cherry-picking a commit updates the index # AutomaticIndexUpdating.feature:54 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "cherry-pick branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Counting unstaged elements...4Staging changes...Building final tree PointsTree Points staged in 1.187 msDone.2 features and 1 trees staged for commit1 features and 1 trees not staged for commit # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Points/Points.2# added Points/Points.1# 3 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Points/Points.2# added Points/Points.1# 3 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Points/Points.2# added Points/Points.1# 3 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Points/Points.2# added Points/Points.1# 3 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. Scenario: Try to just stage a modified feature with add update # Add.feature:72 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have unstaged "points1_modified" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "add --update" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features and 1 trees staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "3 total" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "2 total" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "apply" command In order to apply changes stored in a patch file As a Geogig User I want to apply a patch to the repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Check if a correct patch can be applied': Using URIBuilder DefaultTestRepoURIBuilder Patch can be applied. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Check if a wrong patch can be applied': Using URIBuilder DefaultTestRepoURIBuilder Points/Points.1 b56c1dec5a164dc1e9b61e015882909ad3c4c501 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, omitting index refspec': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Check if a correct patch can be applied # Apply.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply --check ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch can be applied" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Creating a branch updates the index # AutomaticIndexUpdating.feature:67 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~3" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) When I run the command "branch newBranch HEAD~3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository's "HEAD~3:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "newBranch:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Feature: "index create" command In order to improve query performance on a feature tree As a Geogig User I want to create an index on an attribute of the feature tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index # DiffTree.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree WORK_HEAD STAGE_HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Error: Patch cannot be appliedApplicable entries:Conflicting entries:M Points/Points.1sp StringProp1_1 -> new [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Check if a patch can be applied twice': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Check if a wrong patch can be applied # Apply.feature:13 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply --check ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch cannot be applied" # DefaultStepDefinitions.the_response_should_contain(String) Points/Points.1 b56c1dec5a164dc1e9b61e015882909ad3c4c501 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, omitting both refspecs': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 1.205 ms. Building final tree...QuadTree created. Size: 3, time: 1.148 msIndex created successfully: ee21fc3d Index updated in 1.205 ms. Building final tree...QuadTree created. Size: 3, time: 1.148 msIndex created successfully: ee21fc3d Patch can be applied. Scenario: Show diff between working tree and index, omitting index refspec # DiffTree.feature:14 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree WORK_HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain variable "{@ObjectId|localrepo|WORK_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with extra attributes': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Apply a correct patch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Check if a patch can be applied twice # Apply.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "apply --check ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch can be applied" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to create an index # CreateIndex.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Size: 2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~3:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) Patch applied succesfully [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to apply a wrong patch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Apply a correct patch # Apply.feature:29 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch applied succesfully" # DefaultStepDefinitions.the_response_should_contain(String) Points/Points.1 b56c1dec5a164dc1e9b61e015882909ad3c4c501 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff tree stats between working tree and index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, omitting both refspecs # DiffTree.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a featuregit # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) 1% Index updated in 6.540 ms. Building final tree...QuadTree created. Size: 3, time: 1.422 msIndex created successfully: a6b65fce 1% Index updated in 6.540 ms. Building final tree...QuadTree created. Size: 3, time: 1.422 msIndex created successfully: a6b65fce [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with user-specified bounds': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index with extra attributes # CreateIndex.feature:26 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Size: 2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~3:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) Error: Patch cannot be appliedConflicting entries:M Points/Points.1sp StringProp1_1 -> new Error: Patch cannot be appliedConflicting entries:M Points/Points.1sp StringProp1_1 -> new [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to partially apply a wrong patch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to apply a wrong patch # Apply.feature:36 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Error: Patch cannot be applied" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Points 0 0 1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff using too many commit refspecs': Using URIBuilder DefaultTestRepoURIBuilder Patch applied only partially.0 changes were applied.1 changes were rejected.Patch file with rejected changes created at /opt/public/hipp/ramdisk/geogig/junit7285689711185859539/data/test.patch.rej Patch applied only partially.0 changes were applied.1 changes were rejected.Patch file with rejected changes created at /opt/public/hipp/ramdisk/geogig/junit7285689711185859539/data/test.patch.rej Patch applied only partially.0 changes were applied.1 changes were rejected.Patch file with rejected changes created at /opt/public/hipp/ramdisk/geogig/junit7285689711185859539/data/test.patch.rej Scenario: Show diff tree stats between working tree and index # DiffTree.feature:31 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree --tree-stats" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points 0 0 1" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to apply an inexistent patch': Using URIBuilder DefaultTestRepoURIBuilder 1% Index updated in 2.327 ms. Building final tree...QuadTree created. Size: 3, time: 1.146 msIndex created successfully: ee21fc3d 1% Index updated in 2.327 ms. Building final tree...QuadTree created. Size: 3, time: 1.146 msIndex created successfully: ee21fc3d Scenario: Try to partially apply a wrong patch # Apply.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply --reject ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch applied only partially" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "0 changes were applied" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "1 changes were rejected" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with too few bounds parameters': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index with user-specified bounds # CreateIndex.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --bounds -45,-45,45,45" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Size: 2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-45,-45,45,45" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "HEAD~3:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) Patch file cannot be found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'List the content of a patch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to apply an inexistent patch # Apply.feature:57 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() When I run the command "apply ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch file cannot be found" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Tree refspecs list is too long :[refspec1, refspec2, refspec3] [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff using a wrong refspec': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff using too many commit refspecs # DiffTree.feature:38 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree refspec1 refspec2 refspec3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Tree refspecs list is too long" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Invalid bbox parameter: '-45,-45,45'. Expected format: [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with invalid bounds parameters': Using URIBuilder DefaultTestRepoURIBuilder M Points/Points.1sp StringProp1_1 -> new [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Apply a reversed patch that cannot be applied': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index with too few bounds parameters # CreateIndex.feature:66 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --bounds -45,-45,45" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Invalid bbox parameter: '-45,-45,45'. Expected format: " # DefaultStepDefinitions.the_response_should_contain(String) Scenario: List the content of a patch # Apply.feature:64 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply --summary ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Error: Patch cannot be appliedConflicting entries:M Points/Points.1sp new -> StringProp1_1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Apply a path and then the reverse version of that patch': Using URIBuilder DefaultTestRepoURIBuilder wrong:refspec did not resolve to a tree Scenario: Apply a reversed patch that cannot be applied # Apply.feature:71 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1_modified" # DefaultStepDefinitions.I_have_unstaged(String) And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply --reverse ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Conflicting" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, describing the modified element': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff using a wrong refspec # DiffTree.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree wrong:refspec" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "wrong:refspec did not resolve to a tree" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Invalid bbox parameter: '-45,-45,45,A'. Expected format: [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index on a nonexistent tree': Using URIBuilder DefaultTestRepoURIBuilder Patch applied succesfully Scenario: Apply a path and then the reverse version of that patch # Apply.feature:79 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have 6 unstaged features # DefaultStepDefinitions.I_have_6_unstaged_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "apply ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "apply --reverse ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch applied succesfully" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "blame" command In order to know the history of a single feature As a Geogig User I want to see who edited each attribute of a feature [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with a valid path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index with invalid bounds parameters # CreateIndex.feature:72 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --bounds -45,-45,45,A" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Invalid bbox parameter: '-45,-45,45,A'. Expected format: " # DefaultStepDefinitions.the_response_should_contain(String) M Points/Points.1M spStringProp1_1aStringProp1_1M ip10011000M ppPOINT (1 2)POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, with a change in the feature type': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, describing the modified element # DiffTree.feature:54 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree WORK_HEAD STAGE_HEAD --describe" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 10 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Can't find feature tree 'nonexistent' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index on a nonexistent attribute': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with a valid path in porcelain mode': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index on a nonexistent tree # CreateIndex.feature:78 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree 'nonexistent'" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to run blame with a valid path # Blame.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2Points.1 e55f6a0ff9b730eb06204962b5f503dbe640d021 a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2Points.1 e55f6a0ff9b730eb06204962b5f503dbe640d021 a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2Points.1 e55f6a0ff9b730eb06204962b5f503dbe640d021 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, using a path filter': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, with a change in the feature type # DiffTree.feature:62 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I a featuretype is modified # DefaultStepDefinitions.I_modify_a_feature_type() When I run the command "diff-tree WORK_HEAD:Points STAGE_HEAD:Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|WORK_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|STAGE_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) property nonexistent does not exist pp 5d7e65796a5eab89838392432004314dff101157 John Doe JohnDoe@example.com 1538348570951 -14400000 POINT (1 2)ip 5d7e65796a5eab89838392432004314dff101157 John Doe JohnDoe@example.com 1538348570951 -14400000 1001sp 5d7e65796a5eab89838392432004314dff101157 John Doe JohnDoe@example.com 1538348570951 -14400000 StringProp1_1a [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index on a non-geometry attribute': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with the --no-values switch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with a valid path in porcelain mode # Blame.feature:12 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame --porcelain Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "1001" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to create an index on a nonexistent attribute # CreateIndex.feature:84 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --attribute nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "property nonexistent does not exist" # DefaultStepDefinitions.the_response_should_contain(String) Points.1 b56c1dec5a164dc1e9b61e015882909ad3c4c501 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a diff with --describe and --tree-stats': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, using a path filter # DiffTree.feature:74 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree WORK_HEAD:Points STAGE_HEAD:Points --path Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain variable "{@ObjectId|localrepo|WORK_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|STAGE_HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) property sp is not a geometry attribute [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with a wrong path': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with the full history': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with the --no-values switch # Blame.feature:19 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame --no-values Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should not contain "1001" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: Try to create an index on a non-geometry attribute # CreateIndex.feature:90 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --attribute sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "property sp is not a geometry attribute" # DefaultStepDefinitions.the_response_should_contain(String) Cannot use --describe and --tree-stats simultaneously [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, describing a removed element': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a diff with --describe and --tree-stats # DiffTree.feature:85 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff-tree WORK_HEAD STAGE_HEAD --describe --tree-stats" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot use --describe and --tree-stats simultaneously" # DefaultStepDefinitions.the_response_should_contain(String) The supplied path does not exist [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with more than one path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with a wrong path # Blame.feature:26 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame wrongpath" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The supplied path does not exist" # DefaultStepDefinitions.the_response_should_contain(String) Building index for Points:pp at refs/heads/branch1Index updated in 784.0 μs. Building final tree...QuadTree created. Size: 3, time: 1.027 msIndex updated in 666.2 μs. Building final tree...QuadTree created. Size: 2, time: 588.9 μsIndex updated in 536.4 μs. Building final tree...QuadTree created. Size: 1, time: 646.7 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 431a3203 Building index for Points:pp at refs/heads/branch1Index updated in 784.0 μs. Building final tree...QuadTree created. Size: 3, time: 1.027 msIndex updated in 666.2 μs. Building final tree...QuadTree created. Size: 2, time: 588.9 μsIndex updated in 536.4 μs. Building final tree...QuadTree created. Size: 1, time: 646.7 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 431a3203 Building index for Points:pp at refs/heads/branch1Index updated in 784.0 μs. Building final tree...QuadTree created. Size: 3, time: 1.027 msIndex updated in 666.2 μs. Building final tree...QuadTree created. Size: 2, time: 588.9 μsIndex updated in 536.4 μs. Building final tree...QuadTree created. Size: 1, time: 646.7 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 431a3203 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with the full history and extra attributes': Using URIBuilder DefaultTestRepoURIBuilder A Points/Points.1A spStringProp1_1A ip1000A ppPOINT (1 1) Scenario: Show diff between working tree and index, describing a removed element # DiffTree.feature:92 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I remove a feature # DefaultStepDefinitions.I_remove_a_feature() When I run the command "diff-tree WORK_HEAD STAGE_HEAD --describe" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 7 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Feature: "apply" command In order to modify feature As a Geogig User I want to insert a feature according to a definition in a file [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Insert from a file': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create an index with the full history # CreateIndex.feature:96 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "index create --tree Points --index-history" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Only one path allowed [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with no arguments': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with more than one path # Blame.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame Point/Points.1 Points/Points.2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Only one path allowed" # DefaultStepDefinitions.the_response_should_contain(String) 1 features successfully inserted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to insert a feature passing a wrong file': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Insert from a file # Insert.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I have an insert file # DefaultStepDefinitions.I_have_an_insert_file() When I run the command "insert -f ${currentdir}/insert" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1 features successfully inserted" # DefaultStepDefinitions.the_response_should_contain(String) Building index for Points:pp at refs/heads/branch1Index updated in 1.188 ms. Building final tree...QuadTree created. Size: 3, time: 989.1 μsIndex updated in 1.058 ms. Building final tree...QuadTree created. Size: 2, time: 863.6 μsIndex updated in 589.4 μs. Building final tree...QuadTree created. Size: 1, time: 779.0 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 3867691f Building index for Points:pp at refs/heads/branch1Index updated in 1.188 ms. Building final tree...QuadTree created. Size: 3, time: 989.1 μsIndex updated in 1.058 ms. Building final tree...QuadTree created. Size: 2, time: 863.6 μsIndex updated in 589.4 μs. Building final tree...QuadTree created. Size: 1, time: 779.0 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 3867691f Building index for Points:pp at refs/heads/branch1Index updated in 1.188 ms. Building final tree...QuadTree created. Size: 3, time: 989.1 μsIndex updated in 1.058 ms. Building final tree...QuadTree created. Size: 2, time: 863.6 μsIndex updated in 589.4 μs. Building final tree...QuadTree created. Size: 1, time: 779.0 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex created successfully: 3867691f A path must be specified [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to run blame with a feature type': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index without specifying a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with no arguments # Blame.feature:38 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A path must be specified" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to create an index with the full history and extra attributes # CreateIndex.feature:130 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "index create --tree Points --extra-attributes sp,ip --index-history" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch2:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch2:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch1:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Insert file cannot be found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to insert a feature in a tree that does not exist in the repo': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to insert a feature passing a wrong file # Insert.feature:13 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I have an insert file # DefaultStepDefinitions.I_have_an_insert_file() When I run the command "insert -f wrong.file" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Insert file cannot be found" # DefaultStepDefinitions.the_response_should_contain(String) The parent tree does not exist: Points Scenario: Try to insert a feature in a tree that does not exist in the repo # Insert.feature:20 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have an insert file # DefaultStepDefinitions.I_have_an_insert_file() When I run the command "insert -f ${currentdir}/insert" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The parent tree does not exist: Points" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "ls-tree" command In order to know what is in a repository As a Geogig User I want to list the feature in the working tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of features in the root tree recursively': Using URIBuilder DefaultTestRepoURIBuilder The supplied path does not resolve to a feature Expected a value after parameter --tree. See geogig --help [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to reset from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a full history index on an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to run blame with a feature type # Blame.feature:44 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "blame Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The supplied path does not resolve to a feature" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to create an index without specifying a tree # CreateIndex.feature:164 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Expected a value after parameter" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit1570187911681257026/data Scenario: Try to reset from an empty directory # Blame.feature:50 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "blame" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "branch" command In order to work separately from the main history As a Geogig User I want to be able to create, delete and list branches [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch while not in a repository': Using URIBuilder DefaultTestRepoURIBuilder Can't find feature tree 'Points' Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit166567092732347996/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a full history index on a repository with a single commit': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a branch while not in a repository': Using URIBuilder DefaultTestRepoURIBuilder Points/Points.2Points/Points.1Lines/Lines.1 Points/Points.2Points/Points.1Lines/Lines.1 Scenario: Try to create a full history index on an empty repository # CreateIndex.feature:170 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Scenario: Try to create a branch while not in a repository # Branch.feature:6 Then the response should contain "Can't find feature tree" # DefaultStepDefinitions.the_response_should_contain(String) Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() And I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit2636227369013584551/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of features in the root tree recursively including trees': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list branches while not in a geogig repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a branch while not in a repository # Branch.feature:11 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() And I run the command "branch --delete newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Show a list of features in the root tree recursively # LsTree.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree -r" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit7572818487546356208/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch without having made any commits': Using URIBuilder DefaultTestRepoURIBuilder Building index for Points:pp at refs/heads/masterIndex updated in 665.0 μs. Building final tree...QuadTree created. Size: 1, time: 780.6 μsIndex created successfully: 431a3203 Building index for Points:pp at refs/heads/masterIndex updated in 665.0 μs. Building final tree...QuadTree created. Size: 1, time: 780.6 μsIndex created successfully: 431a3203 Scenario: Try to list branches while not in a geogig repository # Branch.feature:17 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() And I run the command "branch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index with an incorrect extra attribute': Using URIBuilder DefaultTestRepoURIBuilder HEAD has no commits yet, branch cannot be created. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch with a non-existent start point': Using URIBuilder DefaultTestRepoURIBuilder 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 010b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points/Points.1 1.0;1.0;1.0;1.049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 049c3a20f921b04c714609852619d29ffa7869cc9 feature ad4066da4aadf58568d63ae52bbcaba62ce02cb8 Lines/Lines.1 1.0;2.0;1.0;2.0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 010b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points/Points.1 1.0;1.0;1.0;1.049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 049c3a20f921b04c714609852619d29ffa7869cc9 feature ad4066da4aadf58568d63ae52bbcaba62ce02cb8 Lines/Lines.1 1.0;2.0;1.0;2.0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 010b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points/Points.1 1.0;1.0;1.0;1.049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 049c3a20f921b04c714609852619d29ffa7869cc9 feature ad4066da4aadf58568d63ae52bbcaba62ce02cb8 Lines/Lines.1 1.0;2.0;1.0;2.0 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of features in the root tree non-recursively': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a full history index on a repository with a single commit # CreateIndex.feature:175 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m "point1 added" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "index create --tree Points --index-history" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Scenario: Try to create a branch without having made any commits # Branch.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "no commits yet, branch cannot be created." # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Show a list of features in the root tree recursively including trees # LsTree.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree -r -t -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "tree" # DefaultStepDefinitions.the_response_should_contain(String) PointsLines PointsLines [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a verbose list of trees in the root tree non-recursively': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a list of features in the root tree non-recursively # LsTree.feature:25 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "tree" # DefaultStepDefinitions.the_response_should_not_contain(String) Then the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Points" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) FeatureType Points does not define attribute 'invalidAttrib' nonexistent does not resolve to a repository object [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create an index on a tree with an empty extra-attribute param': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch off of master': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a branch with a non-existent start point # Branch.feature:29 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "branch newBranch nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nonexistent does not resolve to a repository object" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to create an index with an incorrect extra attribute # CreateIndex.feature:190 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes invalidAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "FeatureType Points does not define attribute" # DefaultStepDefinitions.the_response_should_contain(String) 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a verbose list of features in the root tree recursively, not including children': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a verbose list of trees in the root tree non-recursively # LsTree.feature:38 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree -t -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "tree" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points 1.0;2.0;1.0;2.0 2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines 1.0;2.0;1.0;2.0 1 0" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_not_contain(String) 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a verbose list of features in a path': Using URIBuilder DefaultTestRepoURIBuilder Expected a value after parameter --extra-attributes. See geogig --help Scenario: Show a verbose list of features in the root tree recursively, not including children # LsTree.feature:50 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree -d -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "tree" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Points 1.0" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines 1.0" # DefaultStepDefinitions.the_response_should_contain(String) Created branch refs/heads/newBranch Scenario: Try to create an index on a tree with an empty extra-attribute param # CreateIndex.feature:196 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Expected a value after parameter" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "index drop" command In order to remove an unnecessary index As a Geogig User I want to drop an index from the repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to drop an index': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout a branch as soon as it is created': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a branch off of master # Branch.feature:35 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "branch newBranch master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created branch refs/heads/newBranch" # DefaultStepDefinitions.the_response_should_contain(String) 10b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points.1 1.0;1.0;1.0;1.0 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of features using STAGE_HEAD as non-recursively, including trees': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a verbose list of features in a path # LsTree.feature:61 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree -v Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "tree" # DefaultStepDefinitions.the_response_should_not_contain(String) Then the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 10b5dc054390266e0cc7b59ef34f543441f071e0 tree c12a1dd0b580fe4d5c7f39bc96a4895644a7c423 Points 1.0;2.0;1.0;2.0 2 049c3a20f921b04c714609852619d29ffa7869cc9 tree ccfecc70225e7e47ce4e9c5b4e2aa7f6a0a58375 Lines 1.0;2.0;1.0;2.0 1 0 1% Index updated in 2.563 ms. Building final tree...QuadTree created. Size: 3, time: 4.311 msIndex created successfully: ee21fc3d [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of trees using HEAD as origin, recursively': Using URIBuilder DefaultTestRepoURIBuilder master* newBranch Index successfully dropped. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch off of master while not on master': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to drop a nonexistent index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a list of features using STAGE_HEAD as non-recursively, including trees # LsTree.feature:71 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "ls-tree STAGE_HEAD -t -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "tree" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points 1.0;2.0;1.0;2.0 2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines 1.0;2.0;1.0;2.0 1 0" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: Try to checkout a branch as soon as it is created # Branch.feature:41 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "branch -c newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "branch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "* newBranch" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to drop an index # DropIndex.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index drop --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index successfully dropped." # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) PointsLines PointsLines [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a verbose list of features using HEAD as origin, recursively': Using URIBuilder DefaultTestRepoURIBuilder Commit: 45424b0bfb00ba05a4a5e39edc629815d1f02fbdAuthor: John Doe Date: (just now) 2018-09-30 20:03:12 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a branch with the same name as an existing branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a list of trees using HEAD as origin, recursively # LsTree.feature:82 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "ls-tree HEAD -t" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "Lines" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: Try to create a branch off of master while not on master # Branch.feature:48 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch -c newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit2" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "branch -c newestBranch master" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|newBranch}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) Can't find feature tree 'nonexistent' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to drop the index without specifying a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to drop a nonexistent index # DropIndex.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index drop --tree nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree 'nonexistent'" # DefaultStepDefinitions.the_response_should_contain(String) 10b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points/Points.1 1.0;1.0;1.0;1.049c3a20f921b04c714609852619d29ffa7869cc9 feature ad4066da4aadf58568d63ae52bbcaba62ce02cb8 Lines/Lines.1 1.0;2.0;1.0;2.0 10b5dc054390266e0cc7b59ef34f543441f071e0 feature 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.2 2.0;2.0;2.0;2.010b5dc054390266e0cc7b59ef34f543441f071e0 feature a47ca38e5c3e92c94dec9e8ea597c642003ec878 Points/Points.1 1.0;1.0;1.0;1.049c3a20f921b04c714609852619d29ffa7869cc9 feature ad4066da4aadf58568d63ae52bbcaba62ce02cb8 Lines/Lines.1 1.0;2.0;1.0;2.0 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list of features in a path, using HEAD as origin': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a verbose list of features using HEAD as origin, recursively # LsTree.feature:93 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "ls-tree HEAD -r -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) Then the response should contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@LinesTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) Then the response should not contain "tree" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Index updated in 1.605 ms. Building final tree...QuadTree created. Size: 3, time: 14.96 msIndex created successfully: eec6e43c The following option is required: --tree . See geogig --help Points/Points.2Points/Points.1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show a list from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to drop the index for a non-existent attribute': Using URIBuilder DefaultTestRepoURIBuilder A branch named 'branch1' already exists. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list local branches': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show a list of features in a path, using HEAD as origin # LsTree.feature:107 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() Scenario: I try to drop the index without specifying a tree # DropIndex.feature:29 And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "ls-tree HEAD:Points" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "index drop" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "The following option is required: --tree" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should not contain "Lines.1" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Run ls-tree on an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a branch with the same name as an existing branch # Branch.feature:62 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A branch named 'branch1' already exists." # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Show a list from an empty directory # LsTree.feature:117 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "ls-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Run ls-tree on an empty repository # LsTree.feature:123 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "ls-tree -r" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) Feature: "merge-base" command In order to know the common parent of 2 commits As a Geogig User I want to see the common ancestor of 2 commits before a merge [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to view the common parent of 2 commits': Using URIBuilder DefaultTestRepoURIBuilder 1% Index updated in 11.98 ms. Building final tree...QuadTree created. Size: 3, time: 1.801 msIndex created successfully: eec6e43c [main] ERROR org.locationtech.geogig.cli.GeogigCLI - A matching index could not be found. java.lang.IllegalStateException: A matching index could not be found. at com.google.common.base.Preconditions.checkState(Preconditions.java:504) at org.locationtech.geogig.porcelain.index.DropIndexOp._call(DropIndexOp.java:62) at org.locationtech.geogig.porcelain.index.DropIndexOp._call(DropIndexOp.java:25) at org.locationtech.geogig.repository.AbstractGeoGigOp.call(AbstractGeoGigOp.java:169) at org.locationtech.geogig.cli.porcelain.index.DropIndex.runInternal(DropIndex.java:48) at org.locationtech.geogig.cli.AbstractCommand.run(AbstractCommand.java:67) at org.locationtech.geogig.cli.GeogigCLI.executeInternal(GeogigCLI.java:531) at org.locationtech.geogig.cli.GeogigCLI.execute(GeogigCLI.java:367) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:159) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:153) at org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions.I_run_the_command_X(DefaultStepDefinitions.java:213) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at cucumber.runtime.Utils$1.call(Utils.java:37) at cucumber.runtime.Timeout.timeout(Timeout.java:13) at cucumber.runtime.Utils.invoke(Utils.java:31) at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at cucumber.runtime.Runtime.runStep(Runtime.java:299) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.api.junit.Cucumber.run(Cucumber.java:98) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) A matching index could not be found. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to drop an index in an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to drop the index for a non-existent attribute # DropIndex.feature:37 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index drop --tree Points --attribute fakeAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A matching index could not be found." # DefaultStepDefinitions.the_response_should_contain(String) Can't find feature tree 'Points' Scenario: I try to drop an index in an empty repository # DropIndex.feature:45 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "index drop --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree 'Points'" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "index list" command In order to see what indexes are available on the repository As a Geogig User I want to list all of the indexes [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list indexes': Using URIBuilder DefaultTestRepoURIBuilder branch1 branch2* master branch1 branch2* master branch1 branch2* master [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list local branches with verbose option': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list local branches # Branch.feature:69 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "* master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch2" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to view the common parent with too many arguments': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to view the common parent of 2 commits # MergeBase.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "merge-base HEAD HEAD~2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And it should exit with zero exit code # DefaultStepDefinitions.it_should_exit_with_zero_exit_code() 1% Index updated in 14.65 ms. Building final tree...QuadTree created. Size: 3, time: 1.063 msIndex created successfully: eec6e43c Index updated in 1.257 ms. Building final tree...QuadTree created. Size: 3, time: 1.038 msIndex created successfully: 7f3bbe6c Index [f705f84a5374863a56266eb58bed982f7bc84d62] Feature Type Tree: Lines Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [sp]Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] Index [f705f84a5374863a56266eb58bed982f7bc84d62] Feature Type Tree: Lines Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [sp]Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] Index [f705f84a5374863a56266eb58bed982f7bc84d62] Feature Type Tree: Lines Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [sp]Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] Index [f705f84a5374863a56266eb58bed982f7bc84d62] Feature Type Tree: Lines Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [sp]Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list indexes in a specific feature type tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list indexes # ListIndexes.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index create --tree Lines --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Lines" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "[sp]" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain index info ID for tree "Lines" # DefaultStepDefinitions.the_response_contains_indexInfoID(String) And the response should contain "Points" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "[ip]" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain index info ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexInfoID(String) branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 branch1 0f6e3276 Commit3 branch2 d98743c8 Commit4* master 4944a076 Commit5 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list local branches with verbose option # Branch.feature:77 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "* master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) Two commit references must be provided [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to view the parent using a bad left commit reference': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to view the common parent with too many arguments # MergeBase.feature:14 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "merge-base commit1 commit2 commit3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Two commit references must be provided" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 1.161 ms. Building final tree...QuadTree created. Size: 3, time: 1.171 msIndex created successfully: eec6e43c Index updated in 856.5 μs. Building final tree...QuadTree created. Size: 3, time: 1.064 msIndex created successfully: 7f3bbe6c Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] Index [ad7a7bb099e837108d7f5aabfc4cb8d5a2d601b9] Feature Type Tree: Points Attribute: pp Index Type: QUADTREE Quad Tree Max Bounds: Env[-90.0 : 90.0, -180.0 : 180.0] Extra Attributes: [ip] [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list the indexes without specifying a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list indexes in a specific feature type tree # ListIndexes.feature:22 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index create --tree Lines --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index list --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Lines" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "[sp]" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Points" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "[ip]" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain index info ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexInfoID(String) Deleted branch 'branch1'. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a branch without specifying a name': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a branch # Branch.feature:88 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --delete branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted branch 'branch1'." # DefaultStepDefinitions.the_response_should_contain(String) badCommit does not resolve to any object. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to view the parent using a bad right commit reference': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 12.35 ms. Building final tree...QuadTree created. Size: 3, time: 1.220 msIndex created successfully: eec6e43c Expected a value after parameter --tree. See geogig --help Scenario: I try to view the parent using a bad left commit reference # MergeBase.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "merge-base badCommit HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "badCommit does not resolve to any object" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list the indexes, specifying a non-existent tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to list the indexes without specifying a tree # ListIndexes.feature:36 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index list --tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Expected a value after parameter --tree" # DefaultStepDefinitions.the_response_should_contain(String) no name specified for deletion [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete multiple branches': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a branch without specifying a name # Branch.feature:94 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --delete" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "no name specified for deletion" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Index updated in 1.173 ms. Building final tree...QuadTree created. Size: 3, time: 1.070 msIndex created successfully: eec6e43c [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list the indexes when there are none': Using URIBuilder DefaultTestRepoURIBuilder badCommit does not resolve to any object. Scenario: I try to list the indexes, specifying a non-existent tree # ListIndexes.feature:44 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index list --tree fakeTree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I try to view the parent using a bad right commit reference # MergeBase.feature:28 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "merge-base HEAD badCommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "badCommit does not resolve to any object" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "rebuild-graph" command In order to fix a geogig repository As a Geogig User I want to rebuild the graph [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the graph': Using URIBuilder DefaultTestRepoURIBuilder Deleted branch 'branch1'.Deleted branch 'branch2'. Deleted branch 'branch1'.Deleted branch 'branch2'. * master [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete the branch you are on': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list the indexes in an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete multiple branches # Branch.feature:101 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --delete branch1 branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted branch 'branch1'" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Deleted branch 'branch2'" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "branch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "* master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "branch1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "branch2" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: I try to list the indexes when there are none # ListIndexes.feature:52 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "" # DefaultStepDefinitions.the_response_should_contain(String) The following graph elements (commits) were incomplete or missing and have been fixed:761950c2fd1d71cbc91a86df40dc9d9af0b94720a284b6f6c953be2779904033dd437b8b44b90bfe28a56b4d0db38e0288df63fc14fb6a110f41955e [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the graph with quiet argument': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to list the indexes in an empty repository # ListIndexes.feature:58 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "index list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "index rebuild" command In order to improve query performance on old commits As a Geogig User I want to build indexes on all commits in the history of a feature tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebuild an index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to rebuild the graph # RebuildGraph.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And the repository has a truncated graph database # DefaultStepDefinitions.the_repository_has_a_truncated_graph_database() When I run the command "rebuild-graph" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The following graph elements (commits) were incomplete or missing and have been fixed:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 4 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) 3 graph elements (commits) were fixed. Cannot delete the branch you are on [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the graph when it is not broken': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to rebuild the graph with quiet argument # RebuildGraph.feature:14 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And the repository has a truncated graph database # DefaultStepDefinitions.the_repository_has_a_truncated_graph_database() When I run the command "rebuild-graph --quiet" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 graph elements (commits) were fixed." # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to delete the branch you are on # Branch.feature:112 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "checkout branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch --delete branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot delete the branch you are on" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Index updated in 713.8 μs. Building final tree...QuadTree created. Size: 1, time: 1.185 msIndex created successfully: 431a3203 Building index for Points:pp at refs/heads/branch1Index updated in 526.5 μs. Building final tree...QuadTree created. Size: 3, time: 650.7 μsIndex updated in 519.0 μs. Building final tree...QuadTree created. Size: 2, time: 553.1 μsIndex updated in 437.3 μs. Building final tree...QuadTree created. Size: 1, time: 542.0 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/master3 trees were rebuilt. Building index for Points:pp at refs/heads/branch1Index updated in 526.5 μs. Building final tree...QuadTree created. Size: 3, time: 650.7 μsIndex updated in 519.0 μs. Building final tree...QuadTree created. Size: 2, time: 553.1 μsIndex updated in 437.3 μs. Building final tree...QuadTree created. Size: 1, time: 542.0 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/master3 trees were rebuilt. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebuild a nonexistent index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebuild an index # RebuildIndex.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "branch1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) When I run the command "index rebuild --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 trees were rebuilt." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) No missing or incomplete graph elements (commits) were found. Scenario: I try to rebuild the graph when it is not broken # RebuildGraph.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "rebuild-graph" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No missing or incomplete graph elements" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "rev-list" command In order to know the history of commits on a repository As a Geogig User I want to see a list of commits [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show only a range of commits.': Using URIBuilder DefaultTestRepoURIBuilder renamed branch 'branch1' to 'superAwesomeBranch' branch2 6b823552 Commit4* master 19ed5c2e Commit5 superAwesomeBranch 9315f665 Commit3 branch2 6b823552 Commit4* master 19ed5c2e Commit5 superAwesomeBranch 9315f665 Commit3 branch2 6b823552 Commit4* master 19ed5c2e Commit5 superAwesomeBranch 9315f665 Commit3 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch that you are on': Using URIBuilder DefaultTestRepoURIBuilder [main] ERROR org.locationtech.geogig.cli.GeogigCLI - A matching index could not be found. java.lang.IllegalStateException: A matching index could not be found. at com.google.common.base.Preconditions.checkState(Preconditions.java:504) at org.locationtech.geogig.plumbing.index.BuildFullHistoryIndexOp._call(BuildFullHistoryIndexOp.java:85) at org.locationtech.geogig.plumbing.index.BuildFullHistoryIndexOp._call(BuildFullHistoryIndexOp.java:40) at org.locationtech.geogig.repository.AbstractGeoGigOp.call(AbstractGeoGigOp.java:169) at org.locationtech.geogig.cli.porcelain.index.RebuildIndex.runInternal(RebuildIndex.java:52) at org.locationtech.geogig.cli.AbstractCommand.run(AbstractCommand.java:67) at org.locationtech.geogig.cli.GeogigCLI.executeInternal(GeogigCLI.java:531) at org.locationtech.geogig.cli.GeogigCLI.execute(GeogigCLI.java:367) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:159) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:153) at org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions.I_run_the_command_X(DefaultStepDefinitions.java:213) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at cucumber.runtime.Utils$1.call(Utils.java:37) at cucumber.runtime.Timeout.timeout(Timeout.java:13) at cucumber.runtime.Utils.invoke(Utils.java:31) at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at cucumber.runtime.Runtime.runStep(Runtime.java:299) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.api.junit.Cucumber.run(Cucumber.java:98) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) A matching index could not be found. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I rebuild the index for an attribute on a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rename a branch # Branch.feature:120 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --rename branch1 superAwesomeBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "renamed branch 'branch1' to 'superAwesomeBranch'" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "branch -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "* master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "superAwesomeBranch" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "branch1" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: Try to rebuild a nonexistent index # RebuildIndex.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index rebuild --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A matching index could not be found." # DefaultStepDefinitions.the_response_should_contain(String) commit 8d3a867553cea530826c9706191b6a886b2f44d3tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent a429a35397d4ae0c2763f050fe3269861cef1f8dauthor John Doe JohnDoe@example.com 1538348617454 -14400000committer John Doe JohnDoe@example.com 1538348617455 -14400000message Commit3commit a429a35397d4ae0c2763f050fe3269861cef1f8dtree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 5d9311b56deb74505dddfee1dd0199a98abc4fc5author John Doe JohnDoe@example.com 1538348617108 -14400000committer John Doe JohnDoe@example.com 1538348617109 -14400000message Commit2 commit 8d3a867553cea530826c9706191b6a886b2f44d3tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent a429a35397d4ae0c2763f050fe3269861cef1f8dauthor John Doe JohnDoe@example.com 1538348617454 -14400000committer John Doe JohnDoe@example.com 1538348617455 -14400000message Commit3commit a429a35397d4ae0c2763f050fe3269861cef1f8dtree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 5d9311b56deb74505dddfee1dd0199a98abc4fc5author John Doe JohnDoe@example.com 1538348617108 -14400000committer John Doe JohnDoe@example.com 1538348617109 -14400000message Commit2 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a range of commits and provide additional commits.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show only a range of commits. # RevList.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD~3..HEAD~1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain " Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 1.079 ms. Building final tree...QuadTree created. Size: 1, time: 811.0 μsIndex created successfully: a11db27d renamed branch 'branch1' to 'superAwesomeBranch' Building index for Points:pp at refs/heads/branch1Index updated in 1.098 ms. Building final tree...QuadTree created. Size: 3, time: 1.006 msIndex updated in 628.3 μs. Building final tree...QuadTree created. Size: 2, time: 976.6 μsIndex updated in 682.0 μs. Building final tree...QuadTree created. Size: 1, time: 912.9 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/master3 trees were rebuilt. Building index for Points:pp at refs/heads/branch1Index updated in 1.098 ms. Building final tree...QuadTree created. Size: 3, time: 1.006 msIndex updated in 628.3 μs. Building final tree...QuadTree created. Size: 2, time: 976.6 μsIndex updated in 682.0 μs. Building final tree...QuadTree created. Size: 1, time: 912.9 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/master3 trees were rebuilt. branch2 32fa09ac Commit4 master b77fee8e Commit5* superAwesomeBranch d085f492 Commit3 branch2 32fa09ac Commit4 master b77fee8e Commit5* superAwesomeBranch d085f492 Commit3 branch2 32fa09ac Commit4 master b77fee8e Commit5* superAwesomeBranch d085f492 Commit3 Only one value accepted when using .. syntax [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch that you are on to a name that already exists': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with a single commit.': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the index for a non-existent attribute on a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rename a branch that you are on # Branch.feature:131 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "checkout branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch --rename superAwesomeBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "renamed branch 'branch1' to 'superAwesomeBranch'" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "branch -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "* superAwesomeBranch" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "branch1" # DefaultStepDefinitions.the_response_should_not_contain(String) Scenario: Try to show a range of commits and provide additional commits. # RevList.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD~3..HEAD~1 HEAD~2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Only one value accepted when using .. syntax" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I rebuild the index for an attribute on a tree # RebuildIndex.feature:52 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() And I run the command "index create --tree Points --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "branch1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) When I run the command "index rebuild --tree Points -a pp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 trees were rebuilt." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch2:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) 100.0 [d201ef54e7a55ac7177c5df3188e268b8eed1836] TestCommitCommitted, counting objects...3 features added, 0 changed, 0 deleted. commit d201ef54e7a55ac7177c5df3188e268b8eed1836tree 09f2d0d220d1cbe15c82813017606a5ce5926d6dparentauthor John Doe JohnDoe@example.com 1538348621219 -14400000committer John Doe JohnDoe@example.com 1538348621220 -14400000message TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with several commits.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository with a single commit. # RevList.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "rev-list HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "TestCommit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextContains(String) Index updated in 510.1 μs. Building final tree...QuadTree created. Size: 3, time: 751.0 μsIndex created successfully: ee21fc3d [main] ERROR org.locationtech.geogig.cli.GeogigCLI - A matching index could not be found. java.lang.IllegalStateException: A matching index could not be found. at com.google.common.base.Preconditions.checkState(Preconditions.java:504) at org.locationtech.geogig.plumbing.index.BuildFullHistoryIndexOp._call(BuildFullHistoryIndexOp.java:85) at org.locationtech.geogig.plumbing.index.BuildFullHistoryIndexOp._call(BuildFullHistoryIndexOp.java:40) at org.locationtech.geogig.repository.AbstractGeoGigOp.call(AbstractGeoGigOp.java:169) at org.locationtech.geogig.cli.porcelain.index.RebuildIndex.runInternal(RebuildIndex.java:52) at org.locationtech.geogig.cli.AbstractCommand.run(AbstractCommand.java:67) at org.locationtech.geogig.cli.GeogigCLI.executeInternal(GeogigCLI.java:531) at org.locationtech.geogig.cli.GeogigCLI.execute(GeogigCLI.java:367) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:159) at org.locationtech.geogig.cli.test.functional.CLIContext.runCommand(CLIContext.java:153) at org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions.I_run_the_command_X(DefaultStepDefinitions.java:213) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at cucumber.runtime.Utils$1.call(Utils.java:37) at cucumber.runtime.Timeout.timeout(Timeout.java:13) at cucumber.runtime.Utils.invoke(Utils.java:31) at cucumber.runtime.java.JavaStepDefinition.execute(JavaStepDefinition.java:38) at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:37) at cucumber.runtime.Runtime.runStep(Runtime.java:299) at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44) at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39) at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:44) at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63) at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93) at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at cucumber.api.junit.Cucumber.run(Cucumber.java:98) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) A matching index could not be found. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the index for an attribute on a non-existent tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to rebuild the index for a non-existent attribute on a tree # RebuildIndex.feature:92 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index rebuild --tree Points -a fakeAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A matching index could not be found." # DefaultStepDefinitions.the_response_should_contain(String) Cannot rename branch to 'branch2' because a branch by that name already exists. Use force option to override this. renamed branch 'branch1' to 'branch2' * branch2 4583a8b9 Commit3 master 2be3c800 Commit5 * branch2 4583a8b9 Commit3 master 2be3c800 Commit5 * branch2 4583a8b9 Commit3 master 2be3c800 Commit5 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch without being in a repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rename a branch that you are on to a name that already exists # Branch.feature:143 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "checkout branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch --rename branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot rename branch to 'branch2' because a branch by that name already exists" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "branch --rename --force branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "renamed branch 'branch1' to 'branch2'" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "branch -v" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "* branch2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "branch1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit7909014246851224096/data commit 81d28eff3fc6af15cc376c29ac2aa7ac32b3bedctree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent c83e4789ca6ba9bf71be709c60b14156ceec1cffauthor John Doe JohnDoe@example.com 1538348623322 -14400000committer John Doe JohnDoe@example.com 1538348623323 -14400000message Commit4commit c83e4789ca6ba9bf71be709c60b14156ceec1cfftree 484d4f13baf8a3197a114ae1ccea12127c570f39parent d367bf05ff79514da657fbbfe44e39dfd69a03d0author John Doe JohnDoe@example.com 1538348622983 -14400000committer John Doe JohnDoe@example.com 1538348622984 -14400000message Commit3commit d367bf05ff79514da657fbbfe44e39dfd69a03d0tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent e5544a343f2fb99f384b5432d95a02eae8d3ecf4author John Doe JohnDoe@example.com 1538348622630 -14400000committer John Doe JohnDoe@example.com 1538348622631 -14400000message Commit2commit e5544a343f2fb99f384b5432d95a02eae8d3ecf4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348622303 -14400000committer John Doe JohnDoe@example.com 1538348622304 -14400000message Commit1 commit 81d28eff3fc6af15cc376c29ac2aa7ac32b3bedctree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent c83e4789ca6ba9bf71be709c60b14156ceec1cffauthor John Doe JohnDoe@example.com 1538348623322 -14400000committer John Doe JohnDoe@example.com 1538348623323 -14400000message Commit4commit c83e4789ca6ba9bf71be709c60b14156ceec1cfftree 484d4f13baf8a3197a114ae1ccea12127c570f39parent d367bf05ff79514da657fbbfe44e39dfd69a03d0author John Doe JohnDoe@example.com 1538348622983 -14400000committer John Doe JohnDoe@example.com 1538348622984 -14400000message Commit3commit d367bf05ff79514da657fbbfe44e39dfd69a03d0tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent e5544a343f2fb99f384b5432d95a02eae8d3ecf4author John Doe JohnDoe@example.com 1538348622630 -14400000committer John Doe JohnDoe@example.com 1538348622631 -14400000message Commit2commit e5544a343f2fb99f384b5432d95a02eae8d3ecf4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348622303 -14400000committer John Doe JohnDoe@example.com 1538348622304 -14400000message Commit1 commit 81d28eff3fc6af15cc376c29ac2aa7ac32b3bedctree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent c83e4789ca6ba9bf71be709c60b14156ceec1cffauthor John Doe JohnDoe@example.com 1538348623322 -14400000committer John Doe JohnDoe@example.com 1538348623323 -14400000message Commit4commit c83e4789ca6ba9bf71be709c60b14156ceec1cfftree 484d4f13baf8a3197a114ae1ccea12127c570f39parent d367bf05ff79514da657fbbfe44e39dfd69a03d0author John Doe JohnDoe@example.com 1538348622983 -14400000committer John Doe JohnDoe@example.com 1538348622984 -14400000message Commit3commit d367bf05ff79514da657fbbfe44e39dfd69a03d0tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent e5544a343f2fb99f384b5432d95a02eae8d3ecf4author John Doe JohnDoe@example.com 1538348622630 -14400000committer John Doe JohnDoe@example.com 1538348622631 -14400000message Commit2commit e5544a343f2fb99f384b5432d95a02eae8d3ecf4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348622303 -14400000committer John Doe JohnDoe@example.com 1538348622304 -14400000message Commit1 commit 81d28eff3fc6af15cc376c29ac2aa7ac32b3bedctree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent c83e4789ca6ba9bf71be709c60b14156ceec1cffauthor John Doe JohnDoe@example.com 1538348623322 -14400000committer John Doe JohnDoe@example.com 1538348623323 -14400000message Commit4commit c83e4789ca6ba9bf71be709c60b14156ceec1cfftree 484d4f13baf8a3197a114ae1ccea12127c570f39parent d367bf05ff79514da657fbbfe44e39dfd69a03d0author John Doe JohnDoe@example.com 1538348622983 -14400000committer John Doe JohnDoe@example.com 1538348622984 -14400000message Commit3commit d367bf05ff79514da657fbbfe44e39dfd69a03d0tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent e5544a343f2fb99f384b5432d95a02eae8d3ecf4author John Doe JohnDoe@example.com 1538348622630 -14400000committer John Doe JohnDoe@example.com 1538348622631 -14400000message Commit2commit e5544a343f2fb99f384b5432d95a02eae8d3ecf4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348622303 -14400000committer John Doe JohnDoe@example.com 1538348622304 -14400000message Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch without specifying a name': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of the commits that have changed the points feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rename a branch without being in a repository # Branch.feature:158 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "branch --rename branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to show a log of a repository with several commits. # RevList.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 712.9 μs. Building final tree...QuadTree created. Size: 3, time: 849.1 μsIndex created successfully: ee21fc3d Can't find feature tree 'wrongTree' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the index for a non-existent attribute and tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to rebuild the index for an attribute on a non-existent tree # RebuildIndex.feature:100 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index rebuild --tree wrongTree -a pp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree" # DefaultStepDefinitions.the_response_should_contain(String) commit b042e9a7b2520e6a65d726a5fc7f2d1404816f6dtree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent 39d355b283be840fc7c892a9b819ada9190d05caauthor John Doe JohnDoe@example.com 1538348625458 -14400000committer John Doe JohnDoe@example.com 1538348625459 -14400000message Commit4commit 293af87590ca4153f5e492366562dac0142bd42ctree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent eecd63472751ed3c756f09fe83c603ecfac0e5f2author John Doe JohnDoe@example.com 1538348624733 -14400000committer John Doe JohnDoe@example.com 1538348624734 -14400000message Commit2commit eecd63472751ed3c756f09fe83c603ecfac0e5f2tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348624370 -14400000committer John Doe JohnDoe@example.com 1538348624371 -14400000message Commit1 commit b042e9a7b2520e6a65d726a5fc7f2d1404816f6dtree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent 39d355b283be840fc7c892a9b819ada9190d05caauthor John Doe JohnDoe@example.com 1538348625458 -14400000committer John Doe JohnDoe@example.com 1538348625459 -14400000message Commit4commit 293af87590ca4153f5e492366562dac0142bd42ctree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent eecd63472751ed3c756f09fe83c603ecfac0e5f2author John Doe JohnDoe@example.com 1538348624733 -14400000committer John Doe JohnDoe@example.com 1538348624734 -14400000message Commit2commit eecd63472751ed3c756f09fe83c603ecfac0e5f2tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348624370 -14400000committer John Doe JohnDoe@example.com 1538348624371 -14400000message Commit1 commit b042e9a7b2520e6a65d726a5fc7f2d1404816f6dtree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent 39d355b283be840fc7c892a9b819ada9190d05caauthor John Doe JohnDoe@example.com 1538348625458 -14400000committer John Doe JohnDoe@example.com 1538348625459 -14400000message Commit4commit 293af87590ca4153f5e492366562dac0142bd42ctree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent eecd63472751ed3c756f09fe83c603ecfac0e5f2author John Doe JohnDoe@example.com 1538348624733 -14400000committer John Doe JohnDoe@example.com 1538348624734 -14400000message Commit2commit eecd63472751ed3c756f09fe83c603ecfac0e5f2tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348624370 -14400000committer John Doe JohnDoe@example.com 1538348624371 -14400000message Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show only the last two commits.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of the commits that have changed the points feature # RevList.feature:41 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD --path Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master~3}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) You must specify a branch to rename. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rename a branch to the same name': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 735.9 μs. Building final tree...QuadTree created. Size: 3, time: 779.3 μsIndex created successfully: ee21fc3d Can't find feature tree 'fakeTree' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the index without specifying the tree param': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rename a branch without specifying a name # Branch.feature:163 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --rename" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "You must specify a branch to rename." # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: I try to rebuild the index for a non-existent attribute and tree # RebuildIndex.feature:108 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index rebuild --tree fakeTree -a fakeAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree" # DefaultStepDefinitions.the_response_should_contain(String) commit 361d0d628bbea4f08f45ed05e1705b35d41050d4tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent 3c9e87ff968638a7ca4860ad41515af4940ea77eauthor John Doe JohnDoe@example.com 1538348627650 -14400000committer John Doe JohnDoe@example.com 1538348627651 -14400000message Commit4commit 3c9e87ff968638a7ca4860ad41515af4940ea77etree 484d4f13baf8a3197a114ae1ccea12127c570f39parent 407a692f6e9faeb6494d1e3b7c13dd37a4f20f85author John Doe JohnDoe@example.com 1538348627290 -14400000committer John Doe JohnDoe@example.com 1538348627291 -14400000message Commit3 commit 361d0d628bbea4f08f45ed05e1705b35d41050d4tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent 3c9e87ff968638a7ca4860ad41515af4940ea77eauthor John Doe JohnDoe@example.com 1538348627650 -14400000committer John Doe JohnDoe@example.com 1538348627651 -14400000message Commit4commit 3c9e87ff968638a7ca4860ad41515af4940ea77etree 484d4f13baf8a3197a114ae1ccea12127c570f39parent 407a692f6e9faeb6494d1e3b7c13dd37a4f20f85author John Doe JohnDoe@example.com 1538348627290 -14400000committer John Doe JohnDoe@example.com 1538348627291 -14400000message Commit3 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get commits list without starting commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show only the last two commits. # RevList.feature:51 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD -n 2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain " Commit1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master~2}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 716.6 μs. Building final tree...QuadTree created. Size: 3, time: 1.054 msIndex created successfully: ee21fc3d The following option is required: --tree . See geogig --help [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to rebuild the index on an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to rebuild the index without specifying the tree param # RebuildIndex.feature:116 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index rebuild" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The following option is required: --tree" # DefaultStepDefinitions.the_response_should_contain(String) Done Scenario: Try to rename a branch to the same name # Branch.feature:170 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "branch --rename branch1 branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Done" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "checkout" command In order to view an alternate version of the data As a Geogig User I want to be able to checkout out branches [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create a new branch and check it out': Using URIBuilder DefaultTestRepoURIBuilder Can't find feature tree 'Points' Scenario: I try to rebuild the index on an empty repository # RebuildIndex.feature:124 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "index rebuild --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "index update" command In order to modify the extra attributes stored on index trees As a Geogig User I want to update an index to change the extra attributes [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to update an index': Using URIBuilder DefaultTestRepoURIBuilder No starting commit provided [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the log, skipping the last 2 commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get commits list without starting commit # RevList.feature:61 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No starting commit provided" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Created branch refs/heads/newBranch Index updated in 930.7 μs. Building final tree...QuadTree created. Size: 3, time: 810.0 μsIndex created successfully: ee21fc3d # On branch newBranchnothing to commit (working directory clean) Index updated in 948.4 μs. Building final tree...QuadTree created. Size: 3, time: 936.6 μsIndex updated successfully: a6b65fce Index updated in 948.4 μs. Building final tree...QuadTree created. Size: 3, time: 936.6 μsIndex updated successfully: a6b65fce [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout something while not in a repository': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to update a nonexistent index': Using URIBuilder DefaultTestRepoURIBuilder commit e5a2dd5aac47ed254f2b476fecf6397a20914cc1tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent aa517cb40a85a6318e6e4f9ba8077a113edf622dauthor John Doe JohnDoe@example.com 1538348631198 -14400000committer John Doe JohnDoe@example.com 1538348631199 -14400000message Commit2commit aa517cb40a85a6318e6e4f9ba8077a113edf622dtree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348630841 -14400000committer John Doe JohnDoe@example.com 1538348630842 -14400000message Commit1 commit e5a2dd5aac47ed254f2b476fecf6397a20914cc1tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent aa517cb40a85a6318e6e4f9ba8077a113edf622dauthor John Doe JohnDoe@example.com 1538348631198 -14400000committer John Doe JohnDoe@example.com 1538348631199 -14400000message Commit2commit aa517cb40a85a6318e6e4f9ba8077a113edf622dtree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348630841 -14400000committer John Doe JohnDoe@example.com 1538348630842 -14400000message Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the list of commits, with the changes introduced by each one': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create a new branch and check it out # Checkout.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created branch refs/heads/newBranch" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "checkout newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "# On branch newBranch" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit3731403611605677118/data Scenario: Try to update an index # UpdateIndex.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index update --tree Points --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout without specifying a path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the log, skipping the last 2 commits # RevList.feature:68 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD --skip 2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master~3}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) Scenario: Try to checkout something while not in a repository # Checkout.feature:15 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "checkout noBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() no branch or paths specified [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout multiple things at once': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to checkout without specifying a path # Checkout.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "checkout" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "no branch or paths specified" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() too many arguments [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout a branch that doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Can't find feature tree 'nonexistent' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to update an index with the full history': Using URIBuilder DefaultTestRepoURIBuilder commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 commit dad52863e50cec239dee17d1b499e64f52f2ad65tree 2bf3de88efd4a040d012f865cf04cc1a132f6f32parent b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0author John Doe JohnDoe@example.com 1538348634183 -14400000committer John Doe JohnDoe@example.com 1538348634184 -14400000message Commit4changes Points/Points.1 a47ca38e5c3e92c94dec9e8ea597c642003ec878 b56c1dec5a164dc1e9b61e015882909ad3c4c501commit b914b903c850a8c9ad5f0748eb2b5b370ca4c3a0tree 484d4f13baf8a3197a114ae1ccea12127c570f39parent ceaf6d77589566179c12b49b886e9d99c5e52131author John Doe JohnDoe@example.com 1538348633821 -14400000committer John Doe JohnDoe@example.com 1538348633822 -14400000message Commit3changes Lines/Lines.2 0000000000000000000000000000000000000000 654caf7921a04e73848178e16ef50ac7a48595ca Lines/Lines.3 0000000000000000000000000000000000000000 e6345bb3b38cd4dbcab7bc6198f256db45d7a3cecommit ceaf6d77589566179c12b49b886e9d99c5e52131tree 3f0b1590201d146ce6a6d7334a5f9f52490f30c7parent 671eaaa22d345a9f561e11f410bc6c1d453700a4author John Doe JohnDoe@example.com 1538348633473 -14400000committer John Doe JohnDoe@example.com 1538348633474 -14400000message Commit2changes Points/Points.3 0000000000000000000000000000000000000000 5f5e58345cd7831c88e48ffa674541fd7703edc2 Lines/Lines.1 0000000000000000000000000000000000000000 ad4066da4aadf58568d63ae52bbcaba62ce02cb8commit 671eaaa22d345a9f561e11f410bc6c1d453700a4tree 44d0cb8ddf0e0940abcf80e629ee3926831ef67aparentauthor John Doe JohnDoe@example.com 1538348633142 -14400000committer John Doe JohnDoe@example.com 1538348633143 -14400000message Commit1changes Points/Points.2 0000000000000000000000000000000000000000 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points/Points.1 0000000000000000000000000000000000000000 a47ca38e5c3e92c94dec9e8ea597c642003ec878 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to checkout multiple things at once # Checkout.feature:27 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch noBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "checkout noBranch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "too many arguments" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Try to update a nonexistent index # UpdateIndex.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index update --tree nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree 'nonexistent'" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to show the list of commits, with the changes introduced by each one # RevList.feature:79 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "rev-list HEAD --changed" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to show a log from an empty directory # RevList.feature:91 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "rev-list HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Feature: "rev-parse" command As a Geogig User I want to determine if I am in a repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to print out the repository location"': Using URIBuilder DefaultTestRepoURIBuilder source 'noBranch' not found in repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to make a change but don't commit and then checkout a different branch without forcing': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to checkout a branch that doesn't exist # Checkout.feature:35 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "checkout noBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "'noBranch' not found in repository" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() /opt/public/hipp/ramdisk/geogig/junit8659555162132902996/data/localrepo/.geogig [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I check if I am in a repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to print out the repository location" # RevParse.feature:5 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "rev-parse --resolve-geogig-uri" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "localrepo" # DefaultStepDefinitions.the_response_should_contain(String) Created branch refs/heads/newBranch true [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to check if I'm in a repository when in an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Working tree and index are not clean. To overwrite local changes, use the --force option [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to make a change but don't commit and then checkout a different branch with forcing': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I check if I am in a repository # RevParse.feature:10 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "rev-parse --is-inside-work-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "true" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit2309504505638238897/data Scenario: Try to make a change but don't commit and then checkout a different branch without forcing # Checkout.feature:41 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created branch refs/heads/newBranch" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "checkout newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I run the command "checkout master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Working tree and index are not clean. To overwrite local changes, use the --force option" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to print the repository location when in an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 566.1 μs. Building final tree...QuadTree created. Size: 1, time: 746.3 μsIndex created successfully: 431a3203 Scenario: I try to check if I'm in a repository when in an empty directory # RevParse.feature:15 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "rev-parse --is-inside-work-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit5197524028519005819/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to use a refspec with another argument': Using URIBuilder DefaultTestRepoURIBuilder Building index for Points:pp at refs/heads/branch1Index updated in 957.7 μs. Building final tree...QuadTree created. Size: 3, time: 987.4 μsIndex updated in 672.0 μs. Building final tree...QuadTree created. Size: 2, time: 980.8 μsIndex updated in 543.1 μs. Building final tree...QuadTree created. Size: 1, time: 826.2 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex updated successfully: a11db27d Building index for Points:pp at refs/heads/branch1Index updated in 957.7 μs. Building final tree...QuadTree created. Size: 3, time: 987.4 μsIndex updated in 672.0 μs. Building final tree...QuadTree created. Size: 2, time: 980.8 μsIndex updated in 543.1 μs. Building final tree...QuadTree created. Size: 1, time: 826.2 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex updated successfully: a11db27d Building index for Points:pp at refs/heads/branch1Index updated in 957.7 μs. Building final tree...QuadTree created. Size: 3, time: 987.4 μsIndex updated in 672.0 μs. Building final tree...QuadTree created. Size: 2, time: 980.8 μsIndex updated in 543.1 μs. Building final tree...QuadTree created. Size: 1, time: 826.2 μsBuilding index for Points:pp at refs/heads/branch2Building index for Points:pp at refs/heads/masterIndex updated successfully: a11db27d Created branch refs/heads/newBranch Scenario: I try to print the repository location when in an empty directory # RevParse.feature:20 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "rev-parse --resolve-geogig-uri" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add attributes to an index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to update an index with the full history # UpdateIndex.feature:38 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "index create --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) And the repository's "branch2:Points" should not have an index # DefaultStepDefinitions.noIndexAtCommit(String) When I run the command "index update --tree Points --extra-attributes sp --index-history" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "HEAD~1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD~1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch2:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch2:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch2:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) And the repository's "branch1:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "branch1:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "branch1:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to make a change to a feature and revert back to an old version using path filtering': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to make a change but don't commit and then checkout a different branch with forcing # Checkout.feature:53 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created branch refs/heads/newBranch" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "checkout newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I run the command "checkout -f master" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "# Changes not staged for commit:" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "# On branch master" # DefaultStepDefinitions.the_response_should_contain(String) if refSpec is given, --resolve-geogig-uri or --is-inside-work-tree shall not be specified # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get rid of changes that I have made with path filtering with multiple paths': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to use a refspec with a bad ref': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to use a refspec with another argument # RevParse.feature:25 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "rev-parse STAGE_HEAD/Points.1 --is-inside-work-tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "if refSpec is given" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: Try to make a change to a feature and revert back to an old version using path filtering # Checkout.feature:66 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I run the command "checkout -p Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing to commit" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 980.1 μs. Building final tree...QuadTree created. Size: 3, time: 10.60 msIndex created successfully: eec6e43c Index updated in 764.4 μs. Building final tree...QuadTree created. Size: 3, time: 923.2 μsIndex updated successfully: b0f89179 Index updated in 764.4 μs. Building final tree...QuadTree created. Size: 3, time: 923.2 μsIndex updated successfully: b0f89179 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to replace attributes of an index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add attributes to an index # UpdateIndex.feature:82 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index update --tree Points --extra-attributes sp --add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to bring a feature from a different branch into this branch': Using URIBuilder DefaultTestRepoURIBuilder fatal: ambiguous argument 'bad_ref': unknown revision or path not in the working tree. Scenario: Try to get rid of changes that I have made with path filtering with multiple paths # Checkout.feature:75 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit2" # DefaultStepDefinitions.I_run_the_command_X(String) And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I have unstaged "lines2" # DefaultStepDefinitions.I_have_unstaged(String) And I run the command "checkout -p Lines Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing to commit" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to resolve the geogig uri when not in a repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to use a refspec with a bad ref # RevParse.feature:31 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "rev-parse bad_ref" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "fatal: ambiguous argument" # DefaultStepDefinitions.the_response_should_contain(String) Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit24445625482169285/data Scenario: I try to resolve the geogig uri when not in a repository # RevParse.feature:37 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "rev-parse" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "show-ref" command In order to know the branches in a geogig repository As a Geogig User I want list all references [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'List all references': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 1.044 ms. Building final tree...QuadTree created. Size: 3, time: 754.2 μsIndex created successfully: eec6e43c Index updated in 845.1 μs. Building final tree...QuadTree created. Size: 3, time: 795.7 μsIndex updated successfully: a6b65fce Index updated in 845.1 μs. Building final tree...QuadTree created. Size: 3, time: 795.7 μsIndex updated successfully: a6b65fce [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to update the bounds of an index': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to replace attributes of an index # UpdateIndex.feature:108 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index update --tree Points --extra-attributes sp --overwrite" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Lines# added Lines/Lines.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert using both --ours and --theirs': Using URIBuilder DefaultTestRepoURIBuilder efe0937e8f7ad16e96d5bb9c2e63cdff602c97c2 refs/heads/branch1d2f3816f32e1dc7e1c07ad99dece568dea6a9633 refs/heads/branch2b9e095d5df96331cdf44cbeda67710f4df25e9a9 refs/heads/master efe0937e8f7ad16e96d5bb9c2e63cdff602c97c2 refs/heads/branch1d2f3816f32e1dc7e1c07ad99dece568dea6a9633 refs/heads/branch2b9e095d5df96331cdf44cbeda67710f4df25e9a9 refs/heads/master efe0937e8f7ad16e96d5bb9c2e63cdff602c97c2 refs/heads/branch1d2f3816f32e1dc7e1c07ad99dece568dea6a9633 refs/heads/branch2b9e095d5df96331cdf44cbeda67710f4df25e9a9 refs/heads/master Index updated in 1.222 ms. Building final tree...QuadTree created. Size: 3, time: 827.3 μsIndex created successfully: a6b65fce Scenario: Try to bring a feature from a different branch into this branch # Checkout.feature:87 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Commit1" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit2" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit3" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "branch -c newBranch" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit4" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit5" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Commit6" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "checkout master" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "checkout newBranch -p Lines/Lines.1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "# Changes not staged for commit:" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 767.7 μs. Building final tree...QuadTree created. Size: 3, time: 803.0 μsIndex updated successfully: a6b65fce Index updated in 767.7 μs. Building final tree...QuadTree created. Size: 3, time: 803.0 μsIndex updated successfully: a6b65fce Scenario: List all references # ShowRef.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "show-ref" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 3 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "master" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "branch2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextContains(String) Feature: "verify-patch" command In order to ensure I have a valid patch As a Geogig User I want to verify the patch [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to verify a patch without specifying a file': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to update the bounds of an index with incorrect bounds parameter': Using URIBuilder DefaultTestRepoURIBuilder Cannot use both --ours and --theirs. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert a feature where the version you want doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to update the bounds of an index # UpdateIndex.feature:134 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes sp --bounds -45,-45,45,45" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-45,-45,45,45" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index update --tree Points --bounds -20,-45,20,45" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-20,-45,20,45" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Scenario: Try to revert using both --ours and --theirs # Checkout.feature:109 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "checkout -p Points/Points.1 --ours --theirs" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot use both --ours and --theirs" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() No patch file specified [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to verify multiple files': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to verify a patch without specifying a file # VerifyPatch.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "verify-patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No patch file specified" # DefaultStepDefinitions.the_response_should_contain(String) pathspec 'Points/Points.1' didn't match a feature in the tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert an unmerged feature': Using URIBuilder DefaultTestRepoURIBuilder Only one single patch file accepted [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to verify a patch with a bad file path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert a feature where the version you want doesn't exist # Checkout.feature:115 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) When I modify a feature # DefaultStepDefinitions.I_modify_a_feature() And I run the command "checkout -p Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "'Points/Points.1' didn't match a feature in the tree" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: I try to verify multiple files # VerifyPatch.feature:11 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "verify-patch file1 file2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Only one single patch file accepted" # DefaultStepDefinitions.the_response_should_contain(String) Patch file cannot be found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I have a patch file that contains rejects': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 966.3 μs. Building final tree...QuadTree created. Size: 3, time: 891.0 μsIndex created successfully: a6b65fce Scenario: I try to verify a patch with a bad file path # VerifyPatch.feature:16 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "verify-patch file1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch file cannot be found" # DefaultStepDefinitions.the_response_should_contain(String) Invalid bbox parameter: '-20,-45,20'. Expected format: [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to change existing attributes without specifying add or overwrite': Using URIBuilder DefaultTestRepoURIBuilder Error: Patch cannot be appliedApplicable entries:Conflicting entries:M Points/Points.1sp StringProp1_1 -> new [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I have a patch file that is valid': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to update the bounds of an index with incorrect bounds parameter # UpdateIndex.feature:160 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes sp --bounds -45,-45,45,45" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the repository's "HEAD:Points" index bounds should be "-45,-45,45,45" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) When I run the command "index update --tree Points --bounds -20,-45,20" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Invalid bbox parameter: '-20,-45,20'. Expected format: " # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I have a patch file that contains rejects # VerifyPatch.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "verify-patch ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch cannot be applied" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 10 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Patch can be applied. Index updated in 1.003 ms. Building final tree...QuadTree created. Size: 3, time: 792.3 μsIndex created successfully: eec6e43c error: path Points/Points.1 is unmerged. Scenario: I have a patch file that is valid # VerifyPatch.feature:28 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I have a patch file # DefaultStepDefinitions.I_have_a_patch_file() When I run the command "verify-patch ${currentdir}/test.patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch can be applied" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "walk-graph" command In order to walk through objects in the history tree As a Geogig User I want to see the object information of each object in the tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to walk the graph with no arguments': Using URIBuilder DefaultTestRepoURIBuilder Extra attributes already exist on index, specify add or overwrite to update. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert a feature to the --theirs version and fix the conflict': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index without specifying a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert an unmerged feature # Checkout.feature:123 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "checkout -p Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "path Points/Points.1 is unmerged" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: Try to change existing attributes without specifying add or overwrite # UpdateIndex.feature:176 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Extra attributes already exist on index, specify add or overwrite to update." # DefaultStepDefinitions.the_response_should_contain(String) Reference not provided Index updated in 1.059 ms. Building final tree...QuadTree created. Size: 3, time: 1.138 msIndex created successfully: eec6e43c The following option is required: --tree . See geogig --help [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to walk the graph with bad arguments': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index for a non-existent attribute': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to walk the graph with no arguments # WalkGraph.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "walk-graph" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Reference not provided" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I try to update the index without specifying a tree # UpdateIndex.feature:184 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --extra-attributes sp" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The following option is required: --tree" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [6131765e6f8bfbf0d8f410ad0447f499e39dfe69] CommitCommitted, counting objects...1 features added, 1 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to checkout a specific commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert a feature to the --theirs version and fix the conflict # Checkout.feature:130 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "checkout -p Points/Points.1 --theirs" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "commit -m Commit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Committed" # DefaultStepDefinitions.the_response_should_contain(String) Can't resolve reference 'garbage' at file:/opt/public/hipp/ramdisk/geogig/junit350494142311981426/data/localrepo/.geogig/ [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to walk the graph': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 1.326 ms. Building final tree...QuadTree created. Size: 3, time: 821.1 μsIndex created successfully: eec6e43c A matching index could not be found. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index leaving the extra-attribute param empty': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to walk the graph with bad arguments # WalkGraph.feature:12 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "walk-graph garbage" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't resolve reference" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I try to update the index for a non-existent attribute # UpdateIndex.feature:192 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --attribute fakeAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "A matching index could not be found." # DefaultStepDefinitions.the_response_should_contain(String) You are in 'detached HEAD' state. HEAD is now at c4bea365... Scenario: Try to checkout a specific commit # Checkout.feature:138 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I create a detached branch # DefaultStepDefinitions.I_create_a_detached_branch() Then the response should contain "You are in 'detached HEAD' state" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "cherry-pick" command In order to select specific changes to bring to the current branch As a Geogig User I want to cherry pick several commits from other branches [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick several commits': Using URIBuilder DefaultTestRepoURIBuilder 151ed700891d87f9b46b0a1a71c190536e49090a: COMMIT2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPEee21fc3db28a72eac18b8f868435e7179e036b19: TREE0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATUREb56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE7c7030706ef3121748f16bba4159bf231fa16ba4: TREEad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE654caf7921a04e73848178e16ef50ac7a48595ca: FEATUREe6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE 151ed700891d87f9b46b0a1a71c190536e49090a: COMMIT2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPEee21fc3db28a72eac18b8f868435e7179e036b19: TREE0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATUREb56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE7c7030706ef3121748f16bba4159bf231fa16ba4: TREEad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE654caf7921a04e73848178e16ef50ac7a48595ca: FEATUREe6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE 151ed700891d87f9b46b0a1a71c190536e49090a: COMMIT2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPEee21fc3db28a72eac18b8f868435e7179e036b19: TREE0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATUREb56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE7c7030706ef3121748f16bba4159bf231fa16ba4: TREEad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE654caf7921a04e73848178e16ef50ac7a48595ca: FEATUREe6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to walk the graph with verbose enabled': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 1.014 ms. Building final tree...QuadTree created. Size: 3, time: 1.030 msIndex created successfully: eec6e43c Expected a value after parameter --extra-attributes. See geogig --help [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index for a non-existent extra-attribute': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to walk the graph # WalkGraph.feature:18 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "walk-graph master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "TREE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURETYPE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Points" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 12 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Scenario: I try to update the index leaving the extra-attribute param empty # UpdateIndex.feature:200 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Expected a value after parameter --extra-attributes" # DefaultStepDefinitions.the_response_should_contain(String) 88ee73760cfab855daf7a0c2f528cdcec2a6ba4e: COMMIT 2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE 10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPE ee21fc3db28a72eac18b8f868435e7179e036b19: TREE Points [10b5dc054390266e0cc7b59ef34f543441f071e0]0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE Points/Points.2 [10b5dc054390266e0cc7b59ef34f543441f071e0]5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATURE Points/Points.3 [10b5dc054390266e0cc7b59ef34f543441f071e0]b56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE Points/Points.1 [10b5dc054390266e0cc7b59ef34f543441f071e0]49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE 7c7030706ef3121748f16bba4159bf231fa16ba4: TREE Lines [49c3a20f921b04c714609852619d29ffa7869cc9]ad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE Lines/Lines.1 [49c3a20f921b04c714609852619d29ffa7869cc9]654caf7921a04e73848178e16ef50ac7a48595ca: FEATURE Lines/Lines.2 [49c3a20f921b04c714609852619d29ffa7869cc9]e6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE Lines/Lines.3 [49c3a20f921b04c714609852619d29ffa7869cc9] 88ee73760cfab855daf7a0c2f528cdcec2a6ba4e: COMMIT 2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE 10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPE ee21fc3db28a72eac18b8f868435e7179e036b19: TREE Points [10b5dc054390266e0cc7b59ef34f543441f071e0]0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE Points/Points.2 [10b5dc054390266e0cc7b59ef34f543441f071e0]5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATURE Points/Points.3 [10b5dc054390266e0cc7b59ef34f543441f071e0]b56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE Points/Points.1 [10b5dc054390266e0cc7b59ef34f543441f071e0]49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE 7c7030706ef3121748f16bba4159bf231fa16ba4: TREE Lines [49c3a20f921b04c714609852619d29ffa7869cc9]ad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE Lines/Lines.1 [49c3a20f921b04c714609852619d29ffa7869cc9]654caf7921a04e73848178e16ef50ac7a48595ca: FEATURE Lines/Lines.2 [49c3a20f921b04c714609852619d29ffa7869cc9]e6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE Lines/Lines.3 [49c3a20f921b04c714609852619d29ffa7869cc9] 88ee73760cfab855daf7a0c2f528cdcec2a6ba4e: COMMIT 2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE 10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPE ee21fc3db28a72eac18b8f868435e7179e036b19: TREE Points [10b5dc054390266e0cc7b59ef34f543441f071e0]0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE Points/Points.2 [10b5dc054390266e0cc7b59ef34f543441f071e0]5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATURE Points/Points.3 [10b5dc054390266e0cc7b59ef34f543441f071e0]b56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE Points/Points.1 [10b5dc054390266e0cc7b59ef34f543441f071e0]49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE 7c7030706ef3121748f16bba4159bf231fa16ba4: TREE Lines [49c3a20f921b04c714609852619d29ffa7869cc9]ad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE Lines/Lines.1 [49c3a20f921b04c714609852619d29ffa7869cc9]654caf7921a04e73848178e16ef50ac7a48595ca: FEATURE Lines/Lines.2 [49c3a20f921b04c714609852619d29ffa7869cc9]e6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE Lines/Lines.3 [49c3a20f921b04c714609852619d29ffa7869cc9] 88ee73760cfab855daf7a0c2f528cdcec2a6ba4e: COMMIT 2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE 10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPE ee21fc3db28a72eac18b8f868435e7179e036b19: TREE Points [10b5dc054390266e0cc7b59ef34f543441f071e0]0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE Points/Points.2 [10b5dc054390266e0cc7b59ef34f543441f071e0]5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATURE Points/Points.3 [10b5dc054390266e0cc7b59ef34f543441f071e0]b56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE Points/Points.1 [10b5dc054390266e0cc7b59ef34f543441f071e0]49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE 7c7030706ef3121748f16bba4159bf231fa16ba4: TREE Lines [49c3a20f921b04c714609852619d29ffa7869cc9]ad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE Lines/Lines.1 [49c3a20f921b04c714609852619d29ffa7869cc9]654caf7921a04e73848178e16ef50ac7a48595ca: FEATURE Lines/Lines.2 [49c3a20f921b04c714609852619d29ffa7869cc9]e6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE Lines/Lines.3 [49c3a20f921b04c714609852619d29ffa7869cc9] 88ee73760cfab855daf7a0c2f528cdcec2a6ba4e: COMMIT 2bf3de88efd4a040d012f865cf04cc1a132f6f32: TREE 10b5dc054390266e0cc7b59ef34f543441f071e0: FEATURETYPE ee21fc3db28a72eac18b8f868435e7179e036b19: TREE Points [10b5dc054390266e0cc7b59ef34f543441f071e0]0d0cdfa256daf663172f01a0a0d06a9ecf69e113: FEATURE Points/Points.2 [10b5dc054390266e0cc7b59ef34f543441f071e0]5f5e58345cd7831c88e48ffa674541fd7703edc2: FEATURE Points/Points.3 [10b5dc054390266e0cc7b59ef34f543441f071e0]b56c1dec5a164dc1e9b61e015882909ad3c4c501: FEATURE Points/Points.1 [10b5dc054390266e0cc7b59ef34f543441f071e0]49c3a20f921b04c714609852619d29ffa7869cc9: FEATURETYPE 7c7030706ef3121748f16bba4159bf231fa16ba4: TREE Lines [49c3a20f921b04c714609852619d29ffa7869cc9]ad4066da4aadf58568d63ae52bbcaba62ce02cb8: FEATURE Lines/Lines.1 [49c3a20f921b04c714609852619d29ffa7869cc9]654caf7921a04e73848178e16ef50ac7a48595ca: FEATURE Lines/Lines.2 [49c3a20f921b04c714609852619d29ffa7869cc9]e6345bb3b38cd4dbcab7bc6198f256db45d7a3ce: FEATURE Lines/Lines.3 [49c3a20f921b04c714609852619d29ffa7869cc9] Too many commits specified. Index updated in 1.459 ms. Building final tree...QuadTree created. Size: 3, time: 1.156 msIndex created successfully: eec6e43c Scenario: I try to walk the graph with verbose enabled # WalkGraph.feature:28 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "walk-graph -v master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "TREE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURETYPE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 12 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) 66 Scenarios (66 passed) 408 Steps (408 passed) 2m12.783s Tests run: 474, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 136.175 sec - in org.locationtech.geogig.cli.test.functional.RunPlumbingFunctionalTest [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick a single commit': Using URIBuilder DefaultTestRepoURIBuilder FeatureType Points does not define attribute 'fakeAttrib' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to overwrite a non-existent extra-attribute': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to cherry pick several commits # CherryPick.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "cherry-pick branch1 branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Too many commits specified." # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Scenario: I try to update the index for a non-existent extra-attribute # UpdateIndex.feature:208 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes fakeAttrib" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "FeatureType Points does not define attribute 'fakeAttrib'" # DefaultStepDefinitions.the_response_should_contain(String) Index updated in 1.090 ms. Building final tree...QuadTree created. Size: 3, time: 732.7 μsIndex created successfully: eec6e43c FeatureType Points does not define attribute 'fakeAttrib' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index for the full history when there is only one commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to overwrite a non-existent extra-attribute # UpdateIndex.feature:216 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes fakeAttrib --overwrite" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "FeatureType Points does not define attribute 'fakeAttrib'" # DefaultStepDefinitions.the_response_should_contain(String) Commit: fd9572f4070c49d74d4d67786922e98a71e2c493Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:19 -0300Subject: Commit3Commit: 191d59d17384c086f748081488ae2fa90e332a02Author: John Doe Date: (just now) 2018-09-30 20:04:20 -0300Subject: Commit5Commit: e2d40b2b1cf87009097f43a912cacdc9a77a2607Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:18 -0300Subject: Commit1 Commit: fd9572f4070c49d74d4d67786922e98a71e2c493Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:19 -0300Subject: Commit3Commit: 191d59d17384c086f748081488ae2fa90e332a02Author: John Doe Date: (just now) 2018-09-30 20:04:20 -0300Subject: Commit5Commit: e2d40b2b1cf87009097f43a912cacdc9a77a2607Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:18 -0300Subject: Commit1 Commit: fd9572f4070c49d74d4d67786922e98a71e2c493Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:19 -0300Subject: Commit3Commit: 191d59d17384c086f748081488ae2fa90e332a02Author: John Doe Date: (just now) 2018-09-30 20:04:20 -0300Subject: Commit5Commit: e2d40b2b1cf87009097f43a912cacdc9a77a2607Author: John Doe Date: (1 seconds ago) 2018-09-30 20:04:18 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick a nonexistent branch': Using URIBuilder DefaultTestRepoURIBuilder Index updated in 1.073 ms. Building final tree...QuadTree created. Size: 1, time: 999.7 μsIndex created successfully: 8d87dd40 Scenario: Try to cherry pick a single commit # CherryPick.feature:13 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "cherry-pick branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~2}" # DefaultStepDefinitions.checkResponseTextContains(String) Building index for Points:pp at refs/heads/masterIndex updated in 548.1 μs. Building final tree...QuadTree created. Size: 1, time: 875.1 μsIndex updated successfully: 431a3203 Building index for Points:pp at refs/heads/masterIndex updated in 548.1 μs. Building final tree...QuadTree created. Size: 1, time: 875.1 μsIndex updated successfully: 431a3203 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index without updating anything': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to update the index for the full history when there is only one commit # UpdateIndex.feature:224 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m "point1 added" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --index-history --overwrite" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index updated successfully" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Size: 1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain the index ID for tree "Points" # DefaultStepDefinitions.the_response_contains_indexID(String) And the repository's "HEAD:Points" index bounds should be "-90,-180,90,180" # DefaultStepDefinitions.verifyIndexBounds(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "sp" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should not track the extra attribute "ip" # DefaultStepDefinitions.verifyIndexNotExtraAttributes(String,String) And the repository's "HEAD:Points" index should have the following features: # DefaultStepDefinitions.verifyIndexContents(String,DataTable) Index updated in 1.046 ms. Building final tree...QuadTree created. Size: 3, time: 987.9 μsIndex created successfully: eec6e43c Nothing to update... Commit not found 'nonexistent' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index with the same extra attribute': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick without specifying any commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to cherry pick a nonexistent branch # CherryPick.feature:27 Scenario: I try to update the index without updating anything # UpdateIndex.feature:241 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Nothing to update..." # DefaultStepDefinitions.the_response_should_contain(String) Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "cherry-pick nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit not found" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Index updated in 910.2 μs. Building final tree...QuadTree created. Size: 3, time: 704.5 μsIndex created successfully: eec6e43c Nothing to update... [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index by adding the same extra attribute': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to update the index with the same extra attribute # UpdateIndex.feature:249 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes ip --overwrite" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Nothing to update..." # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to cherry pick without specifying any commits # CherryPick.feature:34 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "cherry-pick" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No commits specified." # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to cherry pick a commit that causes conflict': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to cherry pick from an empty directory # CherryPick.feature:40 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "cherry-pick branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Index updated in 1.087 ms. Building final tree...QuadTree created. Size: 3, time: 771.4 μsIndex created successfully: b0f89179 Nothing to update... [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to update the index in an empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to update the index by adding the same extra attribute # UpdateIndex.feature:257 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "index create --tree Points --extra-attributes sp,ip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Index created successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "index update --tree Points --extra-attributes ip --add" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Nothing to update..." # DefaultStepDefinitions.the_response_should_contain(String) Can't find feature tree 'Points' Scenario: I try to update the index in an empty repository # UpdateIndex.feature:265 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "index update --tree Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Can't find feature tree 'Points'" # DefaultStepDefinitions.the_response_should_contain(String) 57 Scenarios (57 passed) 496 Steps (496 passed) 2m24.524s Tests run: 553, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 146.738 sec - in org.locationtech.geogig.cli.test.functional.RunIndexFunctionalTest CONFLICT: conflict in Points/Points.1Fix conflicts and then commit the result using 'geogig commit -c c3e32244 Scenario: Try to cherry pick a commit that causes conflict # CherryPick.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "cherry-pick branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "CONFLICT: conflict in Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Feature: "clean" command In order to remove unwanted changes As a Geogig User I want to remove all untracked features [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to remove all the untracked features': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to remove all the untracked features in a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to remove all the untracked features # Clean.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Lines/Lines.1# 3 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to remove all the untracked features in a tree that does not exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to remove all the untracked features in a tree # Clean.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean Points" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Removing Points/Points.1" # DefaultStepDefinitions.the_response_should_not_contain(String) Then the response should contain "Lines/Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) pathspec 'fakeTree' did not match any tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to remove all the untracked features in a path that is not a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to remove all the untracked features in a tree that does not exist # Clean.feature:25 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean fakeTree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "did not match any tree" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() pathspec 'Points/Points.1' did not resolve to a tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to know which untracked features would be removed in a non-existent tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to remove all the untracked features in a path that is not a tree # Clean.feature:34 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "did not resolve to a tree" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() pathspec 'fake/tree' did not match any tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to know which untracked features would be removed': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to know which untracked features would be removed in a non-existent tree # Clean.feature:43 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean -n fake/tree" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "pathspec 'fake/tree' did not match any tree" # DefaultStepDefinitions.the_response_should_contain(String) Would remove Points/Points.2Would remove Points/Points.1Would remove Lines/Lines.1 Scenario: Try to know which untracked features would be removed # Clean.feature:51 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "clean -n" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Would remove Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "commit" command In order to finalize a set of changes that have been staged As a Geogig User I want to create a commit and add it to the repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit with timestamp': Using URIBuilder DefaultTestRepoURIBuilder Commit: a6ef0b37d79548202000b21e0e2f23c592425923Author: John Doe Date: (8 years ago) 2010-04-22 20:53:23 +0100Subject: msg [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit with timestamp in millisecs': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit with timestamp # Commit.feature:7 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -t 2010-04-22T19:53:23Z -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "log --utc" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2010-04-22" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 44e5132147b34ef3781d09af46ed1280b9126b67Author: John Doe Date: (48 years ago) 1970-01-12 08:46:40 -0500Subject: msg [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit current staged features': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit with timestamp in millisecs # Commit.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -t 1000000000 -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1970-01" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) 100.0 [78f7f64202be8a5d09fd7879772b55b5682c8aa1] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit current staged features using a message with blank spaces': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit current staged features # Commit.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) 100.0 [47af61be78ebc68665e2efb66906d61a301500d0] A message with spacesCommitted, counting objects...3 features added, 0 changed, 0 deleted. 100.0 [47af61be78ebc68665e2efb66906d61a301500d0] A message with spacesCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to perform multiple commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit current staged features using a message with blank spaces # Commit.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m "A message with spaces"" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "A message with spaces" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) 100.0 [c4c5d31ce3047606e911f8d17ae0849afffeaa60] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. 0.0 100.0 [fc1546771206259ea97d7ff7fb133478e734c541] Test2Committed, counting objects...0 features added, 1 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit without providing a message': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to perform multiple commits # Commit.feature:42 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "commit -m Test2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "1 changed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit using a previous commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit without providing a message # Commit.feature:54 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No commit message provided" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit using a previous commit # Commit.feature:63 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -c HEAD~1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "No commit message provided" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit when no changes have been made': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit from an empty directory # Commit.feature:70 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit when there is a merge conflict': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit when no changes have been made # Commit.feature:76 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Nothing to commit" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Cannot run operation while merge or rebase conflicts exist. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to amend last commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit when there is a merge conflict # Commit.feature:82 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "commit -m Message" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot run operation while merge or rebase conflicts exist" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() 0% 100% [04d289597d855802fc96155f89353061f4332214] TestCommitted, counting objects...2 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to amend last commit, when no previous commit has been made': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to amend last commit # Commit.feature:89 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit --amend" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Cannot amend. There is no previous commit to amend [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit without message while solving a merge conflict': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to amend last commit, when no previous commit has been made # Commit.feature:99 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit --amend" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot amend" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [f2b6e39f89dde101e771bf5ef30d5478204b65af] Merge branch refs/heads/branch1Conflicts: Points/Points.1Committed, counting objects...1 features added, 1 changed, 0 deleted. 100.0 [f2b6e39f89dde101e771bf5ef30d5478204b65af] Merge branch refs/heads/branch1Conflicts: Points/Points.1Committed, counting objects...1 features added, 1 changed, 0 deleted. 100.0 [f2b6e39f89dde101e771bf5ef30d5478204b65af] Merge branch refs/heads/branch1Conflicts: Points/Points.1Committed, counting objects...1 features added, 1 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to commit only points': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to commit without message while solving a merge conflict # Commit.feature:105 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "checkout -p Points/Points.1 --theirs" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "commit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Merge branch refs/heads/branch1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Conflicts:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) 98% 100% [b6a8ef10b043d83fd64b333f3d4395a0fc7dc0f2] TestCommitted, counting objects...2 features added, 0 changed, 0 deleted. Scenario: Try to commit only points # Commit.feature:115 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features added" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Feature: "config" command In order to configure geogig As a Geogig User I want to get and set global settings as well as repository settings on a directory of my choice [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set a config value in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a local config value in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set a config value in the current empty directory # Config.feature:6 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "config testing.key value" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The config location is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list local variables in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a local config value in the current empty directory # Config.feature:12 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "config --get --local testing.key" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "the config location is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a config value in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list local variables in the current empty directory # Config.feature:18 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "config --list --local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "the config location is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set and get a global config value in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a config value in the current empty directory # Config.feature:24 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "config --get testing.key" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set and get a config value in the current repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set and get a global config value in the current empty directory # Config.feature:29 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "config --global testing.global true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --get testing.global" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "true" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set and get a multi-word config value in the current repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set and get a config value in the current repository # Config.feature:35 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "true" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "true" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a config value that doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set and get a multi-word config value in the current repository # Config.feature:43 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config testing.local test word" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "test word" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "test word" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a config value without specifying key': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a config value that doesn't exist # Config.feature:51 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global --get doesnt.exist" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --get doesnt.exist" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local --get doesnt.exist" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a config value using malformed key': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a config value without specifying key # Config.feature:60 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global --get" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No section or name was provided" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --get" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No section or name was provided" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local --get" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No section or name was provided" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get a config value using the alternate syntax': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a config value using malformed key # Config.feature:70 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global --get test" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The section or key is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --get test" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The section or key is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local --get test" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The section or key is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set, unset, and get a config value in the current repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get a config value using the alternate syntax # Config.feature:80 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global section.key value1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global section.key" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "value1" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config section.key value2" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config section.key" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "value2" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --local section.key" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "value2" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to set, unset, and get a config value globally': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set, unset, and get a config value in the current repository # Config.feature:91 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --local --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to unset a config value that doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to set, unset, and get a config value globally # Config.feature:102 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to unset and get in the same config command': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to unset a config value that doesn't exist # Config.feature:109 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --local --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --unset testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Remove a section from the current repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to unset and get in the same config command # Config.feature:121 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --unset --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Tried to use more than one action at a time" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Remove a section globally': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Remove a section from the current repository # Config.feature:127 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config testing.local2 false" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --remove-section testing" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --get testing.local2" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to remove a section that doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Remove a section globally # Config.feature:137 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --global testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global testing.local2 false" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --remove-section testing" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --global --get testing.local" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --global --get testing.local2" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Add 2 config values and list them': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to remove a section that doesn't exist # Config.feature:147 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --remove-section somerandomsection" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Could not find a section with the name provided" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "config --global --remove-section somerandomsection" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Could not find a section with the name provided" # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() storage.index=rocksdbtesting.local2=falserocksdb.version=1user.email=JohnDoe@example.comstorage.objects=rocksdbuser.name=John Doestorage.refs=filefile.version=1.0testing.local=true storage.index=rocksdbtesting.local2=falserocksdb.version=1user.email=JohnDoe@example.comstorage.objects=rocksdbuser.name=John Doestorage.refs=filefile.version=1.0testing.local=true storage.index=rocksdbtesting.local2=falsetesting.local3=truerocksdb.version=1testing.local4=falsestorage.objects=rocksdbstorage.refs=filefile.version=1.0testing.local=true storage.index=rocksdbtesting.local2=falsetesting.local3=truerocksdb.version=1testing.local4=falsestorage.objects=rocksdbstorage.refs=filefile.version=1.0testing.local=true storage.index=rocksdbtesting.local2=falsetesting.local3=truerocksdb.version=1testing.local4=falsestorage.objects=rocksdbstorage.refs=filefile.version=1.0testing.local=true storage.index=rocksdbtesting.local2=falsetesting.local3=truerocksdb.version=1testing.local4=falsestorage.objects=rocksdbstorage.refs=filefile.version=1.0testing.local=true [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Specify root URI and set a global config option': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Add 2 config values and list them # Config.feature:155 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config testing.local2 false" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "testing.local=true" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "testing.local2=false" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "config testing.local3 true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config testing.local4 false" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --list --local" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "testing.local=true" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "testing.local2=false" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "testing.local3=true" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "testing.local4=false" # DefaultStepDefinitions.the_response_should_contain(String) user.email=JohnDoe@example.comtesting.global=trueuser.name=John Doe [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to add a local config value when using a root URI': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Specify root URI and set a global config option # Config.feature:170 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --rootUri ${rootRepoURI} --global testing.global true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "config --rootUri ${rootRepoURI} --list" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "testing.global=true" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "testing.local=true" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to use both global and local in the same config command': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to add a local config value when using a root URI # Config.feature:178 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --rootUri ${rootRepoURI} testing.local true" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The config location is invalid" # DefaultStepDefinitions.it_should_answer_exactly(String) Usage: geogig config [options] name value (name is section.key format, value is only required when setting) Options: --get Get the value for a given key. Default: false --global Use global config file. Default: true --list, -l List all variables. Default: false --local Use repository config file. Default: true --remove-section Remove the given section. Default: false --rootUri Specify a root URI for a collection of repositories. Only global access will be available. --unset Remove the line matching the given key. Default: false [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to use the config command with no arguments': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to use both global and local in the same config command # Config.feature:183 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config --local --global" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Usage:" # DefaultStepDefinitions.the_response_should_contain(String) Usage: geogig config [options] name value (name is section.key format, value is only required when setting) Options: --get Get the value for a given key. Default: false --global Use global config file. Default: false --list, -l List all variables. Default: false --local Use repository config file. Default: false --remove-section Remove the given section. Default: false --rootUri Specify a root URI for a collection of repositories. Only global access will be available. --unset Remove the line matching the given key. Default: false Scenario: Try to use the config command with no arguments # Config.feature:188 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "config" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Usage:" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "conflicts" command In order to know which features are conflicted As a Geogig User I want to get a list of conflicted elements [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts': Using URIBuilder DefaultTestRepoURIBuilder Points/Points.1Ancestor a47ca38e5c3e92c94dec9e8ea597c642003ec878id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1)Ours 287da99809c3922276b6d8374e108fdf8364234eid 287da99809c3922276b6d8374e108fdf8364234eFEATURESTRING StringProp1_2INTEGER 1000POINT POINT (1 1)Theirs 3133ed99fd517acaf92da429d743bf0ada964400id 3133ed99fd517acaf92da429d743bf0ada964400FEATURESTRING StringProp1_3INTEGER 2000POINT POINT (1 1) Points/Points.1Ancestor a47ca38e5c3e92c94dec9e8ea597c642003ec878id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1)Ours 287da99809c3922276b6d8374e108fdf8364234eid 287da99809c3922276b6d8374e108fdf8364234eFEATURESTRING StringProp1_2INTEGER 1000POINT POINT (1 1)Theirs 3133ed99fd517acaf92da429d743bf0ada964400id 3133ed99fd517acaf92da429d743bf0ada964400FEATURESTRING StringProp1_3INTEGER 2000POINT POINT (1 1) Points/Points.1Ancestor a47ca38e5c3e92c94dec9e8ea597c642003ec878id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1)Ours 287da99809c3922276b6d8374e108fdf8364234eid 287da99809c3922276b6d8374e108fdf8364234eFEATURESTRING StringProp1_2INTEGER 1000POINT POINT (1 1)Theirs 3133ed99fd517acaf92da429d743bf0ada964400id 3133ed99fd517acaf92da429d743bf0ada964400FEATURESTRING StringProp1_3INTEGER 2000POINT POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts showing diffs': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list conflicts # Conflicts.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "conflicts" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Ancestor" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Ours" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "Theirs" # DefaultStepDefinitions.the_response_should_contain(String) ---Points/Points.1---Ourssp: StringProp1_1 -> StringProp1_2Theirsip: 1000 -> 2000sp: StringProp1_1 -> StringProp1_3 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts showing only ids': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list conflicts showing diffs # Conflicts.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "conflicts --diff" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "StringProp1_1 -> StringProp1_2" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts showing only ids and diffs': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list conflicts showing only ids # Conflicts.feature:22 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "conflicts --ids-only" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Cannot use --diff and --ids-only at the same time [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts when no conflicts exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list conflicts showing only ids and diffs # Conflicts.feature:29 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "conflicts --ids-only --diff" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot use --diff and --ids-only at the same time" # DefaultStepDefinitions.the_response_should_contain(String) No elements need merging. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to list conflicts showing only refspec': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to list conflicts when no conflicts exist # Conflicts.feature:36 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "conflicts" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No elements need merging" # DefaultStepDefinitions.the_response_should_contain(String) Points/Points.1 33acc8f026cd36557e1c907ca5e35af715023438:Points/Points.1 605ac2485e48d74497bc3642da751cdda4d4b549:Points/Points.1 63186a1bb4d3bbf323a48c06a8be09d57249c066:Points/Points.1 Scenario: Try to list conflicts showing only refspec # Conflicts.feature:42 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "conflicts --refspecs-only" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "diff" command In order to know changes made in a repository As a Geogig User I want to see the existing differences between commits [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index': Using URIBuilder DefaultTestRepoURIBuilder 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, showing only summary': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index # Diff.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "[1.0,1.0] (1.0,2.0)" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "1000" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "1001" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "StringProp1_1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "StringProp1_1a" # DefaultStepDefinitions.the_response_should_contain(String) 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, when no changes have been made': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, showing only summary # Diff.feature:18 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff --summary" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) No differences found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, for a single modified tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, when no changes have been made # Diff.feature:25 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "diff" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No differences found" # DefaultStepDefinitions.the_response_should_contain(String) 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1ip: 1000 -> 1001pp: Point [1.0,1.0] (1.0,2.0) / sp: StringProp1_1 -> StringProp1_1a [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, for a single unmodified tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, for a single modified tree # Diff.feature:31 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff --path Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "[1.0,1.0] (1.0,2.0)" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "1000" # DefaultStepDefinitions.the_response_should_contain(String) No differences found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff using too many commit refspecs': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, for a single unmodified tree # Diff.feature:40 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff --path Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No differences found" # DefaultStepDefinitions.the_response_should_contain(String) Commit list is too long :[commit1, commit2, commit3] [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff using a wrong commit refspec': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff using too many commit refspecs # Diff.feature:47 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff commit1 commit2 commit3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit list is too long" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Refspec wrongcommit does not resolve to a tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, for a single modified tree, showing only summary': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff using a wrong commit refspec # Diff.feature:55 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff wrongcommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Refspec wrongcommit does not resolve to a tree" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() 10b5dc05... 10b5dc05... a47ca38e... b56c1dec... M Points/Points.1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index, for a single feature whose feature type has changed': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, for a single modified tree, showing only summary # Diff.feature:63 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "diff --path Points --summary" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "POINT (1 1)" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "1000" # DefaultStepDefinitions.the_response_should_not_contain(String) 10b5dc05... b2751e97... a47ca38e... e55f6a0f... M Points/Points.1extra: [MISSING] -> ExtraString 10b5dc05... b2751e97... a47ca38e... e55f6a0f... M Points/Points.1extra: [MISSING] -> ExtraString [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index with bounds': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index, for a single feature whose feature type has changed # Diff.feature:72 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I a featuretype is modified # DefaultStepDefinitions.I_modify_a_feature_type() When I run the command "diff --path Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "extra: [MISSING] -> " # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ExtraString" # DefaultStepDefinitions.the_response_should_contain(String) left: right: 1.000000,1.000000,6.000000,6.000000both: 1.000000,1.000000,6.000000,6.000000CRS: EPSG:2163 left: right: 1.000000,1.000000,6.000000,6.000000both: 1.000000,1.000000,6.000000,6.000000CRS: EPSG:2163 left: right: 1.000000,1.000000,6.000000,6.000000both: 1.000000,1.000000,6.000000,6.000000CRS: EPSG:2163 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index with bounds': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index with bounds # Diff.feature:80 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "diff --bounds --crs EPSG:2163" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "right: 1.000000,1.000000,6.000000,6.000000" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "both: 1.000000,1.000000,6.000000,6.000000" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "CRS: EPSG:2163" # DefaultStepDefinitions.the_response_should_contain(String) Unrecognized CRS: 'EPSG:71738191' [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Show diff between working tree and index with the count argument': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Show diff between working tree and index with bounds # Diff.feature:88 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "diff --bounds --crs EPSG:71738191" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unrecognized CRS: 'EPSG:71738191'" # DefaultStepDefinitions.the_response_should_contain(String) Trees: added 2, changed 0, removed 0Features: added 6, changed 0, removed 0, total: 6 Scenario: Show diff between working tree and index with the count argument # Diff.feature:94 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() When I run the command "diff --count" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Features: added 6" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "format-patch" command In order to share a diff As a Geogig User I want to create a patch file [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to create a patch file': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to create a patch without specifying the file': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to create a patch file # FormatPatch.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "format-patch -f ${currentdir}/some_file" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should exit with zero exit code # DefaultStepDefinitions.it_should_exit_with_zero_exit_code() Patch file not specified [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to create a patch when there are no changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to create a patch without specifying the file # FormatPatch.feature:13 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "format-patch" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Patch file not specified" # DefaultStepDefinitions.the_response_should_contain(String) No differences found [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to create a patch with too many commit arguments': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to create a patch when there are no changes # FormatPatch.feature:20 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "format-patch -f ${currentdir}/some_file" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No differences found" # DefaultStepDefinitions.the_response_should_contain(String) Commit list is too long :[commit1, commit2, commit3] [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to create a patch between working tree and index, for a single modified tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to create a patch with too many commit arguments # FormatPatch.feature:26 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "format-patch commit1 commit2 commit3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit list is too long" # DefaultStepDefinitions.the_response_should_contain(String) Scenario: I try to create a patch between working tree and index, for a single modified tree # FormatPatch.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "format-patch --path Points -f ${currentdir}/some_file" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should exit with zero exit code # DefaultStepDefinitions.it_should_exit_with_zero_exit_code() Feature: "init" command In order to start versioning my spatial datasets As a repository Owner I want to create a new repository on a directory of my choice [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create repository in the current empty directory': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create repository specifying initial configuration': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create repository in the current empty directory # Init.feature:6 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "init" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Initialized empty Geogig repository in ${currentdir}/.geogig" # DefaultStepDefinitions.it_should_answer_exactly(String) And the repository shall exist # DefaultStepDefinitions.the_repository_shall_exist() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create repository specifying the target directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create repository specifying initial configuration # Init.feature:12 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "init --config foo.bar=baz" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository shall exist # DefaultStepDefinitions.the_repository_shall_exist() When I run the command "config foo.bar" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "baz" # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to init a repository when already inside a repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create repository specifying the target directory # Init.feature:19 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "init roads" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Initialized empty Geogig repository in ${currentdir}/roads/.geogig" # DefaultStepDefinitions.it_should_answer_exactly(String) And if I change to the respository subdirectory "roads" # DefaultStepDefinitions.if_I_change_to_the_respository_subdirectory(String) Then the repository shall exist # DefaultStepDefinitions.the_repository_shall_exist() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to init a repository from inside a repository subdirectory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to init a repository when already inside a repository # Init.feature:26 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "init" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Reinitialized existing Geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And the repository shall exist # DefaultStepDefinitions.the_repository_shall_exist() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Init specifying repo URI': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to init a repository from inside a repository subdirectory # Init.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I am inside a repository subdirectory "topp/shapes" # DefaultStepDefinitions.I_am_inside_a_repository_subdirectory(String) When I run the command "init" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Reinitialized existing Geogig repository in" # DefaultStepDefinitions.the_response_should_start_with(String) And the repository shall exist # DefaultStepDefinitions.the_repository_shall_exist() Scenario: Init specifying repo URI # Init.feature:39 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "init ${repoURI}" # DefaultStepDefinitions.I_run_the_command_X(String) Then the repository at "${repoURI}" shall exist # DefaultStepDefinitions.the_repository_at_shall_exist(String) Feature: "log" command In order to know the history of commits on a repository As a Geogig User I want to log them to the console [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a empty repository': Using URIBuilder DefaultTestRepoURIBuilder No commits to show [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with a single commit.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a empty repository # Log.feature:5 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No commits to show" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [c9eda4cac96bed921cfde784fc46e592c02ff10c] TestCommitCommitted, counting objects...3 features added, 0 changed, 0 deleted. Commit: c9eda4cac96bed921cfde784fc46e592c02ff10cAuthor: John Doe Date: (just now) 2018-09-30 20:05:59 -0300Subject: TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with several commits.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository with a single commit. # Log.feature:10 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: TestCommit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: a8bef50eb1e10e8348bf2c971e34ba0da83b1ffbAuthor: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit4Commit: 0361230689adbf1cd41c805d7510f90a2bae2774Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit3Commit: 1e79fb2d09f6e41f9b4a7fd4d014cc93d23ab214Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit2Commit: 154c1f8865c5d5e4025e1675db77ec447c231db1Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:00 -0300Subject: Commit1 Commit: a8bef50eb1e10e8348bf2c971e34ba0da83b1ffbAuthor: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit4Commit: 0361230689adbf1cd41c805d7510f90a2bae2774Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit3Commit: 1e79fb2d09f6e41f9b4a7fd4d014cc93d23ab214Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit2Commit: 154c1f8865c5d5e4025e1675db77ec447c231db1Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:00 -0300Subject: Commit1 Commit: a8bef50eb1e10e8348bf2c971e34ba0da83b1ffbAuthor: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit4Commit: 0361230689adbf1cd41c805d7510f90a2bae2774Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit3Commit: 1e79fb2d09f6e41f9b4a7fd4d014cc93d23ab214Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit2Commit: 154c1f8865c5d5e4025e1675db77ec447c231db1Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:00 -0300Subject: Commit1 Commit: a8bef50eb1e10e8348bf2c971e34ba0da83b1ffbAuthor: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit4Commit: 0361230689adbf1cd41c805d7510f90a2bae2774Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit3Commit: 1e79fb2d09f6e41f9b4a7fd4d014cc93d23ab214Author: John Doe Date: (just now) 2018-09-30 20:06:01 -0300Subject: Commit2Commit: 154c1f8865c5d5e4025e1675db77ec447c231db1Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:00 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of the commits that have changed the points feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository with several commits. # Log.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~3}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 82beac4eb4996543fb359cc03ffccfb633a0fd4cAuthor: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit4Commit: d61feb377c05c66d8d736ccb8ecd070617bb17e1Author: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit2Commit: f11b7b9102baa2f0757f35f395418f60b2f28487Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:02 -0300Subject: Commit1 Commit: 82beac4eb4996543fb359cc03ffccfb633a0fd4cAuthor: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit4Commit: d61feb377c05c66d8d736ccb8ecd070617bb17e1Author: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit2Commit: f11b7b9102baa2f0757f35f395418f60b2f28487Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:02 -0300Subject: Commit1 Commit: 82beac4eb4996543fb359cc03ffccfb633a0fd4cAuthor: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit4Commit: d61feb377c05c66d8d736ccb8ecd070617bb17e1Author: John Doe Date: (just now) 2018-09-30 20:06:03 -0300Subject: Commit2Commit: f11b7b9102baa2f0757f35f395418f60b2f28487Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:02 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of the commits that have changed the lines feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of the commits that have changed the points feature # Log.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log --path Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~3}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: fb77ffa811ba6094c4da2f48a58ddadc3711b9d5Author: John Doe Date: (just now) 2018-09-30 20:06:05 -0300Subject: Commit3Commit: 97ce7b004d4742adc5b0301b5624909c7c479cadAuthor: John Doe Date: (just now) 2018-09-30 20:06:04 -0300Subject: Commit2 Commit: fb77ffa811ba6094c4da2f48a58ddadc3711b9d5Author: John Doe Date: (just now) 2018-09-30 20:06:05 -0300Subject: Commit3Commit: 97ce7b004d4742adc5b0301b5624909c7c479cadAuthor: John Doe Date: (just now) 2018-09-30 20:06:04 -0300Subject: Commit2 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of the commits that have changed the points and lines features': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of the commits that have changed the lines feature # Log.feature:42 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log --path Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~2}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: f6e82646c4c83fb6d7bde25bc5b0150b3b6b865cAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit4Commit: 89a8ef3f58191669526dcf2655204294d5118d1aAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit3Commit: 8b60950a181e2c8bad91631b7aa073c641a6f794Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit2Commit: 1ff47c8ca065ad87c8d43e7663133a2a36c08df9Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit1 Commit: f6e82646c4c83fb6d7bde25bc5b0150b3b6b865cAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit4Commit: 89a8ef3f58191669526dcf2655204294d5118d1aAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit3Commit: 8b60950a181e2c8bad91631b7aa073c641a6f794Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit2Commit: 1ff47c8ca065ad87c8d43e7663133a2a36c08df9Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit1 Commit: f6e82646c4c83fb6d7bde25bc5b0150b3b6b865cAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit4Commit: 89a8ef3f58191669526dcf2655204294d5118d1aAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit3Commit: 8b60950a181e2c8bad91631b7aa073c641a6f794Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit2Commit: 1ff47c8ca065ad87c8d43e7663133a2a36c08df9Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit1 Commit: f6e82646c4c83fb6d7bde25bc5b0150b3b6b865cAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit4Commit: 89a8ef3f58191669526dcf2655204294d5118d1aAuthor: John Doe Date: (just now) 2018-09-30 20:06:07 -0300Subject: Commit3Commit: 8b60950a181e2c8bad91631b7aa073c641a6f794Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit2Commit: 1ff47c8ca065ad87c8d43e7663133a2a36c08df9Author: John Doe Date: (just now) 2018-09-30 20:06:06 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show only the last two commits.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of the commits that have changed the points and lines features # Log.feature:51 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log --path Points Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~3}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 476db1ba5e6d0f64baa4dfb3fc1d0c906321a1d6Author: John Doe Date: (just now) 2018-09-30 20:06:09 -0300Subject: Commit4Commit: 4bafe01611407378238f08d9ea33d1042b4875b3Author: John Doe Date: (just now) 2018-09-30 20:06:08 -0300Subject: Commit3 Commit: 476db1ba5e6d0f64baa4dfb3fc1d0c906321a1d6Author: John Doe Date: (just now) 2018-09-30 20:06:09 -0300Subject: Commit4Commit: 4bafe01611407378238f08d9ea33d1042b4875b3Author: John Doe Date: (just now) 2018-09-30 20:06:08 -0300Subject: Commit3 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the log, skipping the last 2 commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show only the last two commits. # Log.feature:62 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log -n 2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|HEAD~2}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 88388b6c496929acb52fd4084d46df51624f5912Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:10 -0300Subject: Commit2Commit: 121f1c592ed8ffbe757543d55ac3ba3a85a26ea3Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:10 -0300Subject: Commit1 Commit: 88388b6c496929acb52fd4084d46df51624f5912Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:10 -0300Subject: Commit2Commit: 121f1c592ed8ffbe757543d55ac3ba3a85a26ea3Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:10 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the last 2 commits before the most recent': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the log, skipping the last 2 commits # Log.feature:73 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log --skip 2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~3}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain variable "{ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) Commit: b1a7b3b4d6f2ec9fd5e2877719d8936113a4ee23Author: John Doe Date: (just now) 2018-09-30 20:06:13 -0300Subject: Commit3Commit: 13bc17de8e8719bf79a47b3191c51b12d82c49dcAuthor: John Doe Date: (just now) 2018-09-30 20:06:12 -0300Subject: Commit2 Commit: b1a7b3b4d6f2ec9fd5e2877719d8936113a4ee23Author: John Doe Date: (just now) 2018-09-30 20:06:13 -0300Subject: Commit3Commit: 13bc17de8e8719bf79a47b3191c51b12d82c49dcAuthor: John Doe Date: (just now) 2018-09-30 20:06:12 -0300Subject: Commit2 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the last 2 commits before the most recent # Log.feature:84 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "log -n 2 --skip 1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|HEAD~3}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~2}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of all branches': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log from an empty directory # Log.feature:97 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Commit: 4df2144c1a1161e6583c3c946831545226574879Author: John Doe Date: (just now) 2018-09-30 20:06:16 -0300Subject: Commit5Commit: 4fc423885bc0a36477db3eff6e7cc57e8cbaf8fdAuthor: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit4Commit: 6342fd80d3d667df0f7f3ccfb543c1ccf9ce60a1Author: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit3Commit: 57932b4c4f4a028c25a94b046fb25dc9169ad01fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:15 -0300Subject: Commit2Commit: 540af81f82c7bac8f95bccbcf4f00c76e1cc7e2fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:14 -0300Subject: Commit1 Commit: 4df2144c1a1161e6583c3c946831545226574879Author: John Doe Date: (just now) 2018-09-30 20:06:16 -0300Subject: Commit5Commit: 4fc423885bc0a36477db3eff6e7cc57e8cbaf8fdAuthor: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit4Commit: 6342fd80d3d667df0f7f3ccfb543c1ccf9ce60a1Author: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit3Commit: 57932b4c4f4a028c25a94b046fb25dc9169ad01fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:15 -0300Subject: Commit2Commit: 540af81f82c7bac8f95bccbcf4f00c76e1cc7e2fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:14 -0300Subject: Commit1 Commit: 4df2144c1a1161e6583c3c946831545226574879Author: John Doe Date: (just now) 2018-09-30 20:06:16 -0300Subject: Commit5Commit: 4fc423885bc0a36477db3eff6e7cc57e8cbaf8fdAuthor: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit4Commit: 6342fd80d3d667df0f7f3ccfb543c1ccf9ce60a1Author: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit3Commit: 57932b4c4f4a028c25a94b046fb25dc9169ad01fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:15 -0300Subject: Commit2Commit: 540af81f82c7bac8f95bccbcf4f00c76e1cc7e2fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:14 -0300Subject: Commit1 Commit: 4df2144c1a1161e6583c3c946831545226574879Author: John Doe Date: (just now) 2018-09-30 20:06:16 -0300Subject: Commit5Commit: 4fc423885bc0a36477db3eff6e7cc57e8cbaf8fdAuthor: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit4Commit: 6342fd80d3d667df0f7f3ccfb543c1ccf9ce60a1Author: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit3Commit: 57932b4c4f4a028c25a94b046fb25dc9169ad01fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:15 -0300Subject: Commit2Commit: 540af81f82c7bac8f95bccbcf4f00c76e1cc7e2fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:14 -0300Subject: Commit1 Commit: 4df2144c1a1161e6583c3c946831545226574879Author: John Doe Date: (just now) 2018-09-30 20:06:16 -0300Subject: Commit5Commit: 4fc423885bc0a36477db3eff6e7cc57e8cbaf8fdAuthor: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit4Commit: 6342fd80d3d667df0f7f3ccfb543c1ccf9ce60a1Author: John Doe Date: (just now) 2018-09-30 20:06:15 -0300Subject: Commit3Commit: 57932b4c4f4a028c25a94b046fb25dc9169ad01fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:15 -0300Subject: Commit2Commit: 540af81f82c7bac8f95bccbcf4f00c76e1cc7e2fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:14 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a single branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of all branches # Log.feature:103 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "log --all" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 9bc292b791ac6075440c64dfb71646355a98eebfAuthor: John Doe Date: (just now) 2018-09-30 20:06:17 -0300Subject: Commit3Commit: 5c1d879c2c36b94308532563fe0c7469e1e21c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit2Commit: e45b1df4e7e8aba0dce93a8a870a9f01fad04c3aAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit1 Commit: 9bc292b791ac6075440c64dfb71646355a98eebfAuthor: John Doe Date: (just now) 2018-09-30 20:06:17 -0300Subject: Commit3Commit: 5c1d879c2c36b94308532563fe0c7469e1e21c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit2Commit: e45b1df4e7e8aba0dce93a8a870a9f01fad04c3aAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit1 Commit: 9bc292b791ac6075440c64dfb71646355a98eebfAuthor: John Doe Date: (just now) 2018-09-30 20:06:17 -0300Subject: Commit3Commit: 5c1d879c2c36b94308532563fe0c7469e1e21c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit2Commit: e45b1df4e7e8aba0dce93a8a870a9f01fad04c3aAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:17 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of all branches specifying the 'until' commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a single branch # Log.feature:116 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "log --branch branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit5" # DefaultStepDefinitions.the_response_should_not_contain(String) Cannot specify 'until' commit when listing all branches [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of all branches with decoration': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of all branches specifying the 'until' commit # Log.feature:127 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "log --all HEAD..HEAD~1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot specify 'until' commit when listing all branches" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 Commit: 08e10e80bc784d3f2e548d0f02c09df63f4db263 (HEAD, refs/heads/master)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit5Commit: 6bdf8f77c1d40f0817d339d44867065d8c830220 (refs/heads/branch2)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit4Commit: 40c5969bdc8cd5a76c161ca805385bdc73269643 (refs/heads/branch1)Author: John Doe Date: (just now) 2018-09-30 20:06:23 -0300Subject: Commit3Commit: e35890f35400c6b5e04f65e87d2bdfa31f915642Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit2Commit: 121b5189bd3a06ca1a49b45d65d8d6c570b2fa06Author: John Doe Date: (1 seconds ago) 2018-09-30 20:06:22 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with a single commit.': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of all branches with decoration # Log.feature:134 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "log --all --decoration" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextContains(String) Then the response should contain "HEAD" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "master" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [f10bcbf5bea712b7fee6976be20d345c6b8bd20b] TestCommitCommitted, counting objects...3 features added, 0 changed, 0 deleted. f10bcbf5bea712b7fee6976be20d345c6b8bd20b TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository with a single commit and decoration': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository with a single commit. # Log.feature:149 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "log --oneline" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "TestCommit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) 100.0 [d32497ce4152d0ce7b0b3f76d8255fc90e50df48] TestCommitCommitted, counting objects...3 features added, 0 changed, 0 deleted. d32497ce4152d0ce7b0b3f76d8255fc90e50df48 (HEAD, refs/heads/master) TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository showing only names of affected elements': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository with a single commit and decoration # Log.feature:161 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "log --oneline --decoration" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 1 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "(HEAD, refs/heads/master) TestCommit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 4af82c911c3ed91d5ea7f1397948fa210337822eAuthor: John Doe Date: (just now) 2018-09-30 20:06:28 -0300Subject: TestCommitAffected paths: Points/Points.2 Points/Points.3 Lines/Lines.1Commit: 2dd2d4a63698937891773ca32e832a6e0a2b612cAuthor: John Doe Date: (just now) 2018-09-30 20:06:27 -0300Subject: TestCommit Commit: 4af82c911c3ed91d5ea7f1397948fa210337822eAuthor: John Doe Date: (just now) 2018-09-30 20:06:28 -0300Subject: TestCommitAffected paths: Points/Points.2 Points/Points.3 Lines/Lines.1Commit: 2dd2d4a63698937891773ca32e832a6e0a2b612cAuthor: John Doe Date: (just now) 2018-09-30 20:06:27 -0300Subject: TestCommit Commit: 4af82c911c3ed91d5ea7f1397948fa210337822eAuthor: John Doe Date: (just now) 2018-09-30 20:06:28 -0300Subject: TestCommitAffected paths: Points/Points.2 Points/Points.3 Lines/Lines.1Commit: 2dd2d4a63698937891773ca32e832a6e0a2b612cAuthor: John Doe Date: (just now) 2018-09-30 20:06:27 -0300Subject: TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository showing full descriptions of affected elements': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository showing only names of affected elements # Log.feature:173 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "log --names-only" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 13 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository showing stats of affected elements': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository showing full descriptions of affected elements # Log.feature:187 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "log --summary" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 24 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Commit: 2daf16d545501253d851bfa76268f4954d71fe91Author: John Doe Date: (just now) 2018-09-30 20:06:31 -0300Subject: Commit4Changes:0 features added, 1 changed, 0 deleted.Commit: 41b5aca37cb3b1c89e1a94cb13afce63dcbeed26Author: John Doe Date: (just now) 2018-09-30 20:06:31 -0300Subject: Commit3Changes:2 features added, 0 changed, 0 deleted.Commit: 7ac7e27820583b4bf40f40d61fddb2e40124e53aAuthor: John Doe Date: (just now) 2018-09-30 20:06:31 -0300Subject: Commit2Changes:2 features added, 0 changed, 0 deleted.Commit: 463bcff1e6a2323ce3c4272b67862e3f602b5d7cAuthor: John Doe Date: (just now) 2018-09-30 20:06:30 -0300Subject: Commit1Changes:2 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository showing a specific author': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository showing stats of affected elements # Log.feature:198 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "log --stats" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain 23 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Commit: 6a4391c3fe5e9bb2e44727ecfb06a609d80fd1b1Author: Jane Doe Date: (just now) 2018-09-30 20:06:33 -0300Subject: Commit4Commit: bd03ab957baa395b2e3a90061cea9e48ceaa7328Author: Jane Doe Date: (just now) 2018-09-30 20:06:33 -0300Subject: Commit3Commit: adc18ef183458fb258c573ad7636779f23adc082Author: Jane Doe Date: (just now) 2018-09-30 20:06:32 -0300Subject: Commit2Commit: f58c3ab080987d3359dbab7d8337de5bd13c441bAuthor: Jane Doe Date: (just now) 2018-09-30 20:06:32 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository showing a specific comitter': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository showing a specific author # Log.feature:205 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a local committer # DefaultStepDefinitions.I_have_a_local_committer() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "log --author "Jane Doe"" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "JaneDoe@example.com" # DefaultStepDefinitions.the_response_should_contain(String) Commit: 9dcf115740ec3b65e545cefa3862a9fb9b0beb1dAuthor: Jane Doe Date: (just now) 2018-09-30 20:06:35 -0300Subject: Commit4Commit: 5a41e2efee70a23da5ebbe74a36ad1387e784e27Author: Jane Doe Date: (just now) 2018-09-30 20:06:35 -0300Subject: Commit3Commit: 4d4e7a84ea5ad32cebf668e541897c11f7d2a853Author: Jane Doe Date: (just now) 2018-09-30 20:06:34 -0300Subject: Commit2Commit: 80c3653467ff43695056a10d0433cdcb80d7b976Author: Jane Doe Date: (just now) 2018-09-30 20:06:34 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository since yesterday': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository showing a specific comitter # Log.feature:212 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a local committer # DefaultStepDefinitions.I_have_a_local_committer() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "log --committer "Jane Doe"" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "JaneDoe@example.com" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of a repository until now': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository since yesterday # Log.feature:219 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "log --since yesterday" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 19 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show a log of all branches specifying an until date': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show a log of a repository until now # Log.feature:225 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "log --until "0.seconds.ago"" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 19 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Cannot specify 'until' commit when listing all branches Scenario: Try to show a log of all branches specifying an until date # Log.feature:231 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "log --all --until today" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot specify 'until' commit when listing all branches" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "ls" command In order to explore the contents of a tree As a Geogig User I want to display information about it [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list contents in an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit7850188575030827376/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list and empty repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to list contents in an empty directory # Ls.feature:6 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "ls" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) The working tree is empty [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to list and repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to list and empty repository # Ls.feature:11 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "ls" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The working tree is empty" # DefaultStepDefinitions.the_response_should_contain(String) Root tree/ Points/ Lines/ Root tree/ Points/ Lines/ Root tree/ Points/ Lines/ [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to show a recursive list in a repository': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to list and repository # Ls.feature:16 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "ls" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Root tree/" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points/" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines/" # DefaultStepDefinitions.the_response_should_contain(String) Root tree/ Points.2 Points.3 Points.1 Lines.1 Lines.2 Lines.3 Root tree/ Points.2 Points.3 Points.1 Lines.1 Lines.2 Lines.3 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to show only the tree not the children': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to show a recursive list in a repository # Ls.feature:24 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "ls -r" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines.1" # DefaultStepDefinitions.the_response_should_contain(String) Root tree/ Points/ Lines/ [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to show a verbose list of a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to show only the tree not the children # Ls.feature:31 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "ls -d" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/" # DefaultStepDefinitions.the_response_should_contain(String) Points/ Points.2 10b5dc054390266e0cc7b59ef34f543441f071e0 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points.3 10b5dc054390266e0cc7b59ef34f543441f071e0 5f5e58345cd7831c88e48ffa674541fd7703edc2 Points.1 10b5dc054390266e0cc7b59ef34f543441f071e0 b56c1dec5a164dc1e9b61e015882909ad3c4c501 Points/ Points.2 10b5dc054390266e0cc7b59ef34f543441f071e0 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points.3 10b5dc054390266e0cc7b59ef34f543441f071e0 5f5e58345cd7831c88e48ffa674541fd7703edc2 Points.1 10b5dc054390266e0cc7b59ef34f543441f071e0 b56c1dec5a164dc1e9b61e015882909ad3c4c501 Points/ Points.2 10b5dc054390266e0cc7b59ef34f543441f071e0 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points.3 10b5dc054390266e0cc7b59ef34f543441f071e0 5f5e58345cd7831c88e48ffa674541fd7703edc2 Points.1 10b5dc054390266e0cc7b59ef34f543441f071e0 b56c1dec5a164dc1e9b61e015882909ad3c4c501 Points/ Points.2 10b5dc054390266e0cc7b59ef34f543441f071e0 0d0cdfa256daf663172f01a0a0d06a9ecf69e113 Points.3 10b5dc054390266e0cc7b59ef34f543441f071e0 5f5e58345cd7831c88e48ffa674541fd7703edc2 Points.1 10b5dc054390266e0cc7b59ef34f543441f071e0 b56c1dec5a164dc1e9b61e015882909ad3c4c501 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I try to show a list with seven digit IDs': Using URIBuilder DefaultTestRepoURIBuilder Scenario: I try to show a verbose list of a tree # Ls.feature:37 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "ls -v Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points/" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Points.3" # DefaultStepDefinitions.the_response_should_contain(String) Root tree/ Points/ 10b5d ee21f Points.2 10b5d 0d0cd Points.3 10b5d 5f5e5 Points.1 10b5d b56c1 Lines/ 49c3a 7c703 Lines.1 49c3a ad406 Lines.2 49c3a 654ca Lines.3 49c3a e6345 Root tree/ Points/ 10b5d ee21f Points.2 10b5d 0d0cd Points.3 10b5d 5f5e5 Points.1 10b5d b56c1 Lines/ 49c3a 7c703 Lines.1 49c3a ad406 Lines.2 49c3a 654ca Lines.3 49c3a e6345 Scenario: I try to show a list with seven digit IDs # Ls.feature:46 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "ls -v -r -t -a 5" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 9 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "Points.3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Lines.3" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "merge" command In order to combine two or more geogig histories into one As a Geogig User I want to merge one or more commit histories into my current branch [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge one branch to a parent branch': Using URIBuilder DefaultTestRepoURIBuilder Merge: merging [41df9974ad560897edbfb039654d438bae2c8ddb] onto HEAD -> [refs/heads/master -> 2364d4bb406528e594c6e8248cf689777393eba3]Checking for possible conflicts...Merging commit 41df9974 (Commit3) onto 2364d4bb (Commit5)Conflicts: 0, merged: 0, unconflicted: 3Staging changes...0 Building final tree PointsTree Points staged in 768.5 μsDone.Creating merge commitMerge: created merge commit Commit[63d45f922833ed5b805beb8c8a49f482a62ae33c, 'MergeMessage'][63d45f922833ed5b805beb8c8a49f482a62ae33c] MergeMessageCommitted, counting objects...2 features added, 0 changed, 0 deleted. Commit: 63d45f922833ed5b805beb8c8a49f482a62ae33cMerge: 2364d4bb406528e594c6e8248cf689777393eba3 41df9974ad560897edbfb039654d438bae2c8ddb Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: MergeMessageCommit: 2364d4bb406528e594c6e8248cf689777393eba3Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: Commit5Commit: 59dfd56b2f46af2ee68a5ba49dae2fa578c513fdAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:51 -0300Subject: Commit1 Commit: 63d45f922833ed5b805beb8c8a49f482a62ae33cMerge: 2364d4bb406528e594c6e8248cf689777393eba3 41df9974ad560897edbfb039654d438bae2c8ddb Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: MergeMessageCommit: 2364d4bb406528e594c6e8248cf689777393eba3Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: Commit5Commit: 59dfd56b2f46af2ee68a5ba49dae2fa578c513fdAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:51 -0300Subject: Commit1 Commit: 63d45f922833ed5b805beb8c8a49f482a62ae33cMerge: 2364d4bb406528e594c6e8248cf689777393eba3 41df9974ad560897edbfb039654d438bae2c8ddb Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: MergeMessageCommit: 2364d4bb406528e594c6e8248cf689777393eba3Author: John Doe Date: (just now) 2018-09-30 20:06:52 -0300Subject: Commit5Commit: 59dfd56b2f46af2ee68a5ba49dae2fa578c513fdAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:06:51 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge the same branch twice': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge one branch to a parent branch # Merge.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "log --first-parent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "MergeMessage" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD~2}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|branch1~1}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) And the response should not contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) Merge: merging [fd5c02f393ca338f46be61b597977d253e552f3f] onto HEAD -> [refs/heads/master -> 3d73d0084bdc70b47850fa4c5c2a246b6efa2606]Checking for possible conflicts...Merging commit fd5c02f3 (Commit3) onto 3d73d008 (Commit5)Conflicts: 0, merged: 0, unconflicted: 3Staging changes...0 Building final tree PointsTree Points staged in 1.075 msDone.Creating merge commitMerge: created merge commit Commit[e72d90b23351f0a362fae4a0f1448a0e2446e527, 'MergeMessage'][e72d90b23351f0a362fae4a0f1448a0e2446e527] MergeMessageCommitted, counting objects...2 features added, 0 changed, 0 deleted. Merge: merging [fd5c02f393ca338f46be61b597977d253e552f3f] onto HEAD -> [refs/heads/master -> e72d90b23351f0a362fae4a0f1448a0e2446e527]Checking for possible conflicts...Merging commit fd5c02f3 (Commit3) onto e72d90b2 (MergeMessage)Conflicts: 0, merged: 0, unconflicted: 02.0 Merge: complete, nothing to merge.The branch has already been merged. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge without specifying any commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge the same branch twice # Merge.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "merge branch1 -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "merge branch1 -m MergeMessage2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "The branch has already been merged." # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge a nonexistent branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge without specifying any commits # Merge.feature:32 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "merge -m MergeMessage" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "No commits provided to merge." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge a nonexistent branch # Merge.feature:39 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "merge nonexistent" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Commit not found" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge two conflicting branches': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge from an empty directory # Merge.feature:46 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Merge: merging [05d8a78fadafd990afacf9b39016c50bb6215ef4] onto HEAD -> [refs/heads/master -> 1d9879ae319125fc590b87ddf6a5073c7378f1c8]Checking for possible conflicts...Possible conflicts. Creating intermediate merge status...5.0 Staging 1 unconflicted and 0 merged differences...0 Building final tree PointsTree Points staged in 628.5 μsDone.Saving 1 conflicts...CONFLICT: Merge conflict in Points/Points.1Automatic merge failed. Fix conflicts and then commit the result. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to perform an octopus merge with conflicts': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge two conflicting branches # Merge.feature:52 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "CONFLICT: Merge conflict in Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Merge: merging [0b57e767f068abc1124d03ebd969a698e6e50798, 5b0b2a50749557044b6d9238c6a35f9c5e7a65b0] onto HEAD -> [refs/heads/master -> 91fed2ec3b6698b0a93ec633ac9130d35bfc1a84]Checking for possible conflicts...Conflicted merge.Cannot merge more than two commits when conflicts exist or features have been modified in several histories [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to perform an octopus merge': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to perform an octopus merge with conflicts # Merge.feature:59 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1 branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot merge more than two commits when conflicts exist" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Merge: merging [9b917f58dee0870f794ab0a4fb855ebf860aaff0, 4bc659749aaaae24baf56d82d094d8a60b37ee4b] onto HEAD -> [refs/heads/master -> 969f2890e63e732fc6f5af8f3c9819e29a2f5f9e]Checking for possible conflicts...Merging commit 9b917f58 (Commit3) onto 969f2890 (Commit5)Staging changes...0 Building final tree PointsTree Points staged in 2.338 msDone.Merging commit 4bc65974 (Commit4) onto 969f2890 (Commit5)Staging changes...Building final tree PointsTree Points staged in 548.2 μsBuilding final tree LinesTree Lines staged in 487.4 μsDone.Creating merge commitMerge: created merge commit Commit[8c88b2dfa072683f9d1d8dc8029735863facccb4, 'Merge branch refs/heads/branch1Merge branch refs/heads/branch2'][8c88b2dfa072683f9d1d8dc8029735863facccb4] Merge branch refs/heads/branch1Merge branch refs/heads/branch2Committed, counting objects...3 features added, 0 changed, 0 deleted. Merge: merging [9b917f58dee0870f794ab0a4fb855ebf860aaff0, 4bc659749aaaae24baf56d82d094d8a60b37ee4b] onto HEAD -> [refs/heads/master -> 969f2890e63e732fc6f5af8f3c9819e29a2f5f9e]Checking for possible conflicts...Merging commit 9b917f58 (Commit3) onto 969f2890 (Commit5)Staging changes...0 Building final tree PointsTree Points staged in 2.338 msDone.Merging commit 4bc65974 (Commit4) onto 969f2890 (Commit5)Staging changes...Building final tree PointsTree Points staged in 548.2 μsBuilding final tree LinesTree Lines staged in 487.4 μsDone.Creating merge commitMerge: created merge commit Commit[8c88b2dfa072683f9d1d8dc8029735863facccb4, 'Merge branch refs/heads/branch1Merge branch refs/heads/branch2'][8c88b2dfa072683f9d1d8dc8029735863facccb4] Merge branch refs/heads/branch1Merge branch refs/heads/branch2Committed, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge two conflicting branches using --ours strategy': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to perform an octopus merge # Merge.feature:66 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "merge branch1 branch2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Merge branch refs/heads/branch1" # DefaultStepDefinitions.the_response_should_contain(String) Then the response should contain "Merge branch refs/heads/branch2" # DefaultStepDefinitions.the_response_should_contain(String) Merge: merging [810abcd7a2d9de4f0e1fa0ccbc57ffd0414a9646] onto HEAD -> [refs/heads/master -> 254d8ad31b44c330443b1604dea9443b525a6173]Checking for possible conflicts...Possible conflicts. Creating intermediate merge status...5.0 Staging 1 unconflicted and 0 merged differences...0 Building final tree PointsTree Points staged in 689.9 μsDone.Creating merge commitMerge: created merge commit Commit[ca8c1f14114594203b0196def6f9abc39b105d19, 'Merge branch refs/heads/branch1'][ca8c1f14114594203b0196def6f9abc39b105d19] Merge branch refs/heads/branch1Committed, counting objects...1 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge two conflicting branches using --ours and --theirs strategy': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge two conflicting branches using --ours strategy # Merge.feature:73 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1 --ours" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Merge branch refs/heads/branch1" # DefaultStepDefinitions.the_response_should_contain(String) Cannot use both --ours and --theirs. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to merge two conflicting branches using --theirs strategy': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge two conflicting branches using --ours and --theirs strategy # Merge.feature:79 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1 --ours --theirs" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot use both --ours and --theirs" # DefaultStepDefinitions.the_response_should_contain(String) Merge: merging [3e1440b3f66f7ea4e3e11d3f7a67b355d7c44933] onto HEAD -> [refs/heads/master -> 217a00f0873714fa73d849fe94891112e64deb3e]Checking for possible conflicts...Merging commit 3e1440b3 (Commit4) onto 217a00f0 (Commit3)Conflicts: 1, merged: 0, unconflicted: 1Staging changes...0 Building final tree PointsTree Points staged in 669.0 μsDone.Creating merge commitMerge: created merge commit Commit[a2df960e42a7e668e279a59db623c1c69da59dc5, 'Merge branch refs/heads/branch1'][a2df960e42a7e668e279a59db623c1c69da59dc5] Merge branch refs/heads/branch1Committed, counting objects...1 features added, 1 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to abort a conflicted merge': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to merge two conflicting branches using --theirs strategy # Merge.feature:85 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "merge branch1 --theirs" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Merge branch refs/heads/branch1" # DefaultStepDefinitions.the_response_should_contain(String) Merge aborted successfully. # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to abort when there is no conflict': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to abort a conflicted merge # Merge.feature:91 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "merge branch1 --abort" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Merge aborted successfully" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing to commit" # DefaultStepDefinitions.the_response_should_contain(String) There is no merge to abort . Scenario: Try to abort when there is no conflict # Merge.feature:99 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "merge --abort" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "There is no merge to abort" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Feature: "rebase" command In order to linearize the geogig history As a Geogig User I want to rebase my local commits onto an existing branch [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase one branch to a parent branch': Using URIBuilder DefaultTestRepoURIBuilder Commit: a2ccb0330faa1a86dcc19448313a207020e9f1ddAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:24 -0300Subject: Commit3Commit: 4f4fce159606d7d8ce7a42fb319e0b76a4428e35Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit2Commit: 6ecc2e44341827e7e68c481b6aa3b9f7235628a6Author: John Doe Date: (just now) 2018-09-30 20:07:24 -0300Subject: Commit5Commit: a3d8137596b0862e4fce98811ea96a6cef07b6edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit1 Commit: a2ccb0330faa1a86dcc19448313a207020e9f1ddAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:24 -0300Subject: Commit3Commit: 4f4fce159606d7d8ce7a42fb319e0b76a4428e35Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit2Commit: 6ecc2e44341827e7e68c481b6aa3b9f7235628a6Author: John Doe Date: (just now) 2018-09-30 20:07:24 -0300Subject: Commit5Commit: a3d8137596b0862e4fce98811ea96a6cef07b6edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit1 Commit: a2ccb0330faa1a86dcc19448313a207020e9f1ddAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:24 -0300Subject: Commit3Commit: 4f4fce159606d7d8ce7a42fb319e0b76a4428e35Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit2Commit: 6ecc2e44341827e7e68c481b6aa3b9f7235628a6Author: John Doe Date: (just now) 2018-09-30 20:07:24 -0300Subject: Commit5Commit: a3d8137596b0862e4fce98811ea96a6cef07b6edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit1 Commit: a2ccb0330faa1a86dcc19448313a207020e9f1ddAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:24 -0300Subject: Commit3Commit: 4f4fce159606d7d8ce7a42fb319e0b76a4428e35Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit2Commit: 6ecc2e44341827e7e68c481b6aa3b9f7235628a6Author: John Doe Date: (just now) 2018-09-30 20:07:24 -0300Subject: Commit5Commit: a3d8137596b0862e4fce98811ea96a6cef07b6edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:23 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase one branch to a parent branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase one branch to a parent branch # Rebase.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase master branch1" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 6e9fb0f845b26283d10853b9e44b1c333eef3009Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: squashmessageCommit: 84f1dc7c304fd0aee89ff53714f83f3f576233aeAuthor: John Doe Date: (just now) 2018-09-30 20:07:27 -0300Subject: Commit5Commit: 35d03515f5a8ad896470c3f45dc6a7ed4940aba7Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: Commit1 Commit: 6e9fb0f845b26283d10853b9e44b1c333eef3009Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: squashmessageCommit: 84f1dc7c304fd0aee89ff53714f83f3f576233aeAuthor: John Doe Date: (just now) 2018-09-30 20:07:27 -0300Subject: Commit5Commit: 35d03515f5a8ad896470c3f45dc6a7ed4940aba7Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: Commit1 Commit: 6e9fb0f845b26283d10853b9e44b1c333eef3009Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: squashmessageCommit: 84f1dc7c304fd0aee89ff53714f83f3f576233aeAuthor: John Doe Date: (just now) 2018-09-30 20:07:27 -0300Subject: Commit5Commit: 35d03515f5a8ad896470c3f45dc6a7ed4940aba7Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:26 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to graft a branch onto another branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase one branch to a parent branch # Rebase.feature:20 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase master branch1 --squash squashmessage" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|branch2}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain "squashmessage" # DefaultStepDefinitions.the_response_should_contain(String) Commit: 190cd9346a5a1f642e0826b0282dea9bbe35748cAuthor: John Doe Date: (just now) 2018-09-30 20:07:29 -0300Subject: Commit4Commit: 9c166835f05a1d0c6b255df714892727eb704ee5Author: John Doe Date: (just now) 2018-09-30 20:07:30 -0300Subject: Commit5Commit: 54e9a1b1fb6de925a50e272e745804a0cccff12fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:28 -0300Subject: Commit1 Commit: 190cd9346a5a1f642e0826b0282dea9bbe35748cAuthor: John Doe Date: (just now) 2018-09-30 20:07:29 -0300Subject: Commit4Commit: 9c166835f05a1d0c6b255df714892727eb704ee5Author: John Doe Date: (just now) 2018-09-30 20:07:30 -0300Subject: Commit5Commit: 54e9a1b1fb6de925a50e272e745804a0cccff12fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:28 -0300Subject: Commit1 Commit: 190cd9346a5a1f642e0826b0282dea9bbe35748cAuthor: John Doe Date: (just now) 2018-09-30 20:07:29 -0300Subject: Commit4Commit: 9c166835f05a1d0c6b255df714892727eb704ee5Author: John Doe Date: (just now) 2018-09-30 20:07:30 -0300Subject: Commit5Commit: 54e9a1b1fb6de925a50e272e745804a0cccff12fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:28 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase a nonexistant branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to graft a branch onto another branch # Rebase.feature:34 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase branch1 branch2 --onto master" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Commit3" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit5" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase to a nonexistant upstream': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase a nonexistant branch # Rebase.feature:45 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase master nonexistant" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The branch reference could not be resolved." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to graft a branch onto a nonexistant branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase to a nonexistant upstream # Rebase.feature:52 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase nonexistant branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The upstream reference could not be resolved." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to graft a branch onto a nonexistant branch # Rebase.feature:59 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "rebase master branch1 --onto nonexistant" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "The onto reference could not be resolved." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase with conflicts and skip': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase from an empty directory # Rebase.feature:66 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "rebase master branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() 0.0 error: could not apply 70b315b3 Commit2CONFLICT: conflict in Points/Points.1When you have fixed this conflicts, run 'geogig rebase --continue' to continue rebasing.If you would prefer to skip this commit, instead run 'geogig rebase --skip.To check out the original branch and stop rebasing, run 'geogig rebase --abort' Commit: ee8e041d2414e801e372f4d386813649ab6e0c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:39 -0300Subject: Commit3Commit: 657b81dc90d44aeb1dec2c941804a0c195c984c8Author: John Doe Date: (just now) 2018-09-30 20:07:40 -0300Subject: Commit4Commit: 52dd391ecc0977681e6c81acf6e3c8f49819b360Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:38 -0300Subject: Commit1 Commit: ee8e041d2414e801e372f4d386813649ab6e0c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:39 -0300Subject: Commit3Commit: 657b81dc90d44aeb1dec2c941804a0c195c984c8Author: John Doe Date: (just now) 2018-09-30 20:07:40 -0300Subject: Commit4Commit: 52dd391ecc0977681e6c81acf6e3c8f49819b360Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:38 -0300Subject: Commit1 Commit: ee8e041d2414e801e372f4d386813649ab6e0c9cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:07:39 -0300Subject: Commit3Commit: 657b81dc90d44aeb1dec2c941804a0c195c984c8Author: John Doe Date: (just now) 2018-09-30 20:07:40 -0300Subject: Commit4Commit: 52dd391ecc0977681e6c81acf6e3c8f49819b360Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:38 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase with conflicts and continue': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase with conflicts and skip # Rebase.feature:72 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "rebase branch1 master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "CONFLICT" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I run the command "rebase --skip" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Commit2" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 75ef33a7e10369c08f17ad3401edb5e249879a31Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit3Commit: 0aeeff3f85d7a80c7ca21edb329de243878ab061Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit2Commit: 8806d8e078272741558465a26fca33dee35b8440Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:43 -0300Subject: Commit4Commit: 45b7406cc0abe2a89b9c6cdce70631bc02326672Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit1 Commit: 75ef33a7e10369c08f17ad3401edb5e249879a31Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit3Commit: 0aeeff3f85d7a80c7ca21edb329de243878ab061Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit2Commit: 8806d8e078272741558465a26fca33dee35b8440Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:43 -0300Subject: Commit4Commit: 45b7406cc0abe2a89b9c6cdce70631bc02326672Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit1 Commit: 75ef33a7e10369c08f17ad3401edb5e249879a31Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit3Commit: 0aeeff3f85d7a80c7ca21edb329de243878ab061Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit2Commit: 8806d8e078272741558465a26fca33dee35b8440Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:43 -0300Subject: Commit4Commit: 45b7406cc0abe2a89b9c6cdce70631bc02326672Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit1 Commit: 75ef33a7e10369c08f17ad3401edb5e249879a31Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit3Commit: 0aeeff3f85d7a80c7ca21edb329de243878ab061Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit2Commit: 8806d8e078272741558465a26fca33dee35b8440Author: John Doe Date: (1 seconds ago) 2018-09-30 20:07:43 -0300Subject: Commit4Commit: 45b7406cc0abe2a89b9c6cdce70631bc02326672Author: John Doe Date: (2 seconds ago) 2018-09-30 20:07:42 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase with conflicts and abort': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase with conflicts and continue # Rebase.feature:86 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() And I run the command "rebase branch1 master" # DefaultStepDefinitions.I_run_the_command_X(String) And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I run the command "add" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "rebase --continue" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@ObjectId|localrepo|master~3}" # DefaultStepDefinitions.checkResponseTextContains(String) 0.0 Building final tree PointsTree Points staged in 537.1 μsRemoving 0 merged conflicts...Done. 1 unmerged conflicts.error: could not apply af2b3728 Commit4CONFLICT: conflict in Points/Points.1When you have fixed this conflicts, run 'geogig rebase --continue' to continue rebasing.If you would prefer to skip this commit, instead run 'geogig rebase --skip.To check out the original branch and stop rebasing, run 'geogig rebase --abort' Rebase aborted successfully. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase --skip when no conflict exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase with conflicts and abort # Rebase.feature:101 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have conflicting branches # DefaultStepDefinitions.I_have_conflicting_branches() When I run the command "rebase master branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "CONFLICT" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I run the command "rebase --abort" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "aborted successfully" # DefaultStepDefinitions.the_response_should_contain(String) Cannot skip. You are not in the middle of a rebase process. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase --continue when no conflict exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase --skip when no conflict exist # Rebase.feature:110 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "rebase --skip" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot skip" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Cannot continue. You are not in the middle of a rebase process. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to rebase --abort when no conflict exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to rebase --continue when no conflict exist # Rebase.feature:116 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "rebase --continue" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot continue" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Cannot abort. You are not in the middle of a rebase process. Scenario: Try to rebase --abort when no conflict exist # Rebase.feature:122 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "rebase --abort" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot abort" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Feature: "rm" command In order to remove features from the repository As a Geogig User I want to delete features and trees from the working tree [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a single feature': Using URIBuilder DefaultTestRepoURIBuilder Deleting features...Staging changes...Computing result count...Deleted 1 feature(s) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete several features': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a single feature # Remove.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "rm Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted 1 feature(s)" # DefaultStepDefinitions.the_response_should_contain(String) Deleting features...Staging changes...Computing result count...Deleted 2 feature(s) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a whole tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete several features # Remove.feature:15 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "rm Points/Points.1 Points/Points.2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted 2 feature(s)" # DefaultStepDefinitions.the_response_should_contain(String) Deleted Points treeStaging changes...Computing result count...Deleted 2 feature(s)Deleted 1 trees [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a whole tree without the -r modifier': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a whole tree # Remove.feature:24 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "rm Points -r " # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted Points tree" # DefaultStepDefinitions.the_response_should_contain(String) Cannot remove tree Points if recursive or truncate is not specified [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete an inexistent feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a whole tree without the -r modifier # Remove.feature:33 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "rm Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Cannot remove tree Points if recursive or truncate is not specified" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Deleting features...Staging changes...Computing result count...Deleted 0 feature(s) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Truncate a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete an inexistent feature # Remove.feature:43 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "rm Points/Wrong.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted 0 feature(s)" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Truncated Points treeStaging changes...Computing result count...Deleted 2 feature(s) Points 0Lines 1 Scenario: Truncate a tree # Remove.feature:53 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "rm Points -t " # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Truncated Points tree" # DefaultStepDefinitions.the_response_should_contain(String) When I run the command "ls-tree -s" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Points 0" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "reset" command In order to undo local changes As a Geogig User I want to reset the head, and optionally, the working tree and index to the state of another commit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a mixed reset of all local changes': Using URIBuilder DefaultTestRepoURIBuilder 100.0 [1c7efd2dbf25363a3193aea466a1a4df52a9c0e3] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. Unstaged changes after reset:M Points/Points.1 # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a hard reset of all local changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a mixed reset of all local changes # Reset.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --mixed" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unstaged changes after reset:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_not_contain(String) 100.0 [61afe8f4fbfe245f56d920d4fce62ab106bc4384] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a soft reset of all local changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a hard reset of all local changes # Reset.feature:21 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --hard" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing to commit" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [a4e82cfe7a53ff5d81c7918a63aa87bd23496f80] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## modified Points# modified Points/Points.1# 2 total.# [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a mixed and hard reset of all local changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a soft reset of all local changes # Reset.feature:34 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --soft" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [cbb4aec0eb9ec959f8eb36c2e68573a1df4a1bed] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a mixed and soft reset of all local changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a mixed and hard reset of all local changes # Reset.feature:48 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --hard --mixed" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "you may only specify one mode." # DefaultStepDefinitions.it_should_answer_exactly(String) 100.0 [d5cef94ed038e9efb0bbdc8b8c273048fbf25613] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to reset from an empty directory': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a mixed and soft reset of all local changes # Reset.feature:59 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --soft --mixed" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "you may only specify one mode." # DefaultStepDefinitions.it_should_answer_exactly(String) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to reset with no commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to reset from an empty directory # Reset.feature:70 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "reset" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to reset to a nonexistant commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to reset with no commits # Reset.feature:76 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "reset" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Commit could not be resolved." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() 100.0 [bc6126132e2c543d92ec9659101b88c57e0d68e2] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a reset of a specific path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to reset to a nonexistant commit # Reset.feature:82 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset nonexistant" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Commit could not be resolved." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() 100.0 [c4c563ee2a00822f43904dfeec84aae466b48091] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. Unstaged changes after reset:M Points/Points.1 # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a reset of a non-used path': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a reset of a specific path # Reset.feature:94 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --path Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unstaged changes after reset:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_not_contain(String) 100.0 [a42a0ab95c4e3c1f10957215bfc4bbb9347d85d1] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## modified Points# modified Points/Points.1# 2 total.# [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a reset of multiple paths': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a reset of a non-used path # Reset.feature:109 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --path Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "" # DefaultStepDefinitions.it_should_answer_exactly(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) 100.0 [20f1920a0cfb8a475980badbe4a44e18aec618a4] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. Unstaged changes after reset:M Points/Points.1 # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to reset to the state of another branch': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a reset of multiple paths # Reset.feature:123 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --path Lines Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unstaged changes after reset:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_not_contain(String) Unstaged changes after reset:A Lines/Lines.1 Commit: c56597431cb2b50b0d398fe23cc7cb1171f074adAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit3Commit: 8a8c5caa1128398e64a2a41ee6d57f88c0dfb1f2Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit2Commit: 363670a5ab515885c03b603932ce365209edf5b0Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:12 -0300Subject: Commit1 Commit: c56597431cb2b50b0d398fe23cc7cb1171f074adAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit3Commit: 8a8c5caa1128398e64a2a41ee6d57f88c0dfb1f2Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit2Commit: 363670a5ab515885c03b603932ce365209edf5b0Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:12 -0300Subject: Commit1 Commit: c56597431cb2b50b0d398fe23cc7cb1171f074adAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit3Commit: 8a8c5caa1128398e64a2a41ee6d57f88c0dfb1f2Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:13 -0300Subject: Commit2Commit: 363670a5ab515885c03b603932ce365209edf5b0Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:12 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a reset with a mode and paths': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to reset to the state of another branch # Reset.feature:138 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several branches # DefaultStepDefinitions.I_have_several_branches() When I run the command "checkout branch2" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "reset branch1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unstaged changes after reset:" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|branch1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should not contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain "Subject: Commit5" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should not contain variable "{@ObjectId|localrepo|master}" # DefaultStepDefinitions.checkResponseTextDoesNotContain(String) 100.0 [e7e9e0ddc45276765741c1941d4af983ce7673de] TestCommitted, counting objects...3 features added, 0 changed, 0 deleted. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to do a reset with removed feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to do a reset with a mode and paths # Reset.feature:154 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "commit -m Test" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "3 features added" # DefaultStepDefinitions.the_response_should_contain(String) When I modify and add a feature # DefaultStepDefinitions.I_modify_and_add_a_feature() And I run the command "reset --hard --path Lines" # DefaultStepDefinitions.I_run_the_command_X(String) Then it should answer "Ambiguous call, cannot specify paths and reset mode." # DefaultStepDefinitions.it_should_answer_exactly(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Unstaged changes after reset:D Points/Points.1 Scenario: Try to do a reset with removed feature # Reset.feature:166 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I remove and add a feature # DefaultStepDefinitions.I_remove_and_add_a_feature() When I run the command "reset" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Unstaged changes after reset" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "revert" command In order to undo committed changes As a Geogig user I want to revert a series of commits and commit those changes [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert something while not in a geogig repository': Using URIBuilder DefaultTestRepoURIBuilder Not in a geogig repository: /opt/public/hipp/ramdisk/geogig/junit6354988521215949124/data [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert with nothing specified for reverting': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert something while not in a geogig repository # Revert.feature:6 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() And I run the command "revert master" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() nothing specified for reverting [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert one commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert with nothing specified for reverting # Revert.feature:12 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I run the command "revert" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing specified for reverting" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 0aa8af81ee55463afac04888c987b524aed31bbf (Commit4) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 1 features in 4.065 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 1 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 1 changes staged in 10.55 ms Commit: 30a838d7bf8a8674a1886105a365ec6416b824ecAuthor: John Doe Date: (just now) 2018-10-01 00:08:21 +0100Subject: Revert 'Commit4'This reverts 0aa8af81ee55463afac04888c987b524aed31bbfCommit: 0aa8af81ee55463afac04888c987b524aed31bbfAuthor: John Doe Date: (just now) 2018-09-30 20:08:21 -0300Subject: Commit4Commit: 6d9437d943e225ebac327788493d38626349cd1dAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit3Commit: 54eb8bd32336bdc74cfd74ccc09971e77e05ca0eAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit2Commit: 75734e5b5b313ca2745373207ee49b9c84ac35edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:20 -0300Subject: Commit1 Commit: 30a838d7bf8a8674a1886105a365ec6416b824ecAuthor: John Doe Date: (just now) 2018-10-01 00:08:21 +0100Subject: Revert 'Commit4'This reverts 0aa8af81ee55463afac04888c987b524aed31bbfCommit: 0aa8af81ee55463afac04888c987b524aed31bbfAuthor: John Doe Date: (just now) 2018-09-30 20:08:21 -0300Subject: Commit4Commit: 6d9437d943e225ebac327788493d38626349cd1dAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit3Commit: 54eb8bd32336bdc74cfd74ccc09971e77e05ca0eAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit2Commit: 75734e5b5b313ca2745373207ee49b9c84ac35edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:20 -0300Subject: Commit1 Commit: 30a838d7bf8a8674a1886105a365ec6416b824ecAuthor: John Doe Date: (just now) 2018-10-01 00:08:21 +0100Subject: Revert 'Commit4'This reverts 0aa8af81ee55463afac04888c987b524aed31bbfCommit: 0aa8af81ee55463afac04888c987b524aed31bbfAuthor: John Doe Date: (just now) 2018-09-30 20:08:21 -0300Subject: Commit4Commit: 6d9437d943e225ebac327788493d38626349cd1dAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit3Commit: 54eb8bd32336bdc74cfd74ccc09971e77e05ca0eAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit2Commit: 75734e5b5b313ca2745373207ee49b9c84ac35edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:20 -0300Subject: Commit1 Commit: 30a838d7bf8a8674a1886105a365ec6416b824ecAuthor: John Doe Date: (just now) 2018-10-01 00:08:21 +0100Subject: Revert 'Commit4'This reverts 0aa8af81ee55463afac04888c987b524aed31bbfCommit: 0aa8af81ee55463afac04888c987b524aed31bbfAuthor: John Doe Date: (just now) 2018-09-30 20:08:21 -0300Subject: Commit4Commit: 6d9437d943e225ebac327788493d38626349cd1dAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit3Commit: 54eb8bd32336bdc74cfd74ccc09971e77e05ca0eAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit2Commit: 75734e5b5b313ca2745373207ee49b9c84ac35edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:20 -0300Subject: Commit1 Commit: 30a838d7bf8a8674a1886105a365ec6416b824ecAuthor: John Doe Date: (just now) 2018-10-01 00:08:21 +0100Subject: Revert 'Commit4'This reverts 0aa8af81ee55463afac04888c987b524aed31bbfCommit: 0aa8af81ee55463afac04888c987b524aed31bbfAuthor: John Doe Date: (just now) 2018-09-30 20:08:21 -0300Subject: Commit4Commit: 6d9437d943e225ebac327788493d38626349cd1dAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit3Commit: 54eb8bd32336bdc74cfd74ccc09971e77e05ca0eAuthor: John Doe Date: (just now) 2018-09-30 20:08:20 -0300Subject: Commit2Commit: 75734e5b5b313ca2745373207ee49b9c84ac35edAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:20 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert a commit that doesn't exist': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert one commit # Revert.feature:18 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert master" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Revert 'Commit4'" # DefaultStepDefinitions.the_response_should_contain(String) Couldn't resolve 'doesntExist' to a commit, aborting revert. Commit: 0df14368417786867030682127a0ec6ba85f9a91Author: John Doe Date: (just now) 2018-09-30 20:08:23 -0300Subject: Commit4Commit: 2f5d236fd87948b483e538f77c1e01286c6d9b2fAuthor: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit3Commit: b7b0f6bad9c4b5033833bc16f4676909e1a58b53Author: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit2Commit: d5cdee6e827ea88252e23401f3e423912983c142Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:22 -0300Subject: Commit1 Commit: 0df14368417786867030682127a0ec6ba85f9a91Author: John Doe Date: (just now) 2018-09-30 20:08:23 -0300Subject: Commit4Commit: 2f5d236fd87948b483e538f77c1e01286c6d9b2fAuthor: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit3Commit: b7b0f6bad9c4b5033833bc16f4676909e1a58b53Author: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit2Commit: d5cdee6e827ea88252e23401f3e423912983c142Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:22 -0300Subject: Commit1 Commit: 0df14368417786867030682127a0ec6ba85f9a91Author: John Doe Date: (just now) 2018-09-30 20:08:23 -0300Subject: Commit4Commit: 2f5d236fd87948b483e538f77c1e01286c6d9b2fAuthor: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit3Commit: b7b0f6bad9c4b5033833bc16f4676909e1a58b53Author: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit2Commit: d5cdee6e827ea88252e23401f3e423912983c142Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:22 -0300Subject: Commit1 Commit: 0df14368417786867030682127a0ec6ba85f9a91Author: John Doe Date: (just now) 2018-09-30 20:08:23 -0300Subject: Commit4Commit: 2f5d236fd87948b483e538f77c1e01286c6d9b2fAuthor: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit3Commit: b7b0f6bad9c4b5033833bc16f4676909e1a58b53Author: John Doe Date: (just now) 2018-09-30 20:08:22 -0300Subject: Commit2Commit: d5cdee6e827ea88252e23401f3e423912983c142Author: John Doe Date: (1 seconds ago) 2018-09-30 20:08:22 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert multiple commits': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert a commit that doesn't exist # Revert.feature:29 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert doesntExist" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Couldn't resolve 'doesntExist' to a commit, aborting revert" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Subject: Revert 'Commit4'" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 91ea74edc5e37324e40c8dd417b9b3cebfc500bc (Commit3) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 2 features in 12.76 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 2 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 2 changes staged in 11.78 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 309f61817ac8894cff68bac4bd7b51192baa85eb (Commit2) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 2 features in 12.71 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 2 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 2 changes staged in 11.19 ms Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 Commit: f57cb6865bdec0188e7a1f80886b7d13fed86da3Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit2'This reverts 309f61817ac8894cff68bac4bd7b51192baa85ebCommit: 51308f97356eb6b54077fec1b8700ed59fa0a0e9Author: John Doe Date: (just now) 2018-10-01 00:08:25 +0100Subject: Revert 'Commit3'This reverts 91ea74edc5e37324e40c8dd417b9b3cebfc500bcCommit: 00662ac30e3d18696b5eb8e95c394a4ad3834c1eAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit4Commit: 91ea74edc5e37324e40c8dd417b9b3cebfc500bcAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit3Commit: 309f61817ac8894cff68bac4bd7b51192baa85ebAuthor: John Doe Date: (just now) 2018-09-30 20:08:24 -0300Subject: Commit2Commit: 6c0ab348d7d76cd0ff987112e79bf63d6114d54cAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:23 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert multiple commits but with one nonexistant commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert multiple commits # Revert.feature:42 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert master~1 master~2" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Revert 'Commit2'" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Revert 'Commit3'" # DefaultStepDefinitions.the_response_should_contain(String) Couldn't resolve 'blah' to a commit, aborting revert. Commit: 2382f62770a291ba34cd54bc35be3e53bd9585a7Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit4Commit: 459ff9469c8b1d6686305a16aadacb706813cab1Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit3Commit: 77c48c97871ac7077b1b830478007553e32d115eAuthor: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit2Commit: 883fed4bc78c886ea0a8e74337b87209fb2a3c6fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:25 -0300Subject: Commit1 Commit: 2382f62770a291ba34cd54bc35be3e53bd9585a7Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit4Commit: 459ff9469c8b1d6686305a16aadacb706813cab1Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit3Commit: 77c48c97871ac7077b1b830478007553e32d115eAuthor: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit2Commit: 883fed4bc78c886ea0a8e74337b87209fb2a3c6fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:25 -0300Subject: Commit1 Commit: 2382f62770a291ba34cd54bc35be3e53bd9585a7Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit4Commit: 459ff9469c8b1d6686305a16aadacb706813cab1Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit3Commit: 77c48c97871ac7077b1b830478007553e32d115eAuthor: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit2Commit: 883fed4bc78c886ea0a8e74337b87209fb2a3c6fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:25 -0300Subject: Commit1 Commit: 2382f62770a291ba34cd54bc35be3e53bd9585a7Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit4Commit: 459ff9469c8b1d6686305a16aadacb706813cab1Author: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit3Commit: 77c48c97871ac7077b1b830478007553e32d115eAuthor: John Doe Date: (just now) 2018-09-30 20:08:26 -0300Subject: Commit2Commit: 883fed4bc78c886ea0a8e74337b87209fb2a3c6fAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:25 -0300Subject: Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert with conflict and abort': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert multiple commits but with one nonexistant commit # Revert.feature:54 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert master~1 blah" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Couldn't resolve 'blah' to a commit, aborting revert" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Subject: Commit1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit3" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Subject: Commit4" # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Subject: Revert of commit" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 398b4d4d21cb13f60616227c4ecb0b59575bafbb (Commit1) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 2 features in 13.63 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 1 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 1 changes staged in 10.23 ms error: could not apply 398b4d4d Commit1CONFLICT: conflict in Points/Points.1When you have fixed these conflicts, run 'geogig revert --continue' to continue the revert operation.To abort the revert operation, run 'geogig revert --abort' error: could not apply 398b4d4d Commit1CONFLICT: conflict in Points/Points.1When you have fixed these conflicts, run 'geogig revert --continue' to continue the revert operation.To abort the revert operation, run 'geogig revert --abort' Revert aborted successfully. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert without commiting': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert with conflict and abort # Revert.feature:68 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert HEAD~3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "could not apply" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "CONFLICT: conflict in Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I run the command "revert --abort" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "aborted" # DefaultStepDefinitions.the_response_should_contain(String) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 9d79f5f362beb7dbebee0b8771422babea240108 (Commit4) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 1 features in 2.203 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 1 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 1 changes staged in 8.976 ms [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to revert with conflict and continue': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to revert without commiting # Revert.feature:78 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "revert master --no-commit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should not contain "Revert" # DefaultStepDefinitions.the_response_should_not_contain(String) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Creating revert state of commit 8ca34fc2a61de000d22d642788b585c781372fda (Commit1) [main] INFO org.locationtech.geogig.porcelain.RevertOp - Created revert state of 2 features in 3.075 ms [main] INFO org.locationtech.geogig.porcelain.RevertOp - Staging 1 changes... [main] INFO org.locationtech.geogig.porcelain.RevertOp - 1 changes staged in 9.310 ms error: could not apply 8ca34fc2 Commit1CONFLICT: conflict in Points/Points.1When you have fixed these conflicts, run 'geogig revert --continue' to continue the revert operation.To abort the revert operation, run 'geogig revert --abort' Commit: bbdca2ecd4358f81b7fe781675b63056dd02b860Author: John Doe Date: (just now) 2018-10-01 00:08:33 +0100Subject: Revert 'Commit1'This reverts 8ca34fc2a61de000d22d642788b585c781372fdaCommit: e5dec1335c36efe246f55beb80de40d2007965d6Author: John Doe Date: (just now) 2018-09-30 20:08:32 -0300Subject: Commit4Commit: 68038b2aa4fb94ba4df082a828fec3d2945a3edeAuthor: John Doe Date: (just now) 2018-09-30 20:08:32 -0300Subject: Commit3Commit: 74617510e65fb041715f1cc45b9f14734bbcc57bAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:32 -0300Subject: Commit2Commit: 8ca34fc2a61de000d22d642788b585c781372fdaAuthor: John Doe Date: (1 seconds ago) 2018-09-30 20:08:31 -0300Subject: Commit1 Scenario: Try to revert with conflict and continue # Revert.feature:85 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "revert HEAD~3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "could not apply" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() When I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) When I run the command "revert --continue" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Revert" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "show" command In order to know about a given element As a Geogig User I want to display information about it [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a feature using only its path': Using URIBuilder DefaultTestRepoURIBuilder ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a feature using only its path # Show.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "ATTRIBUTES" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURE TYPE ID" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "sp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "pp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ip" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) Commit: 096157570fb5122352c7c8ef32d2324a625f8dadAuthor: John Doe Committer: John Doe Author date: (just now) Sun Sep 30 19:08:36 EDT 2018Committer date:(just now) Sun Sep 30 19:08:36 EDT 2018Subject: TestCommit Commit: 096157570fb5122352c7c8ef32d2324a625f8dadAuthor: John Doe Committer: John Doe Author date: (just now) Sun Sep 30 19:08:36 EDT 2018Committer date:(just now) Sun Sep 30 19:08:36 EDT 2018Subject: TestCommit [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a tree': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a commit # Show.feature:19 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Author" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a feature': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a tree # Show.feature:28 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show HEAD:Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "TREE ID" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "DEFAULT FEATURE TYPE ATTRIBUTES" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "sp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "pp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ip" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) ID: a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0ATTRIBUTES ---------- sp: StringProp1_1ip: 1000pp: POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a feature using its SHA-1': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a feature # Show.feature:41 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show HEAD:Points/Points.1" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "ATTRIBUTES" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "FEATURE TYPE ID" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "sp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "pp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ip" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) And the response should contain variable "{@PointsTypeID}" # DefaultStepDefinitions.checkResponseTextContains(String) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) id a47ca38e5c3e92c94dec9e8ea597c642003ec878FEATURESTRING StringProp1_1INTEGER 1000POINT POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a feature with the --raw modifier': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a feature using its SHA-1 # Show.feature:54 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show a47ca38e5c3e92c94dec9e8ea597c642003ec878" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "FEATURE" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "STRING" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "INTEGER" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "POINT" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|a47ca38e5c3e92c94dec9e8ea597c642003ec878}" # DefaultStepDefinitions.checkResponseTextContains(String) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a 2 features with the --raw modifier': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a feature with the --raw modifier # Show.feature:65 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show HEAD:Points/Points.1 --raw" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "STRING" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "INTEGER" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "POINT urn:ogc:def:crs:EPSG::4326" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "sp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "pp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ip" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) HEAD:Points/Points.1a47ca38e5c3e92c94dec9e8ea597c642003ec878spSTRINGStringProp1_1ipINTEGER1000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (1 1)HEAD:Points/Points.20d0cdfa256daf663172f01a0a0d06a9ecf69e113spSTRINGStringProp1_2ipINTEGER2000ppPOINT urn:ogc:def:crs:EPSG::4326POINT (2 2) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to show the description of a featuretype': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to show the description of a 2 features with the --raw modifier # Show.feature:78 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show HEAD:Points/Points.1 HEAD:Points/Points.2 --raw" # DefaultStepDefinitions.I_run_the_command_X(String) And the response should contain "HEAD:Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "HEAD:Points/Points.2" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "STRING" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "INTEGER" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "POINT" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "sp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "pp" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "ip" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD:Points/Points.1}" # DefaultStepDefinitions.checkResponseTextContains(String) TREE ID: 99dfd3607e82eb0f85baa185c60da9da9d8858d9SIZE: 3NUMBER Of SUBTREES: 0DEFAULT FEATURE TYPE ID: 10b5dc054390266e0cc7b59ef34f543441f071e0DEFAULT FEATURE TYPE ATTRIBUTESsp: ip: pp: Scenario: Try to show the description of a featuretype # Show.feature:93 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I stage 6 features # DefaultStepDefinitions.I_stage_6_features() And I run the command "commit -m TestCommit" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "show Points" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "TREE ID" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "squash" command In order to modify history of the repository As a Geogig User I want to squash commits [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Squash commits': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Squash commits with message': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Squash commits # Squash.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "squash HEAD~2 HEAD" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log --oneline" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) 8d839ceda3cadb64479d419314920a415287e1cf squashedbd872abe653fa6aa641840002e09819ae9fb487c Commit1 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Squash commits in wrong order': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Squash commits with message # Squash.feature:14 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "squash HEAD~2 HEAD -m squashed" # DefaultStepDefinitions.I_run_the_command_X(String) And I run the command "log --oneline" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain 2 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) And the response should contain "squashed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Commits provided in wrong order [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Squash commits with only one commit provided': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Squash commits in wrong order # Squash.feature:23 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "squash HEAD HEAD~2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "wrong order" # DefaultStepDefinitions.the_response_should_contain(String) 2 commit references must be supplied Scenario: Squash commits with only one commit provided # Squash.feature:29 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "squash HEAD~2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "2 commit references must be supplied" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "status" command In order to know what I have staged and unstaged As a Geogig User I want to check the status of the current repository [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of an empty directory': Using URIBuilder DefaultTestRepoURIBuilder [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with no changes': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of an empty directory # Status.feature:6 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should start with "Not in a geogig repository" # DefaultStepDefinitions.the_response_should_start_with(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() # On branch masternothing to commit (working directory clean) [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with unstaged changes without using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with no changes # Status.feature:12 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "nothing to commit" # DefaultStepDefinitions.the_response_should_contain(String) # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total. # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged changes without using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with unstaged changes without using a limit # Status.feature:17 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points3" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines3" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 14 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.# # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.# [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged and unstaged changes without using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged changes without using a limit # Status.feature:31 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 14 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with unstaged changes specifying all': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged and unstaged changes without using a limit # Status.feature:45 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "2 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 21 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total. # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged changes specifying all': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with unstaged changes specifying all # Status.feature:61 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points3" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines3" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "status --all" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 14 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.# # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.# [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged and unstaged changes specifying all': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged changes specifying all # Status.feature:75 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) When I run the command "status --all" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should not contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_not_contain(String) And the response should contain 14 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# added Points/Points.3# added Points/Points.1# added Lines/Lines.1# added Lines/Lines.2# added Lines/Lines.3# 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## modified Points# modified Points/Points.1# 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with unstaged changes using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged and unstaged changes specifying all # Status.feature:89 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "status --all" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "2 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 21 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# 8 total. # On branch master# Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## added Points# added Lines# added Points/Points.2# 8 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged changes using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with unstaged changes using a limit # Status.feature:105 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have unstaged "points1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "points3" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines1" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines2" # DefaultStepDefinitions.I_have_unstaged(String) And I have unstaged "lines3" # DefaultStepDefinitions.I_have_unstaged(String) When I run the command "status --limit 3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 9 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# 8 total.# # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## added Points# added Lines# added Points/Points.2# 8 total.# [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with staged and unstaged changes using a limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged changes using a limit # Status.feature:118 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) When I run the command "status --limit 3" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 9 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## 2 total. # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## 8 total.## Changes not staged for commit:# (use "geogig add ..." to update what will be committed# (use "geogig checkout -- ..." to discard changes in working directory## 2 total. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to get the status of a repository with a negative limit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with staged and unstaged changes using a limit # Status.feature:131 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have staged "points1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "points3" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines1" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines2" # DefaultStepDefinitions.I_have_staged(String) And I have staged "lines3" # DefaultStepDefinitions.I_have_staged(String) And I modify a feature # DefaultStepDefinitions.I_modify_a_feature() When I run the command "status --limit 0" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Changes to be committed" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "8 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Changes not staged for commit" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "2 total." # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain 11 lines # DefaultStepDefinitions.the_response_should_contain_x_lines(int) Limit must be 0 or greater. [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try the get the status of a repository with unmerged elements': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to get the status of a repository with a negative limit # Status.feature:147 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() When I run the command "status --limit -2" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Limit must be 0 or greater" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() # On branch master# Changes to be committed:# (use "geogig reset HEAD ..." to unstage)## modified Points# added Points/Points.2# 2 total.## Unmerged paths:# (use "geogig add/rm ..." as appropriate to mark resolution## unmerged Points/Points.1# 1 total. Scenario: Try the get the status of a repository with unmerged elements # Status.feature:153 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have a merge conflict state # DefaultStepDefinitions.I_have_a_merge_conflict_state() When I run the command "status" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "unmerged Points/Points.1" # DefaultStepDefinitions.the_response_should_contain(String) Feature: "tag" command In order to store defined versions of my repository As a Geogig User I want to be create tags [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'List the available tags': Using URIBuilder DefaultTestRepoURIBuilder mytag [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create a new tag': Using URIBuilder DefaultTestRepoURIBuilder Scenario: List the available tags # Tag.feature:6 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "tag mytag -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "tag" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "mytag" # DefaultStepDefinitions.the_response_should_contain(String) Created tag mytag -> 4656afe7a153f617f7f178cfd307aa54aedad28e [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Create a new tag for a given commit': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create a new tag # Tag.feature:13 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag mytag -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created tag mytag ->" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD}" # DefaultStepDefinitions.checkResponseTextContains(String) Created tag mytag -> 20fa8fcff528a89e728985e31daa57c440f92374 [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Delete a tag': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Create a new tag for a given commit # Tag.feature:20 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag mytag HEAD^ -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Created tag mytag ->" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain variable "{@ObjectId|localrepo|HEAD^}" # DefaultStepDefinitions.checkResponseTextContains(String) Deleted tag mytag [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Delete an inexistent tag': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Delete a tag # Tag.feature:27 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "tag mytag -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "tag -d mytag" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Deleted tag mytag" # DefaultStepDefinitions.the_response_should_contain(String) Wrong tag name: wrongtag [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a tag with too many parameters provided': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Delete an inexistent tag # Tag.feature:34 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() And I run the command "tag mytag -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) When I run the command "tag -d wrongtag" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Wrong tag name: wrongtag" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Too many parameters provided [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to delete a tag with too many parameters provided': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a tag with too many parameters provided # Tag.feature:42 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag mytag HEAD^ extraparam -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Too many parameters provided" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Too many parameters provided [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a tag with no message': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to delete a tag with too many parameters provided # Tag.feature:49 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag -d mytag HEAD^" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Too many parameters provided" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() No tag message provided [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'Try to create a tag with a wrong commit ref': Using URIBuilder DefaultTestRepoURIBuilder Scenario: Try to create a tag with no message # Tag.feature:56 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag mytag HEAD^" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "No tag message provided" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() Wrong reference: aaaaaaaa Scenario: Try to create a tag with a wrong commit ref # Tag.feature:63 Given I have a repository # DefaultStepDefinitions.I_have_a_repository() And I have several commits # DefaultStepDefinitions.I_have_several_commits() When I run the command "tag mytag aaaaaaaa -m msg" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Wrong reference: aaaaaaaa" # DefaultStepDefinitions.the_response_should_contain(String) And it should exit with non-zero exit code # DefaultStepDefinitions.it_should_exit_with_non_zero_exit_code() @Version Feature: "version" command In order to view GeoGig version information As a Geogig User I want to display information about it [main] INFO org.locationtech.geogig.cli.test.functional.DefaultStepDefinitions - 'I want to view the GeoGig version': Using URIBuilder DefaultTestRepoURIBuilder Project Version : 1.4-SNAPSHOT Build Time : September 30, 2018 at 19:01:49 EDT Build User Name : GeoGig Bot Build User Email : geogig-bot@eclipse.org Git Branch : origin/master Git Commit ID : 21c329bdb8d649a2e42e22ca0b1fa6605b50b747 Git Commit Time : September 30, 2018 at 18:45:00 EDT Git Commit Author Name : Gabriel Roldan Git Commit Author Email : groldan@boundlessgeo.com Git Commit Message : Merge branch 'bug/update_indexes' Project Version : 1.4-SNAPSHOT Build Time : September 30, 2018 at 19:01:49 EDT Build User Name : GeoGig Bot Build User Email : geogig-bot@eclipse.org Git Branch : origin/master Git Commit ID : 21c329bdb8d649a2e42e22ca0b1fa6605b50b747 Git Commit Time : September 30, 2018 at 18:45:00 EDT Git Commit Author Name : Gabriel Roldan Git Commit Author Email : groldan@boundlessgeo.com Git Commit Message : Merge branch 'bug/update_indexes' Project Version : 1.4-SNAPSHOT Build Time : September 30, 2018 at 19:01:49 EDT Build User Name : GeoGig Bot Build User Email : geogig-bot@eclipse.org Git Branch : origin/master Git Commit ID : 21c329bdb8d649a2e42e22ca0b1fa6605b50b747 Git Commit Time : September 30, 2018 at 18:45:00 EDT Git Commit Author Name : Gabriel Roldan Git Commit Author Email : groldan@boundlessgeo.com Git Commit Message : Merge branch 'bug/update_indexes' Scenario: I want to view the GeoGig version # Version.feature:7 Given I am in an empty directory # DefaultStepDefinitions.I_am_in_an_empty_directory() When I run the command "version" # DefaultStepDefinitions.I_run_the_command_X(String) Then the response should contain "Project Version" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Build Time" # DefaultStepDefinitions.the_response_should_contain(String) And the response should contain "Git Commit ID" # DefaultStepDefinitions.the_response_should_contain(String) 263 Scenarios (263 passed) 1765 Steps (1765 passed) 7m24.984s Tests run: 2028, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 450.734 sec - in org.locationtech.geogig.cli.test.functional.RunPorcelainFunctionalTest Results : Tests run: 3098, Failures: 0, Errors: 0, Skipped: 0 [JENKINS] Recording test results [INFO] [INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ geogig-cli-core --- [INFO] Building jar: /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT.jar [INFO] [INFO] --- maven-jar-plugin:3.0.2:test-jar (default) @ geogig-cli-core --- [INFO] Building jar: /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-tests.jar [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ geogig-cli-core >>> [INFO] [INFO] --- git-commit-id-plugin:2.2.2:revision (default) @ geogig-cli-core --- [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ geogig-cli-core <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ geogig-cli-core --- [INFO] Building jar: /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-sources.jar [INFO] [INFO] >>> maven-source-plugin:3.0.1:test-jar (attach-sources) > generate-sources @ geogig-cli-core >>> [INFO] [INFO] --- git-commit-id-plugin:2.2.2:revision (default) @ geogig-cli-core --- [WARNING] Failed to getClass for org.apache.maven.plugins.source.TestSourceJarMojo [INFO] [INFO] <<< maven-source-plugin:3.0.1:test-jar (attach-sources) < generate-sources @ geogig-cli-core <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.0.1:test-jar (attach-sources) @ geogig-cli-core --- [INFO] Building jar: /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-test-sources.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ geogig-cli-core --- [INFO] Installing /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT.jar to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/.repository/org/locationtech/geogig/geogig-cli-core/1.4-SNAPSHOT/geogig-cli-core-1.4-SNAPSHOT.jar [INFO] Installing /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/pom.xml to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/.repository/org/locationtech/geogig/geogig-cli-core/1.4-SNAPSHOT/geogig-cli-core-1.4-SNAPSHOT.pom [INFO] Installing /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-tests.jar to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/.repository/org/locationtech/geogig/geogig-cli-core/1.4-SNAPSHOT/geogig-cli-core-1.4-SNAPSHOT-tests.jar [INFO] Installing /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-sources.jar to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/.repository/org/locationtech/geogig/geogig-cli-core/1.4-SNAPSHOT/geogig-cli-core-1.4-SNAPSHOT-sources.jar [INFO] Installing /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/src/cli/core/target/geogig-cli-core-1.4-SNAPSHOT-test-sources.jar to /home/hudson/genie.geogig/.jenkins/jobs/geogig-master/workspace/.repository/org/locationtech/geogig/geogig-cli-core/1.4-SNAPSHOT/geogig-cli-core-1.4-SNAPSHOT-test-sources.jar [JENKINS] Archiving disabled