Commit Graph
100 Commits
Author SHA1 Message Date
Jake McDermott 245252ed11 refactor lookup tests 2019-08-13 13:13:12 -04:00
Jake McDermott 61ca4278c8 remove extra and trailing slashes from url 2019-08-12 18:59:02 -04:00
Jake McDermott 97f841057f fix method mapping for webhook notification add 2019-07-24 15:50:27 -04:00
Jake McDermott 1fe18dc588 normalize http method choice values 2019-07-23 19:58:35 -04:00
Jake McDermott 37e73acb62 cleanup tooling 2019-07-23 11:47:19 -04:00
Jake McDermott d66106d380 rename docker-notifications to docker-httpbin 2019-07-23 11:47:19 -04:00
Jake McDermott 2b74b6f9b6 add tooling for basic testing of notification webhooks 2019-07-23 11:47:19 -04:00
Jake McDermott cc0310ccd4 add notification webhook fields 2019-07-23 11:47:19 -04:00
Jake McDermott 5b1350db75 fix reference to undefined prop for auditors 2019-07-18 10:21:50 -04:00
Jake McDermott 35d9a8f839 support nested engine names for hashivault kv v2 secret engine
Add a field to hashivault plugins for identifying the secret
backend (mount point). If no secret backend is provided, the
first part of the secret path is used.
2019-07-16 13:13:22 -04:00
Jake McDermott 90f7e9375f get more events on page down or up when needed
when we page up or down, check if we've moved into the upper or lower
threshold of the scrollbar and request more events to show if we have.
2019-07-09 10:21:48 -04:00
Jake McDermott 0b724682da fix README snippet 2019-07-01 19:50:16 -04:00
Jake McDermott 945d9156a6 do formatting check with ci linter 2019-07-01 14:27:25 -04:00
Jake McDermott bf86719412 add a note about running the formatter 2019-07-01 14:16:17 -04:00
Jake McDermott 059fa9001a Merge pull request #287 from jakemcdermott/more-big-pr-fixups
misc cleanup from big prs
2019-06-24 10:22:33 -04:00
Jake McDermott cc36b46925 remove network context mock 2019-06-21 12:15:59 -04:00
Jake McDermott 657a6f3a93 use top-level import aliases 2019-06-21 12:10:01 -04:00
Jake McDermott 9dda5404a0 add 'has' prefix to error booleans 2019-06-21 12:01:29 -04:00
Jake McDermott c3823771a7 Merge pull request #269 from jakemcdermott/jobs-list-skeleton
job list skeleton
2019-06-21 11:54:16 -04:00
Jake McDermott 69426dee08 add basic test coverage for job list 2019-06-21 11:46:40 -04:00
Jake McDermott 22dbe5c0f9 add shared DataListCell component 2019-06-21 11:46:40 -04:00
Jake McDermott d8452e1259 job list skeleton 2019-06-21 11:46:35 -04:00
Jake McDermott cd672baa13 Merge pull request #284 from jakemcdermott/move-yaml-test
move yaml test to utils
2019-06-20 15:00:08 -04:00
Jake McDermott 30709d1ab2 Merge pull request #283 from jakemcdermott/has
prefix content error and loading booleans with 'has'
2019-06-20 14:59:52 -04:00
Jake McDermott f382fce576 move yaml test to utils 2019-06-20 14:47:39 -04:00
Jake McDermott 36d2d03bc7 prefix content error and loading booleans with 'has' 2019-06-20 14:37:46 -04:00
Jake McDermott 3b7b27ea20 Merge pull request #276 from jlmitch5/testWatchFix
fix jest.config.js so `npm run test-watch` works
2019-06-20 08:25:56 -04:00
Jake McDermott f33b343cd8 Merge pull request #274 from jakemcdermott/alias-top-level-imports
alias top-level imports
2019-06-19 13:09:26 -04:00
Jake McDermott 012852ec53 alias top-level imports 2019-06-19 11:45:57 -04:00
Jake McDermott a98be1443b Merge pull request #255 from jakemcdermott/update-content-loading-and-errors
update content loading and error handling
2019-06-14 13:29:16 -04:00
Jake McDermott e35f7acd05 add test coverage for auth utils 2019-06-14 13:01:02 -04:00
Jake McDermott 4aa4490933 add test coverage for api notification mixin 2019-06-14 13:00:50 -04:00
Jake McDermott e72f0bcfd4 update content loading and error handling
unwind error handling

use auth cookie as source of truth, fetch config only when authenticated
2019-06-14 13:00:37 -04:00
Jake McDermott 534418c81a Merge pull request #262 from catjones9/organizations
Added Max Hosts field on Organizations Add/Edit form
2019-06-14 12:39:10 -04:00
Jake McDermott 90fb7c6769 unpin vault plugin development container image 2019-06-12 10:23:01 -04:00
Jake McDermott d4301bd9bd update v1 credential deletion prompt queries 2019-06-11 09:45:15 -04:00
Jake McDermott 6bc5c4da74 include credential in inventory update detail summary 2019-06-06 12:23:17 -04:00
Jake McDermott 51d7de296f remove dead code related to v1 kind field
Currently, the credentials list doesn't seem to be returning
any options data for 'kind' so this code wasn't being reached. In
the future api updates, we'll also be removing the 'kind' field from
credentials in general.
2019-06-06 12:23:11 -04:00
Jake McDermott 5987aafb82 update shared client code for api v2 2019-06-06 12:23:09 -04:00
Jake McDermott 7a0a2fb54c update adhoc command queries for api v2 2019-06-06 12:23:06 -04:00
Jake McDermott 2f57a1ea93 update inventory source credential lookup queries for api v2 2019-06-06 12:23:03 -04:00
Jake McDermott 1dcb1eda7c add some debug helpers for tests
Signed-off-by: Jake McDermott <yo@jakemcdermott.me>
2019-05-31 11:51:36 -04:00
Jake McDermott 8d8d9292bc Merge pull request #212 from jakemcdermott/wait-for-element
add waitForElement helper
2019-05-22 10:52:14 -04:00
Jake McDermott 7965f94027 add waitForElement helper 2019-05-22 08:56:49 -04:00
Jake McDermott df04660cdd add test for instance groups service 2019-05-10 10:05:05 -04:00
Jake McDermott 232c706b75 add docstring for instance group service 2019-05-10 07:16:50 -04:00
Jake McDermott 205f2c33c1 wait for instance group requests on template save 2019-05-08 11:56:19 -04:00
Jake McDermott 1e77053bbf handle re-ordering of instance groups 2019-05-08 11:56:05 -04:00
Jake McDermott a011896cc0 Update README.md 2019-05-06 11:11:27 -04:00
Jake McDermott 84b21620b2 raise url string parsing error as validation error 2019-05-01 09:17:52 -04:00
Jake McDermott 9737ab620c require url scheme for credential type url inputs
This adds a url formatting type for credential input string fields
The validator for this formatting type will throw an error if the
provided url string doesn't have a url schema.
2019-04-30 13:41:07 -04:00
Jake McDermott d1dc6007fd use test callback from test form save hooks
Enter key and other form submits are handled generically from the built-in
save hooks on the form controller. This adds implementations for those hooks
on the plugin test forms to make sure the expected handlers are always called.
2019-04-30 12:31:30 -04:00
Jake McDermott 6fe93f474f Merge pull request #181 from jakemcdermott/page-header-method-names
use 'handle' notation for header toolbar methods
2019-04-29 14:39:43 -04:00
Jake McDermott bdad9ac8f9 use 'handle' notation for header toolbar methods
- 'handleFoo' is for methods defined on the component
- 'onFoo' is for naming function props that can be passed to the component from its parents
2019-04-29 14:32:56 -04:00
Jake McDermott d74c3a09e5 Merge pull request #183 from jakemcdermott/test-fixup
fix unit and functional tests
2019-04-29 14:32:12 -04:00
Jake McDermott ee5b4b072b fix unit and functional tests 2019-04-29 11:35:06 -04:00
Jake McDermott 36e384e8ab hide dashboard tips on graph teardown event 2019-04-26 11:18:39 -04:00
Jake McDermott 14045c1017 fix undefined prop in template credential prompt initialization
The prompt initialization code had a reference to an undefined
prop. This updates the code to use the expected prop.
2019-04-26 10:34:00 -04:00
Jake McDermott 311daf10b8 handle insights credential lookups for projects
Although most scm types correspond to an scm credential lookup, insights uses its own
credential type.
2019-04-23 11:44:03 -04:00
Jake McDermott db4734be85 Merge pull request #169 from ansible/jakemcdermott-only-coverage
don't use --watch by default when running tests
2019-04-18 11:29:54 -04:00
Jake McDermott a414c4e60e don't use --watch by default when running tests 2019-04-17 11:54:22 -04:00
Jake McDermott 7c2554be8c Merge pull request #165 from jakemcdermott/dependency-updates
update vulnerable dependencies
2019-04-16 09:40:28 -04:00
Jake McDermott 468a290ba6 update vulnerable dependencies 2019-04-16 09:14:14 -04:00
Jake McDermott d987c6e3f7 mention usage with custom credential types in credential plugins doc 2019-04-02 11:24:59 -04:00
Jake McDermott 5d11400f6c replace unlinked fields before updating input sources
With credential type changes for linked credentials disabled, we can
update the unlinked credential fields first. If an error occurs when
updating the unlinked fields, no input sources will be changed.
2019-04-02 11:24:55 -04:00
Jake McDermott 6f43f223b2 update e2e credential checks 2019-04-02 11:24:52 -04:00
Jake McDermott 6b87241099 render non-editable linked credentials
We still want to show linked credentials even when a field is
non-editable.
2019-04-02 11:24:48 -04:00
Jake McDermott 0f6615d9cd make linked fields look disabled when disabled 2019-04-02 11:24:44 -04:00
Jake McDermott 9b55fa61de fix required field entry for object_query 2019-04-02 11:24:41 -04:00
Jake McDermott 165405ad3f include externally sourced input fields for injection 2019-04-02 11:24:36 -04:00
Jake McDermott 7ca92e4c1e prevent input source changes without use role on source cred
To update an input source, the user must have admin access
to the target credential and at least use role on the source
credential.
2019-04-02 11:24:32 -04:00
Jake McDermott 8c107a5fa8 prevent overflow in plugin test notifications 2019-04-02 11:24:14 -04:00
Jake McDermott 8b35ac89fc add timeouts to plugin backends 2019-04-02 11:24:11 -04:00
Jake McDermott b90f9ac401 remove linked fields from validation loop
All linked fields are initially valid. All unlinked fields
are initially valid.
2019-04-02 11:24:07 -04:00
Jake McDermott 7a093de9fd add workaround for null cloud credential kind summary fields
job details summary field credentials have `null` for the
`kind` field so we can't map it to icon names. To work around
this, we now check the value of the `cloud` field when generating
the icon to use.
2019-04-02 11:24:04 -04:00
Jake McDermott 259fcdc5df don't initialize linked textarea fields as invalid 2019-04-02 11:24:00 -04:00
Jake McDermott aa4575c92e update validation when input source is set 2019-04-02 11:23:57 -04:00
Jake McDermott f0f4f487fb disable input source lookups when they can't be changed
If a user doesn't have permission to change an input field, we disable
the input field.
2019-04-02 11:23:53 -04:00
Jake McDermott c4a79a778f add delete to input source user_capabilities 2019-04-02 11:23:50 -04:00
Jake McDermott f611d4275f add use to credential user_capabilities 2019-04-02 11:23:46 -04:00
Jake McDermott 8c3dfe8655 remove input value arg from plugin example
The plugin backends no longer expect an input value as an argument
so we're removing it from the documented examples.
2019-04-02 11:23:42 -04:00
Jake McDermott f9e081046c add object query fields 2019-04-02 11:23:39 -04:00
Jake McDermott da9abc087e don't ignore choices param in input config
We always want to use choices if they're available in the input config
from the api. An input can sometimes have no type. Usually we'd throw an
error but we can still load a component if it defines a set of choices
to use instead of a type.
2019-04-02 11:23:35 -04:00
Jake McDermott 956f588fd8 generalize secret textarea hint 2019-04-02 11:23:28 -04:00
Jake McDermott cb238c1f24 read cert from memory
Certificate data lives in the db. We're using a fifo here so we can avoid writing
it to disk when making the http request.
2019-04-02 11:23:24 -04:00
Jake McDermott 3dee9f0512 add plugin for cyberark aim 2019-04-02 11:23:20 -04:00
Jake McDermott 261a635005 remove non-matches from input source arrays 2019-04-02 11:23:17 -04:00
Jake McDermott 4f13592430 hide drag-and-drop textarea hints when showing input value as tag
You can't drag and drop or enter text when a text area is displaying its value
as a tag, so we hide the hint to avoid incorrectly suggesting that you can.
2019-04-02 11:23:13 -04:00
Jake McDermott 73c9d1b7a9 remove bootstrap fade from dialog component
This was breaking the fixed positioning of help popovers for form inputs
nested within the dialog so I'm replacing it.
2019-04-02 11:23:10 -04:00
Jake McDermott 8180a2060a rename at-easy-modal to at-dialog 2019-04-02 11:23:06 -04:00
Jake McDermott dfaf19cdf3 use default action button class when fill and color props aren't given 2019-04-02 11:23:02 -04:00
Jake McDermott ea9ed31f9d refactor metadata conversion function to use reduce 2019-04-02 11:22:59 -04:00
Jake McDermott 05226333ff move tag max height declaration to input tag wrapper
We don't want to apply max height to all tags, just the ones we embed
within text/textarea input fields.
2019-04-02 11:22:55 -04:00
Jake McDermott 5b79843390 use a shared variable for layout declarations 2019-04-02 11:22:51 -04:00
Jake McDermott 1eda939ce2 add tips for secret controls 2019-04-02 11:22:48 -04:00
Jake McDermott 43456d13c4 don't replace input source unless changed 2019-04-02 11:22:44 -04:00
Jake McDermott 215c3c87e5 enable input source linking for secret textarea fields 2019-04-02 11:22:41 -04:00
Jake McDermott 957804e22a enable input source linking for textarea fields 2019-04-02 11:22:37 -04:00
Jake McDermott e14f17687c disable prompt-on-launch when input source is set 2019-04-02 11:22:34 -04:00
Jake McDermott e0d61cfb8e enable input source linking for password fields 2019-04-02 11:22:30 -04:00