Commit Graph

1116 Commits

Author SHA1 Message Date
Tarun Gupta Akirala c6edbed7ef Add package install appid planned deprecation warning (#1013)
* Added warning message about the planned deprecation for appid
* Fixed broken test cases
* Updated tests adhering to contributing guidelines
2017-07-17 10:50:54 -07:00
José Armando García Sancio bdda6756ce When describing a package print the full response (#1005)
* When describing a package print the full response
* Update expected result
* Update marathon describe response
* Change test describe
2017-07-14 14:35:54 -07:00
Kevin Klues 2f5a3a125c Removed symlinks in favor of explicit sourcing of linked files.
This is more cross-platform compatible for a git repo (i.e. on windows).
2017-07-11 17:26:28 -07:00
Kevin Klues 810ef3ebdc Updated typo in lowercasing 'exe' variables instead of 'EXE'. 2017-07-11 17:26:02 -07:00
Jesus E. Larios Murillo e1bd5ebe1a Add disclaimer during install (#1007)
* Add disclamer
* Fix line length
* Fix tests
* Make install always print 'Continue'
* Remove yes from message
* Remove continue message when --yes
2017-07-11 08:59:53 -07:00
Kevin Klues 3df512b868 Updated line count in 'test_ls_long' for '*.logrotate.state' files.
These files used to be present when running this test, but now they are
not. I wasn't able to find the commit that changed things so that these
files don't appear anymore, but this test is now consistently failing
since they are not present. This commit reduces the number of lines
expected in the output since these files are no longer present.
2017-07-10 21:38:37 -07:00
Kevin Klues 429bc2613a Added a maximum retry to create test clusters in the Jenkinsfile.
Also changed the region the test clusters are lanched in to us-west-2,
per the recommendation of the quality team.
2017-07-07 19:31:45 -07:00
jedi2134 3f1f72e521 Updated Alabaster license. 2017-07-06 23:31:05 -07:00
Kevin Klues 93abe953d3 Added Jenkinsfile to orchestrate multibranch pipeline build on Jenkins. 2017-07-06 23:23:45 -07:00
Kevin Klues c20fd11534 Removed unused installation scripts for windows powershell. 2017-07-06 23:23:45 -07:00
Kevin Klues 7425a6b151 Removed obsolete 'ccm' scripts in preparation for move to Jenkins.
We will introduce the use of `dcos_launch` in our Jenkinsfile instead of
relying directly on CCM.
2017-07-06 23:23:45 -07:00
Kevin Klues cb4a60931e Removed superfluous bin/start_tests.sh script. 2017-07-06 23:23:45 -07:00
Kevin Klues c499d98be6 Relocated publish_to_pypu.sh script into install subfolder. 2017-07-06 23:23:45 -07:00
Kevin Klues 8ff914c75a Relocated binary.spec and removed unused Dockerfile.linux-binary file. 2017-07-06 23:23:45 -07:00
Kevin Klues 6aee075bec Removed env-setup* scripts in favor of directly activating environment. 2017-07-06 23:23:45 -07:00
Kevin Klues 9bed83ac76 Updated consolidated tox.ini files and made them workable on windows.
Some extra environment variables are necessary on windows to get the CLI
to pass the integration tests when using 'tox'. Specifically, the HOME*
environment variables are needed to allow python's 'expanduser()'
function to succeed when resolving the '~' path for the default
DCOS_DIR. Additionally, the OPENSSL_CONF variable is need to allow SSL
connections to be made properly using the windows OpenSSL library.
Without these additional variables things seem to die in unexpected
ways.
2017-07-06 23:23:45 -07:00
Kevin Klues f51e3a614a Rewrote the build system to be more flexible / cross platform.
We can now build the CLI in a cross platform way (linux/mac/windows) all
from the Makefile with relocatable VENV, DIST, and TOX directories. We
can also optionally build in a docker container on platforms where
docker is available.
2017-07-06 23:23:45 -07:00
Kevin Klues af1672e87e Updated .gitignore to include patterns for env*/ and dist*/.
In an upcoming commit we will add targets to build from within docker
and we want separate default env/dist folders for this.
2017-07-06 23:23:45 -07:00
Kevin Klues f52b8e00c6 Updated test_ls_completed to accommodate new `.ssl` folder in sandbox.
Also removed superfluous call to `dcos task ls` that was causing the
test to not actually test the listing of files for a completed task.
2017-07-06 23:11:50 -07:00
Kevin Klues 820da41627 Updated test_ls_long to accommodate `/.ssl` folder in sandbox. 2017-07-06 23:11:50 -07:00
Kevin Klues d086a02d4a Removed superfluous call to `dcos task ls` in test_ls_multiple_tasks. 2017-07-06 23:11:50 -07:00
Kevin Klues 9ae445161b Updated test_ls_multiple_tasks to accommodate `/.ssl` folder in sandbox. 2017-07-06 23:11:50 -07:00
Kevin Klues 6bfd594ba5 Updated test_ls to accommodate new `/.ssl` folder in sandbox. 2017-07-06 23:11:50 -07:00
Kevin Klues 65f5237bec Updated test_ls_no_params to account for new `/.ssl` folder in sandbox. 2017-07-06 23:11:50 -07:00
Kevin Klues 7590cead11 Initial commit of Jenkinsfile so Jenkins has ref to it on master. 2017-06-22 19:13:58 -07:00
benclarkwood 1254a2f2b5 package: Gate `package uninstall` with an interactive confirmaton.
Note: This change is a breaking change to the existing change of `package uninstall`
2017-06-22 09:17:14 -07:00
Kevin Klues 24432174ce Updated mesos task test to account for shorter preamble in logs.
Mesos recently shortened the amount of text it prints in the preamble to
its logs. This test needed to be updated to acount for this since it
hard coded the number of lines it expected to read from the logs in a
simple sleep application.
2017-06-20 18:30:20 -07:00
Kevin Klues 57faec30d7 Updated files used to compare JSON due to output changes in components. 2017-06-20 18:30:20 -07:00
Kevin Klues 4eb88b1523 Fixed inconsistency in calls to 'name()' and 'version()'. 2017-06-20 18:29:50 -07:00
Kevin Klues 56d94a3ec8 Fixed bug returning the package JSON for 'CosmosPackageVersion' class.
The JSON representation of the CosmosPackageVersion recently changed to
wrap the contents of the previous package JSON in a 'package' key (so
that other fields can be added at the top level in the future). In order
to get at the actual package now, we need to index into the 'package'
key and return it.
2017-06-20 18:28:35 -07:00
Kevin Klues 719a0450a4 Fixed bug with listing installed subcommands.
The command names of installed subcommands are now embedded under a
'command' key instead of living at the top level. This commit fixes the
'merge_installed()' function to index into the dictionary of subcommands
properly to extract the names now that this change has been introduced.
2017-06-20 18:28:35 -07:00
Kevin Klues 9be20d45f1 Added 'decode()' to template string from marathon 'decribe()' call.
Without this decoding, the stream of bytes returned from the marathon
describe call were being interpreted as a 'collection.Sequence' in the
subsequent 'emitter.publish()' call. This was causing the subesequnt
JSON encoding to blow up since it was interpeting it as the wrong type.
2017-06-20 18:28:35 -07:00
Kevin Klues 6ec07dfa53 Fixed broken integration tests on windows.
A number of marathon tests were failing on windows and blocking PRs from
being merged. After looking at the tests and fixing them, it's not clear
how they were ever working (even on linux/mac). I've updated them to be
more stable both on linux/mac and on windows.
2017-06-20 18:28:35 -07:00
Charles Ruhland bedd260e47 The linkerd package has a syntax error; switch to hello-world 2017-06-20 18:28:19 -07:00
José Armando García Sancio 896a555082 Use version() instead of package_version() 2017-06-19 10:14:38 -07:00
José Armando García Sancio a323b42c6a Tests should use v3 instead of v2 2017-06-14 14:19:25 -07:00
José Armando García Sancio 9568843279 Update cosmos client to use v3 describe response 2017-06-06 12:06:17 -07:00
Jesus E. Larios Murillo 8c8dcc0019 test: fix packaging tests to work with the latest version of DC/OS (#998) 2017-05-22 11:38:03 -07:00
Kevin Klues c5dee798ba Undo reverted changes that cause `dcos task exec` to break. (#993)
This commit:
8971ccdb08

Inadvertently undid changes originally introduced in this commit:
f33a45ee94

Unfortunately, the integration tests didn't catch this because all
`task exec` integration tests were hidden behind an environment variable:

    @pytest.mark.skipif('DCOS_DEBUGGING_ENABLED' not in os.environ,
                        reason="Requires Agent Debugging APIs")

This commit reintroduces the changes that were inadvertently undone and
enables the `task exec` integration tests by default so that something
like this doesn't occur in the future.
2017-05-16 12:01:36 -07:00
Isabel Jimenez 3abf575c96 easy-setyp: Adding DCOS_CLUSTER env variable (#994) 2017-05-09 16:56:54 -07:00
Marc Abramowitz 056302ef66 DESCRIPTION.RST: Extend underline (#991) 2017-05-09 07:30:53 -07:00
tamarrow 265a5efcbf config: remove dependency on subcommand (#990) 2017-05-05 16:20:34 -07:00
tamarrow 7976948d0a cluster: ensure setup_cluster_config uses correct cluster config (#989) 2017-05-04 15:48:18 -07:00
tamarrow f5e31fb125 http: send auth token for requests matching package.cosmos_url (#984) 2017-05-04 10:29:02 -07:00
tamarrow 024cdbe058 README: update to use `dcos cluster setup` (#987) 2017-05-03 16:46:23 -07:00
tamarrow 63bcddaa20 cluster: add subcommand for easy setup of multiple clusters (#983)
We are introducing a new subcommand for managing your clusters. Configuring your CLI to talk to your cluster is a single command now `dcos cluster setup`. Moreover, the CLI can now be aware of multiple clusters with cluster specific configuration managed by the CLI. 

Subcommands will be installed for the current "attached" cluster only. To install a subcommand for all your configured clusters, use `--global`. 

Note that `DCOS_CONFIG` environment variable will not take effect in
"cluster" mode since we are now managing different clusters in the CLI.
2017-05-03 10:41:45 -07:00
Marc Abramowitz b9043397bd subcommand: log more info when > 1 executable subcommand (#986) 2017-05-02 15:23:37 -07:00
Joshua Rodman b7aa73354f node: diagnostics warn size off by factor of 100 (1MB) (#981) 2017-04-25 15:47:06 -07:00
tamarrow f1a6f1d2c1 mesos: update slave terminology to agent (#973) 2017-04-24 11:06:39 -07:00
Ken Sipe 5bc35bfa8d job: updating run job to return the run id (#975) 2017-04-20 09:24:54 -07:00