|
| 1 | +@cli |
| 2 | +Feature: install, upgrade and uninstall apps that are available in the market-place |
| 3 | + |
| 4 | + # Note: testing this feature requires that the real market-place be online, |
| 5 | + # working and reachable from the system-under-test. |
| 6 | + # The activity app must not yet be installed on the system-under-test. |
| 7 | + # Happy-path install, upgrade and uninstall are tested all in one scenario as a "user journey" |
| 8 | + # because we need to install anyway, in order to test a normal uninstall. |
| 9 | + Scenario: install, attempt to reinstall, upgrade and uninstall an app that is available in the market-place |
| 10 | + # Note: use the activity app as the example to install |
| 11 | + # it should be an app that is always available |
| 12 | + When the administrator invokes occ command "market:install activity" |
| 13 | + Then the command should have been successful |
| 14 | + And the command output should be: |
| 15 | + """ |
| 16 | + activity: Installing new app ... |
| 17 | + activity: App installed. |
| 18 | + """ |
| 19 | + And app "activity" should be enabled |
| 20 | + # Attempt to install again and check the different message |
| 21 | + When the administrator invokes occ command "market:install activity" |
| 22 | + Then the command should have been successful |
| 23 | + And the command output should be: |
| 24 | + """ |
| 25 | + activity: App already installed and no update available |
| 26 | + """ |
| 27 | + And app "activity" should be enabled |
| 28 | + # Attempt to upgrade and check that no update is available |
| 29 | + When the administrator invokes occ command "market:upgrade activity" |
| 30 | + Then the command should have been successful |
| 31 | + And the command output should be: |
| 32 | + """ |
| 33 | + activity: No update available. |
| 34 | + """ |
| 35 | + And app "activity" should be enabled |
| 36 | + # Uninstall the app - to make sure that uninstall works, and to cleanup |
| 37 | + When the administrator invokes occ command "market:uninstall activity" |
| 38 | + Then the command should have been successful |
| 39 | + And the command output should be: |
| 40 | + """ |
| 41 | + activity: Un-Installing ... |
| 42 | + activity: App uninstalled. |
| 43 | + """ |
| 44 | + And app "activity" should not be in the apps list |
| 45 | + |
| 46 | + Scenario: install an app that is not available in the market-place |
| 47 | + When the administrator invokes occ command "market:install nonexistentapp" |
| 48 | + Then the command should have failed with exit code 1 |
| 49 | + And the command output should be: |
| 50 | + """ |
| 51 | + nonexistentapp: Installing new app ... |
| 52 | + nonexistentapp: Unknown app (nonexistentapp) |
| 53 | + """ |
| 54 | + |
| 55 | + Scenario: upgrade an app that is not available in the market-place |
| 56 | + When the administrator invokes occ command "market:upgrade nonexistentapp" |
| 57 | + Then the command should have failed with exit code 1 |
| 58 | + And the command output should be: |
| 59 | + """ |
| 60 | + nonexistentapp: Not installed ... |
| 61 | + """ |
| 62 | + |
| 63 | + Scenario: upgrade an app that is available in the market-place but not installed locally |
| 64 | + When the administrator invokes occ command "market:upgrade activity" |
| 65 | + Then the command should have failed with exit code 1 |
| 66 | + And the command output should be: |
| 67 | + """ |
| 68 | + activity: Not installed ... |
| 69 | + """ |
| 70 | + |
| 71 | + Scenario: uninstall an app that is not available in the market-place |
| 72 | + When the administrator invokes occ command "market:uninstall nonexistentapp" |
| 73 | + Then the command should have failed with exit code 1 |
| 74 | + And the command output should be: |
| 75 | + """ |
| 76 | + nonexistentapp: Un-Installing ... |
| 77 | + nonexistentapp: App (nonexistentapp) could not be uninstalled. Please check the server logs. |
| 78 | + """ |
| 79 | + |
| 80 | + Scenario: uninstall an app that is available in the market-place but not installed locally |
| 81 | + When the administrator invokes occ command "market:uninstall activity" |
| 82 | + Then the command should have failed with exit code 1 |
| 83 | + And the command output should be: |
| 84 | + """ |
| 85 | + activity: Un-Installing ... |
| 86 | + activity: App (activity) could not be uninstalled. Please check the server logs. |
| 87 | + """ |
0 commit comments