Граф коммитов

471 Коммитов

Автор SHA1 Сообщение Дата
Kipp Morris cc8f29c30b
Fix flaky unit test cases (#3945)
Tests now account for the fact that the actual code iterates over a map,
so the order can differ between test executions
2024-11-07 10:45:22 -05:00
Goutham Muguluvalli Niranjan a0f9cbca8c
add test util to create fake token 2024-10-30 11:12:54 -05:00
Goutham Muguluvalli Niranjan b511374657
token logic to extract claims, oid, groups 2024-10-30 11:12:53 -05:00
Lisa Ranjbar Miller 32dac80275
ARO-9501: Fix E2E panic when ARO_SELENIUM_HOSTNAME is empty (#3909) 2024-10-21 13:51:29 -04:00
Goutham Muguluvalli Niranjan 98e5056c35
Generate Federated Identity Credentials for MIWI Cluster (#3847)
* Generate federated MIWI credentials

bring in more changes from master

typos

add len check for federated Identity naming

don't return cluster ID when OIDC issuer is nil

skip RBAC on CSP for WI cluster

check for invalid object ID before RBAC template creation

single qoute when passing resource Name

check for nil clusterMsiFederatedIdentityCredentials

remove unused controller

ensure the case folding of cluster MSI resourceID

Fed Cred name logic

update calls to fetch fed cred name

No RBAC for Cluster MSI

update getPlatformWorkloadIdentityFederatedCredName

fix WI RG RBAC

define constants to imporve readability

correct the call to resourceGroupRoleAssignmentWithDetails

Move fed cred deletion to be before cluster MSI cert deletion and add a log statement for fed cred deletion

Rename function for clarity and to match name of unit test function

Nitpick test case names for clarity and test data for correctness

* don't continue resource clean up on fed cred deletion fails

* remove duplicate of clusterServicePrincipalRBAC()

* nit

---------

Co-authored-by: gniranjan <gniranjan@microsoft.com>
2024-10-16 16:37:03 -04:00
Amber Brown f69705b7e1 add a regression test param which includes tests which we don't need to run every PR, but are still useful to run on master 2024-10-01 14:59:06 +10:00
Ayato Tokubi 84816de0e4
SDK2: Remove deprecated network sdk from e2e. (#3859)
* subnets
* remove deprecated security group usage from e2e setup
* remove deprecated interface sdk from e2e.
* remove deprecated loadbalancer sdk from e2e.
* remove deprecated virtual networks sdk from e2e.
* remove deprecated subnets sdk from e2e
2024-09-27 20:44:06 +02:00
Lisa Rashidi-Ranjbar 3762a791fe ARO-9990: Update etchosts controller to use ForceReconcilation flag 2024-09-12 09:49:10 -07:00
Lisa Rashidi-Ranjbar 89be0b2e96
ARO-10003: Add managed flag to etchosts controller 2024-09-10 11:19:01 -07:00
Amber Brown bd9af03917
Only perform machineconfig reconciliation during OpenShift upgrades (#3473) 2024-09-10 18:24:46 +10:00
Ayato Tokubi 725fd1b017
Add smoke test for alerts from Alertmanager (#3801) 2024-08-30 18:16:31 +02:00
Ayato Tokubi bd0229df01
Add route smoke-test (#3784) 2024-08-22 21:13:13 +02:00
Ayato Tokubi 309d82afdb
Add PVC smoke tests (#3747) 2024-08-21 14:11:42 +02:00
Ayato Tokubi c74906d445
Change load balancer image in smoke test (#3740) 2024-08-16 18:49:00 +02:00
Maitiú Ó Ciaráin f3c683dca2
Merge pull request #3725 from Azure/smoke/aro-log
[ARO-7345] smoke test automation for aro-operator log
2024-07-29 16:04:36 +02:00
Ayato Tokubi f9c7eb720e
remove unused const 2024-07-26 12:01:37 +01:00
Ayato Tokubi 4d5628c8f8
add aro-operator log smoke test 2024-07-26 12:01:26 +01:00
Ayato Tokubi 36b6da2ad1
add load balancer test 2024-07-25 02:19:55 +01:00
Ayato Tokubi 1291b45a1f
add dynamic Client 2024-07-25 02:18:46 +01:00
Maitiú Ó Ciaráin 69820497e9
Merge pull request #3716 from Azure/smoke/machine-scale
Add machine scaling smoke test
2024-07-24 09:56:49 +02:00
Rajdeep Chauhan 0684a5af89
ARO-6756 Remove usecheckaccess feature and variables (#3643) 2024-07-23 14:53:46 -05:00
Ayato Tokubi 0f3a104d48
add scaling machine smoke tests 2024-07-23 13:19:18 +01:00
Ayato Tokubi 4e46fd2d84
check CO availability 2024-07-18 12:04:38 +01:00
Maitiú Ó Ciaráin 28ced6807d
Merge pull request #3688 from Azure/tsatam/hotfix-add-cpms-e2e-test
Add cpms e2e test
2024-07-17 17:36:38 +02:00
Tanmay Satam 5058657675 Fix parameters on getter function 2024-07-15 16:09:03 -04:00
Tanmay Satam 82c01589bd Fix controller name in skip condition 2024-07-15 16:09:01 -04:00
Tanmay Satam 08f1bd9f2d Add E2E test to ensure CPMS is disabled by ARO operator 2024-07-15 16:07:43 -04:00
Ayato Tokubi 5c96d96239
fix dev env panic in e2e 2024-07-15 13:12:17 +01:00
Amber Brown 31af734103
[ARO-5368] Try and log the VM info + console log on failure (#3629)
Dumps the VM info + console logs on failure so that we don't need to run the Geneva Action or have the control plane still around to get it. Also refactors frontend and geneva action to make use of the same code path.
2024-07-15 16:32:23 +10:00
Mohammed Safwan Aslam Kazi 001751784b
Updates Test Suite To Use New GA API Plus Adds Missing Functionality To Our Internal Utility Clients (#3640)
* adds the missing functionality to these apis

* removes the functionality from 20230904 as it is not needed

* replaces old api referencings with new ones

* small fixup and referencing to new api

* creates cluster with new api
2024-07-10 14:54:17 -04:00
Amber Brown e711e610a0
Move to maintained yaml lib (#3454)
* move to maintained yaml lib

* update validate-imports

* go mod
2024-07-10 09:57:42 +10:00
Rajdeep Singh Chauhan 90fde763c3 ARO-4373 update mgmtstorage sdk to 2019-06-01 for disabling allowSharedKeyAccess 2024-06-30 20:38:28 -04:00
Tony Schneider 458b1a4805 fix e2e test 2024-06-17 13:20:43 -05:00
Tony Schneider 9f5b045f3f skip Geneva Logging test if rp is in development mode 2024-06-17 13:20:42 -05:00
Tony Schneider 5974f9fec0 Exclude "Geneva Logging" test 2024-06-17 13:20:42 -05:00
Kipp Morris 31c72522fe
MIWI API endpoints (#3608)
* Add Cosmos DB container for PlatformWorkloadIdentityRoleSets

* Revert change to AKS k8s version - committed by mistake

* Fix bug in converter

When I first wrote the converter, I thought Go would treat the the slice
we `make` few lines above these changes as a slice full of zero-value
structs, but it actually treats it as an empty slice, which led to
out-of-bound issues when I first tried to use this converter to work on
the API endpoints.

* Add the PlatformWorkloadIdentityRoleSetConverter to the API register

* Implement the change feed for role sets in the easiest, most naive way

* Implement the external API endpoint for listing role sets

* Fix a small oversight from earlier on

* Add unit tests for the list endpoint

* Add unit tests for changefeed changes

* Uncomment the static validator

* Fix more slice out of bounds bugs in the converters...

* Add converter and static validator to the admin API register

* Add list and put endpoints

* Fix name of function to match convention

* Fix bug in static validator

I originally wrote the code the way I did so that we could aggregate
errors so that we could provide a better UX in cases where there are
multiple similar errors in the request content. I found while writing
unit tests that aggregating the errors in this way and not wrapping them
in a CloudError causes the RP to return an internal server error instead
of a 400 bad request.

Is there a way we can aggregate the errors and still wrap them in a
CloudError? I'm not sure of the formatting requirements for the text of
CloudErrors.

* Add unit tests for new API endpoints

* Fix typo

* Appease the linter

* Appease the linter

* Add TODO comment re: the number of parameters

* Update static validator to return multiple validation issues at the same time where applicable for better UX

* Add a simple utility function to make semver comparisons of OpenShift minor version more readable

* Log error before returning 500 to user

* Log errors before returning 500 to user

* Improve naming of unit test cases

* Add additional unit test cases
2024-06-06 10:15:44 -04:00
Maitiú Ó Ciaráin 780ee50eb4
s/With*Hook/WithPost*Hook (#3549) 2024-05-07 17:54:42 +02:00
Amber Brown 433da1ea1f clienthelper updates for testing 2024-04-23 13:49:24 +10:00
Maitiú Ó Ciaráin e5339b26b2
Add the GinkgoHelper (#3452) 2024-03-12 17:46:42 +01:00
Maitiú Ó Ciaráin 0eea1ec133
Consolidate e2e logic (#3392)
Consolidate e2e logic
2024-03-12 08:56:18 +01:00
Amber Brown e86100c9ae
Add clienthelper, a replacement for dynamichelper (#3345) 2024-03-12 12:44:53 +11:00
Amber Brown ed94c28346
Update to Go 1.20 (#3429)
* Go 1.20 changes

* go 1.20 does not need the seed randomised by default

* go generate
2024-03-05 18:18:36 +11:00
Tanmay Satam 172741b9e6 Add explicit step to wait for resolv.conf job completion 2024-03-04 12:05:46 -05:00
Tanmay Satam 7a501ebca5 Do not run Azure Host Servicing test in non-development environments 2024-02-22 13:05:49 -05:00
Amber Brown f0611becb1 fix linting errors that become noisier in go 1.20 2024-02-20 13:56:18 +11:00
Maitiú Ó Ciaráin b359efd540
Wrap K8s client in E2E with retry logic (#3366) 2024-02-07 15:28:37 -05:00
Srinivas Atmakuri 6e8e4e1870
HiveNamespace to use docID/clusterID for new Installs (#2992)
HiveNamespace currently uses aro-<uuid>, this change is an effort
to unify UUIDs accross cluster doc instead of having multiple,
by pointing HiveNamespace to docID so this can be leveraged later.

More Details: https://redhat-internal.slack.com/archives/C02ULBRS68M/p1686806655273309
2024-02-05 12:45:28 +11:00
Kipp Morris d11a633a2e
Add E2E test for host servicing (#3334) 2024-01-31 10:52:20 -05:00
Kipp Morris 087e40929a
Hopefully fix E2E flake related to deletion of a test Service (#3336)
* Wrap Delete call in Eventually to hopefully prevent flakes where Service deletion fails

* Simplify logic and properly handle the case where the Service is not
found during the delete call

* After deleting the Service, confirm that it's gone
2024-01-31 10:52:00 -05:00
Matthew Barnes 809041fe2e
Move default openshift version (#3094)
* api: Avoid referencing DefaultInstallStream in tests

* frontend: Avoid referencing DefaultInstallStream

The frontend's OpenShiftVersions change feed handler will record
the current default version for the rest of the frontend to use.

* monitor: Remove latestGaMinorVersion metric

The RP no longer has this information internally, so the metric
is no longer relevant.

* update_ocp_versions: Read versions from an environment variable

Read OpenShift versions and pull specs from an OPENSHIFT_VERSIONS
environment variable containing a JSON object. This data includes
the default OpenShift version for new installs that don't specify
a version.

This moves us toward eliminating hard-coded OpenShift versions in
pkg/util/version/const.go.

* cache_fallback_discovery_client_test.go: Hard-code version

I'm not sure what to do with this test.  Install stream data has
moved to RP-Config, so if the test is worth keeping then I guess
the oldest supported version will have to be hard-coded and kept
up-to-date.  But it probably won't be.

* version: Remove DefaultInstallStreams

DefaultInstallStream will remain for now, but it's ONLY for use by
local development mode until we can come up with a better solution.

---------

Co-authored-by: Matthew Barnes <mbarnes@fedorapeople.org>
2024-01-18 13:20:03 -07:00