Commit Graph
276 Commits
Author SHA1 Message Date
Dharini Jeeva e3324ad64a chore: 🤖 rename application_credentials_sources_ids to brokered (#1255) 2022-08-15 09:48:12 -07:00
Cameron Perera 39c0835a99 feat: 🎸 Update credential model with ssh private key attributes (#1254)
✅ Closes: ICU-5645
2022-08-12 15:56:19 -05:00
Devon AndersonandDharini Jeeva 62077d3c25 feat: 🎸 Add worker serializer (#1230)
* feat: 🎸 Add worker serializer

Add worker serializer that focus' on `config_tags.type` and
`canonical_tags.type`.
[API](https://docs.google.com/document/d/1G-lfl8gk9NfoKFImSpHb90E3xC3CSEVDwVy3bJ9eOhA/edit#heading=h.9e06o4b8etpi)

✅ Closes: ICU-5241

* refactor: 💡 refactored `models/worker.js`

Because `canonical_tags` and `config_tags` are `readOnly` attributes, we
could use `attr` decorator instead of `fragment`.

✅ Closes: ICU-5241

* refactored `model/worker.js and deleted un-needed files

* refactor: 💡 Refactored model/worker.js and created test

Refactored model/worker.js to include custom method for POST route for
adding new worker.

BREAKING CHANGE: 🧨 no

✅ Closes: ICU-5241

* refactor: 💡 Refactored custom POST route method for worker

Refactored custom method on `model/worker.js` to include serialization
for `worker_genrated_auth_token`

BREAKING CHANGE: 🧨 no

✅ Closes: ICU-5241

* refactor: 💡 Refactor test

Refactor model/worker-test.js and serializers/worker.js

BREAKING CHANGE: 🧨 no

✅ Closes: ICU-5241

* Update addons/api/addon/serializers/worker.js

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>

* update worker.js documentation block

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
2022-08-09 15:34:42 -04:00
Dharini Jeeva 1f0baceb5e Icu 5476 refactor target model serializer and mirage (#1235)
chore: 🤖 refactor target model to support credentials
2022-08-08 09:21:07 -07:00
Randall Morey ec56d2fbbe fix: 🐛 role discard should not error (#1226) 2022-07-28 17:49:51 -07:00
Zhihe Li a84e8c693e feat: 🎸 Add worker model (#1213)
✅ Closes: ICU-5239
2022-07-28 14:33:23 -04:00
lisbet-alvarezandCameron Perera 821b9b56a7 Icu 5230 credential serializer (#1200)
* feat: 🎸 Create Credential Model in API

✅ Closes: ICU-5229

* feat: 🎸 update credential model

Add attributes to credential model

✅ Closes: ICU-5229

* feat: 🎸 no verify

✅ Closes: ICU-5230

* feat: 🎸 Add credential serializer and tests

✅ Closes: ICU-5230

* feat: 🎸 Add credential serializer

Credential serializer along with unit tests were added.

✅ Closes: ICU-5230

* feat: 🎸 Credential serializer & unit tests

✅ Closes: ICU-5230

* fix: 🐛 Resolved commit conflicts

✅ Closes: ICU-5230

* fix: 🐛 deleted password_hmac from inside the serializer

✅ Closes: ICU-5230

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2022-07-20 12:34:18 -07:00
lisbet-alvarezandCameron Perera bd0189cf10 Icu 5229 credential model (#1197)
* feat: 🎸 Create Credential Model in API

✅ Closes: ICU-5229

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2022-07-19 13:02:04 -07:00
Randall Morey bdabcc119e Refactor base scope fragment (#1166)
* refactor: 💡 migrate managed-group off fragments

* refactor: 💡 migrate credential-store off fragments

* refactor: 💡 migrate credential-library off fragments

* refactor: 💡 migrate account off fragments

* refactor: 💡 convert base model scope field to simple attr

* fix: 🐛 skip broken test
2022-07-18 11:30:53 -07:00
Dharini Jeeva 6c3e5ba4a8 chore: 🤖 add static credential store support (#1191)
* chore: 🤖 add static credential store support to the API layer
2022-07-15 13:24:04 -07:00
Carlos Alcaide Corvo 163bbc9fb8 refactor: 💡 Refactor default values for target creation (#1180) 2022-07-12 08:36:35 -07:00
Carlos Alcaide Corvo 6f8afbb7af Chore update eslint and plugins update (#1171) 2022-07-07 11:18:51 -07:00
Randall Morey 890cfe5168 Refactor attributes fragments (#1156)
* refactor: 💡 migrate managed-group off fragments

* refactor: 💡 migrate credential-store off fragments

* refactor: 💡 migrate credential-library off fragments

* refactor: 💡 migrate account off fragments
2022-06-28 19:30:26 -04:00
Zhihe Li 97196368cb Fix Users page not updating fields correctly (#1105)
* fix: 🐛 Normalize update responses to track removed fields

✅ Closes: ICU-4189
2022-05-12 10:16:14 -04:00
Cameron PereraandDharini Jeeva 226475a47d feat: 🎸 Add "worker_filter" attribute to target model (#1049)
* feat: 🎸 Add "worker_filter" attribute to target model

✅ Closes: ICU-3887

* feat: 🎸 Add missing attribute description for worker_filter

* feat: 🎸 Update worker_filter description

Co-authored-by: Dharini Jeeva <dharini@hashicorp.com>
2022-04-12 16:16:51 -05:00
Dharini JeevaandCameron Perera a9a82079ac feat: 🎸 add type check helper methods to target model (#1018)
* feat: 🎸 add type check helper methods to target model

* Update addons/api/tests/unit/models/target-test.js

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>

* Update addons/api/tests/unit/models/target-test.js

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>

Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
2022-03-14 09:53:57 -07:00
dharini 8f60066cc8 fix: 🐛 remove sync_interval_seconds attribute from static type 2022-03-03 14:17:11 -08:00
dharini d50b3a5625 feat: 🎸 add sync_interval_seconds to plugin host-sets 2022-03-02 09:44:30 -08:00
Randall Morey 0dd0fc8592 Merge branch 'main' into fix-plugin-type-param 2022-02-14 19:08:57 -05:00
Randall Morey ed248f583f refactor: 💡 consolidate host catalog type badges to component 2022-02-14 18:06:12 -05:00
Randall Morey e0989fffe3 test: 💍 add missing adapter test 2022-02-14 17:10:54 -05:00
Randall Morey 021097ad44 fix: append ?plugin_name to dynamic host catalog create requests 2022-02-14 14:57:34 -05:00
Carlos Alcaide Corvo b33a4d0b1d refactor: 💡 Refactor app normalize and host catalog normalize
Refactor app normalize to deal with nestedAttributes and nestedSecrets
as expected, before it was not working as expected. Refactor the host
catalog normalize method. Add normalize test on host catalog to validate
changes on normalize methods.
2022-02-10 11:43:30 -08:00
Carlos Alcaide Corvo 46246441aa Refactor some readOnly attributes to have no type. Stop nesting plugin type fields. Refactor serializer/normalizer tests 2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo 75f75878a1 Add real payload and real expectations on host normalisation unit test 2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo 12277c5557 Move new fields attributes from host generated model to plain host model. Add normalization tests 2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo f8c4eb470f feat: 🎸 Add new fields to host
Add new fields to host and refactor field address to use no more
fragment-host-attribute-model
2022-02-09 08:55:10 -08:00
Carlos Alcaide Corvo e52093c6ed PR suggestions applied 2022-02-04 09:26:26 -08:00
Carlos Alcaide Corvo 5e12566a65 Refactor tests 2022-02-03 11:27:08 -08:00
Carlos Alcaide Corvo 5e918cdddc Add all the new fields. Refactor serializer to fit new changes. Work in progress with normalize 2022-02-03 11:27:08 -08:00
Carlos Alcaide Corvo f64f6bfd05 feat: 🎸 Add new fields to host-set model
Add new fields to host-set model
2022-02-03 11:27:08 -08:00
Randall Morey 2bb63c3775 refactor: 💡 merge model and collection abilities 2022-01-31 12:02:37 -05:00
Dharini Jeeva c5ced9f36f Merge branch 'main' into feature-add-host-type-basic-support 2022-01-28 08:47:53 -08:00
Carlos Alcaide Corvo 10806da5c2 Merge branch 'main' into chore-unknown-type 2022-01-27 12:59:00 -06:00
Carlos Alcaide Corvo 929b020cf7 feat: 🎸 Add host type basic support 2022-01-27 10:17:34 -08:00
Randall Morey 6e77ea655f chore: 🤖 add support for "unknown" dynamic host catalogs 2022-01-26 13:03:21 -05:00
Carlos Alcaide Corvo 26887b3cfe feat: 🎸 Add basic type support for host-set
Add basic type support for host-set
2022-01-26 08:02:54 -08:00
Carlos Alcaide Corvo ffb00c708f Refactor mirage factory. Rephrase test description. Refactor some tests to not test secret fields 2022-01-24 10:01:17 -08:00
Carlos Alcaide Corvo 614be72a6e Add isNestedSecret option to model, add secrets field to model, add isNestedSecert serialization. Change tests to the last changes 2022-01-21 12:55:04 -08:00
Carlos Alcaide Corvo 6eccb0ea6c Simplified tests code 2022-01-21 10:05:04 -08:00
Carlos Alcaide Corvo cc07df5806 Delete old comment 2022-01-21 09:57:58 -08:00
Carlos Alcaide Corvo 72dcd0d3ae Fix unit test for azure host-catalog plugin 2022-01-21 09:57:36 -08:00
Carlos Alcaide Corvo bab8c8ea44 Add update tests for serializer 2022-01-21 09:49:48 -08:00
Randall Morey cd60c0bbc3 chore: add writeOnce field support 2022-01-20 17:20:24 -05:00
Randall Morey 1889dd0090 chore: tweak dynamic fields serialization 2022-01-20 16:47:46 -05:00
Carlos Alcaide Corvo 9558f2e480 Modify serializer test to not test field exclusion. Add to mirage more host-catalogs. Add to mirage new fields per host-catalog 2022-01-20 12:55:31 -08:00
Carlos Alcaide Corvo cd96313857 feat: 🎸 Add fields to host-catalog model
Add new fields to host-catalog model for plugin type host-catalog.
Fields are corresponding to Azure and Aws plugins.
2022-01-20 08:35:41 -08:00
Randall Morey ac14e8786d feat: 🎸 support isNestedAttribute in models 2022-01-18 13:44:27 -05:00
Carlos Alcaide Corvo d2e914cba9 Fix lint errors 2022-01-14 13:32:38 -08:00
Carlos Alcaide Corvo df673ad29b Use compositeType properly on tests 2022-01-14 13:28:13 -08:00