1190 Commits

Author SHA1 Message Date
Tomas Kral
a55eda7485 Merge pull request #522 from cdrage/change-from-usecase5-to-testing
Change usecase5 to testing app name for e2e tests
2018-06-15 14:07:13 +02:00
Charlie Drage
cc596078b3 Change usecase5 to testing app name for e2e tests
Changes the ambiguous "usecase5" name to "testing". Also adds a constant
to the e2e_test.go file.
2018-06-14 12:44:51 -04:00
Charlie Drage
277c598868 Add namespacing
Adds namespacing to Odo by hyphenating applicationName-componentName to
OpenShift deployments.
2018-06-11 15:50:25 -04:00
Anush Shetty
209728d4d6 update e2e status 2018-06-04 14:21:32 +05:30
Anush Shetty
15af0274eb Save current project before running tests 2018-06-04 13:56:24 +05:30
Suraj Narwade
2051a7b318 Added confirmation before deleting URL
Solves #474

```
odo url delete nodejs
Are you sure you want to delete the url nodejs? [y/N] y
Deleted URL: nodejs
```
2018-05-29 13:18:19 +05:30
Suraj Narwade
508b2d93ec Added confirmation for storage deletion 2018-05-25 12:50:37 +05:30
Tomas Kral
b7f9ccad35 Merge pull request #429 from cdrage/add-logs
Adds DeploymentConfig log functionality to Odo
2018-05-18 14:06:31 +02:00
Charlie Drage
b3110cd80d Adds DeploymentConfig log functionality to Odo
This adds a new command `odo log` which will display the
DeploymentConfig logs for that particular component.

For example:

```sh
github.com/redhat-developer/odo  add-logs ✔                                                                                                                                                                                                                                                                                                                         15h55m
▶ ./odo list
ACTIVE     NAME        TYPE
*          nodejs3     nodejs

github.com/redhat-developer/odo  add-logs ✔                                                                                                                                                                                                                                                                                                                         15h57m
▶ ./odo log
Environment:
        DEV_MODE=false
        NODE_ENV=production
        DEBUG_PORT=5858
Launching via npm...
npm info it worked if it ends with ok
npm info using npm@3.10.9
npm info using node@v6.11.3
npm info lifecycle nodejs-ex@0.0.1~prestart: nodejs-ex@0.0.1
npm info lifecycle nodejs-ex@0.0.1~start: nodejs-ex@0.0.1

> nodejs-ex@0.0.1 start /opt/app-root/src
> node server.js

Server running on http://0.0.0.0:8080
```
2018-05-18 07:15:55 -04:00
Anush Shetty
56d1b5fbe8 Update katacoda tests:
Updated tests to include component creation using binary source
2018-05-07 19:15:15 +05:30
Tomas Kral
a9ef5fda87 fix e2e tests 2018-05-04 13:56:26 +02:00
Anush Shetty
8d37304439 Script for running the demo workflow:
We use --ginkgo.focus to run e2e and demo tests separately
2018-04-24 13:33:43 +05:30
Tomas Kral
f1a2f7f577 Merge pull request #407 from syamgk/odo-storage-delete
rename storage remove to storage delete
2018-04-23 08:58:56 +02:00
syamgk
3d33d1abde rename storage remove to storage delete
rename `odo storage remove` to `odo storage delete`
for better consistency
ref: https://github.com/redhat-developer/odo/issues/391
2018-04-20 18:08:55 +05:30
Anush Shetty
c8045c56b4 Fix infinite loop in e2e tests:
Fixes #368
2018-04-20 15:08:15 +05:30
Anush Shetty
e5405a1cff Fixing the component list cmd 2018-04-19 17:59:33 +05:30
Anush Shetty
7131aaf98b Tests for component creation in default app 2018-04-19 15:10:58 +05:30
Tomas Kral
ddb55604a7 Don't automatically start build when component is created
BuildConfig is created without any Triggers.
Build is started explicitly after component from git repo is created.
Build is NOT started if component is created from local directory.
2018-04-16 14:43:04 +02:00
Piyush Garg
05bcc43037 Make app the main command and application as alias
Now when hitting odo command app will be show as command
application is made alias so that users can use both #296

Updated docs accordingly
2018-04-16 15:20:26 +05:30
Tomas Kral
ee22f381d4 fix e2e tests after rename to odo 2018-04-12 21:24:49 +02:00
Suraj Narwade
73f6148780 Renaming ocdev to odo
Resolves #336.
I didn't change bintray repo name yet. Others, almost all references are changed to odo.
2018-04-12 20:50:08 +02:00
Shubham Minglani
8841fa57f3 Rename storage add to storage create
This commit renames the `ocdev storage add` command to `ocdev
storage create` command as per the original use case requirements
2018-04-11 19:00:07 +05:30
Shubham Minglani
688471e1de Move storage to client-go
This commit refactors the current implementation of `ocdev
storage` command to client-go.
2018-04-11 13:26:20 +05:30
Anush Shetty
bc6e746402 Fixing error-handling and logging of errors in e2e tests:
With this commit, the `runCmd` function has been modified to \
use GinkgoWriter and gexec.Start.
2018-04-10 13:53:12 +05:30
Tomas Kral
d69a341345 Merge pull request #320 from kadel/e2e-fail-intead-exit
use ginkgo's Fail instead of os.Exit in e2e tests
2018-04-09 12:36:40 +02:00
Tomas Kral
6d37796544 use ginkgo's Fail instead of os.Exit in e2e tests 2018-04-09 12:17:51 +02:00
Tomas Kral
4b6defc69d Merge pull request #308 from cdrage/verbose-output
Add a bit of verbosity to e2e tests
2018-04-05 17:29:01 +02:00
Anush Shetty
9b4a62275a Tests for storage commands:
This commit adds tests for `ocdev storage` commands.
2018-04-05 17:00:15 +05:30
Charlie Drage
73b3f7ff6f Add a bit of verbosity to e2e tests
Adds verbosity to the tests as well as command-line-outout:

```sh
▶ make test-e2e
go test github.com/redhat-developer/ocdev/tests/e2e -ginkgo.v
$ git clone https://github.com/openshift/nodejs-ex /tmp/ocdev807324634/nodejs-ex

Running Suite: ocdev test suite
===============================
Random Seed: 1522871416
Will run 9 of 9 specs

Usecase #5 ocdev project
  should create a new project
  /home/wikus/seafile/files/dev/go/src/github.com/redhat-developer/ocdev/tests/e2e/e2e_test.go:120
$ ocdev project create ocdev-1522871416
New project created and now using project : ocdev-1522871416

$ ocdev project get --short
ocdev-1522871416

•
------------------------------
Usecase #5 creating an application when application by the same name doesn't exist
  should create an application
  /home/wikus/seafile/files/dev/go/src/github.com/redhat-developer/ocdev/tests/e2e/e2e_test.go:129
$ ocdev application create usecase5
Creating application: usecase5
Switched to application: usecase5

$ ocdev application get --short
usecase5

•
------------------------------
Usecase #5 creating an application when application by the same name doesn't exist
  should be created within the project
  /home/wikus/seafile/files/dev/go/src/github.com/redhat-developer/ocdev/tests/e2e/e2e_test.go:134
$ ocdev project get --short
ocdev-1522871416

```
2018-04-04 15:55:24 -04:00
Anush Shetty
f75a4d335a fix travis failure 2018-04-03 19:26:11 +05:30
Tomas Kral
d88b04dd2f Merge pull request #286 from ashetty1/e2e-pretty
Print error trace when tests fail
2018-04-03 11:05:03 +02:00
Tomas Kral
ef8b0ebec4 Merge pull request #279 from cdrage/remove-aliases
Remove all aliases to get/list/create/set/delete commands
2018-04-03 11:02:47 +02:00
Anush Shetty
673419e0d5 Update README.md 2018-04-03 07:45:48 +00:00
Anush Shetty
0f41a75046 Output error trace when tests fail 2018-04-02 17:23:42 +05:30
Anush Shetty
29ae63be4d e2e documentation and coverage matrix 2018-04-02 15:29:17 +05:30
Charlie Drage
6bf4ecd61e Remove all aliases to get/list/create/set/delete commands
This PR removes the `ocdev component X` commands for the following
commands:

```sh
Available Commands:
  application Perform application operations
  catalog     Catalog related operations
  completion  Output shell completion code
  create      Create new component
  delete      Delete existing component
  get         Get currently active component
  help        Help about any command
  list        List all components in the current application
  project     Perform project operations
  push        Push source code to component
  set         Set active component.
  storage     Perform storage operations
  url         Expose component to the outside world
  version     Print the version of ocdev
```
2018-03-29 12:01:12 -04:00
Anush Shetty
5038a5c469 Adding ocdev url tests 2018-03-29 18:39:22 +05:30
Anush Shetty
b441f0f7bf Adding tests for project create, component list 2018-03-26 23:49:57 +05:30
Tomas Kral
80e85c5732 Rename --dir flag to --local and add help messages. 2018-03-26 12:20:06 +02:00
Anush Shetty
9c51e36f58 OCDEV e2e tests on travis:
1. Pushing a separate PR with glide changes for depenedencies

2. The e2e tests are run with `oc cluster up` on travis:
   (i) scripts/oc-cluster.sh is used to bring up an Openshift cluster.
   (ii) scripts/travis-check-pods.sh is used to check if the router
        and docker-register pods are running once the oc cluster is
        up.

3. In `.travis.yml`, the e2e tests are run in parallel with the
   other tests
2018-03-21 14:15:51 +05:30