Skip to content

Commit

Permalink
release to prod-beta (#1834)
Browse files Browse the repository at this point in the history
* feat(ESSNTL-4056): Add lastSeen filter (#1781)

* feat(ESSNTL-4056): Add lastSeen filter

* fix test

* feat(ESSNTL-4056): move functionality inside the filter component

* Add min date

* chore(release): 1.8.0 [skip ci]

# [1.8.0](v1.7.2...v1.8.0) (2023-03-07)

### Features

* **ESSNTL-4056:** Add lastSeen filter ([#1781](#1781)) ([7bb6ac8](7bb6ac8))

* feat(ESSNTL-3737, -3735): Rename and delete group (#1780)

Implements https://issues.redhat.com/browse/ESSNTL-3737.
Implements https://issues.redhat.com/browse/ESSNTL-3735.

This makes it possible to rename or delete a group from the group
details page.

* chore: Comment InventoryGroupDetail loading test (#1789)

Temporarily removes the "loading test" due to some problems it causes
for the next tests.

* chore(release): 1.9.0 [skip ci]

# [1.9.0](v1.8.0...v1.9.0) (2023-03-13)

### Features

* **ESSNTL-3737, -3735:** Rename and delete group ([#1780](#1780)) ([bdf4c6a](bdf4c6a))

* test: Bring intercept responses to one format (#1782)

This rewrites some interceptors to always have the third argument
compliant with the interceptors' response object interface (e.g., always
include statusCode, body).

Co-authored-by: Aleksandr Voznesenskii <[email protected]>

* chore(release): 1.9.1 [skip ci]

## [1.9.1](v1.9.0...v1.9.1) (2023-03-13)

* fix(ESSNTL-4404): global filters and tags (#1788)

Before, if you applied a global filter (workloads, sids, tags), the inventory table did not reflect the filter. Now global filters are applied to the table and work together with table filters.

Co-authored-by: Michael Johnson <[email protected]>

* chore(release): 1.9.2 [skip ci]

## [1.9.2](v1.9.1...v1.9.2) (2023-03-13)

### Bug Fixes

* **ESSNTL-4404:** global filters and tags ([#1788](#1788)) ([b10ce31](b10ce31))

* feat(ESSNTL-3727): Display group systems (#1790)

* Connect group details with inventory table

* Remove sorting from the system update method col

* Enhance tableProps, implement select none/page

* Implement tests for GroupSystems.cy.js

* Remove hostIds from fixtures to avoid render table

* chore(release): 1.10.0 [skip ci]

# [1.10.0](v1.9.2...v1.10.0) (2023-03-14)

### Features

* **ESSNTL-3727:** Display group systems ([#1790](#1790)) ([08408ad](08408ad))

* chore: Mock GET groups related requests (#1793)

This serves as a temporary solution for the missing GET endpoints
implementation on the API level. This will allow QEs to open the views
and find required components selectors.

* fix(ESSNTL-3760): handle insights disconnected hosts for patch, advisor, vuln tabs (#1791)

Co-authored-by: Aleksandr Voznesenskii <[email protected]>

* chore(release): 1.10.1 [skip ci]

## [1.10.1](v1.10.0...v1.10.1) (2023-03-14)

### Bug Fixes

* **ESSNTL-3760:** handle insights disconnected hosts for patch, advisor, vuln tabs ([#1791](#1791)) ([f8d7afd](f8d7afd))

* feat(ESSNTL-4196): Show group detail info tab (#1792)

Implements https://issues.redhat.com/browse/ESSNTL-4196.

* chore(release): 1.11.0 [skip ci]

# [1.11.0](v1.10.1...v1.11.0) (2023-03-15)

### Features

* **ESSNTL-4196:** Show group detail info tab ([#1792](#1792)) ([f0f421b](f0f421b))

* feat(ESSNTL-4195): Inventory table - group filter (#1776)

Implements https://issues.redhat.com/browse/ESSNTL-4195.

* chore(release): 1.12.0 [skip ci]

# [1.12.0](v1.11.0...v1.12.0) (2023-03-15)

### Features

* **ESSNTL-4195:** Inventory table - group filter ([#1776](#1776)) ([358400e](358400e))

* chore(RHIF-180): Supress data in sentry/hotjar (#1784)

* chore: CI new job trigger

* ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)

* fix(ESSNTL-4056): updates for edge cases

* Add additional edge cases

* fix: Fix the CI error related to lastSeen filter (#1802)

This adds a fallback value for lastSeenFilter object which appears to
be undefined or null in some CI tests.

* chore(release): 1.12.1 [skip ci]

## [1.12.1](v1.12.0...v1.12.1) (2023-03-22)

### Bug Fixes

* Fix the CI error related to lastSeen filter ([#1802](#1802)) ([a19f6aa](a19f6aa))

* refactor(RHIF-125): Apply useChrome everywhere (#1801)

Implements https://issues.redhat.com/browse/RHIF-125.

This replaces the remaining occurrences of direct call to insights.chrome
with useChrome hook.

* chore(release): 1.12.2 [skip ci]

## [1.12.2](v1.12.1...v1.12.2) (2023-03-22)

* chore: Stop calling deprecated chrome.init (#1803)

Relates to https://issues.redhat.com/browse/RHIF-125.

* fix(RHCLOUD-24793): Show ROS tab is azure or aws cloud provider (#1800)

* fix(RHCLOUD-24793): Show ROS tab is azure or aws cloud provider

* Enable ros only for AWS

* chore(release): 1.12.3 [skip ci]

## [1.12.3](v1.12.2...v1.12.3) (2023-03-28)

### Bug Fixes

* **RHCLOUD-24793:** Show ROS tab is azure or aws cloud provider ([#1800](#1800)) ([2331f03](2331f03))

* chore(deps): update frontend-components to 3.9.33

* chore: Don't use extra span tag to render tab text (#1797)

* chore: Refactor .travis.yml CI configuration (#1806)

* chore: Build before executing deploy script in CI

* docs: Updated props for inventory table [skip ci] (#1816)

* feat(ESSNTL-3729): Add new actions to kebab and new modal (#1794)

Implements https://issues.redhat.com/browse/ESSNTL-3729, https://issues.redhat.com/browse/ESSNTL-3730.

---------

Co-authored-by: Georgy Karataev <[email protected]>

* chore(release): 1.13.0 [skip ci]

# [1.13.0](v1.12.3...v1.13.0) (2023-03-29)

### Features

* **ESSNTL-3729:** Add new actions to kebab and new modal ([#1794](#1794)) ([011f64c](011f64c))

* feat(ESSNTL-3728): Enable multiple hosts addition to group (#1798)

Implements https://issues.redhat.com/browse/ESSNTL-3728.

* test: Fix failing AddSystemsToGroupModal test (#1818)

* chore(release): 1.14.0 [skip ci]

# [1.14.0](v1.13.0...v1.14.0) (2023-03-30)

### Features

* **ESSNTL-3728:** Enable multiple hosts addition to group ([#1798](#1798)) ([c9a1d4e](c9a1d4e))

* fix(ESSNTL-4196): Tie URLs to chrome isBeta (#1817)

Fixes https://issues.redhat.com/browse/ESSNTL-4196.

* chore(release): 1.14.1 [skip ci]

## [1.14.1](v1.14.0...v1.14.1) (2023-03-30)

### Bug Fixes

* **ESSNTL-4196:** Tie URLs to chrome isBeta ([#1817](#1817)) ([7c686e5](7c686e5))

* fix(ESSNTL-3727): Fix minor issues for groups/%id view (#1820)

Fixes https://issues.redhat.com/browse/ESSNTL-3727.

* chore(release): 1.14.2 [skip ci]

## [1.14.2](v1.14.1...v1.14.2) (2023-03-31)

### Bug Fixes

* **ESSNTL-3727:** Fix minor issues for groups/%id view ([#1820](#1820)) ([1fa8d01](1fa8d01))

* fix(ESSNTL-3727): Hide Group filter (#1823)

Hides the Group filter on the group systems view (/groups/%id).

* chore(release): 1.14.3 [skip ci]

## [1.14.3](v1.14.2...v1.14.3) (2023-04-03)

### Bug Fixes

* **ESSNTL-3727:** Hide Group filter ([#1823](#1823)) ([7657a7e](7657a7e))

* fix(ESSNTL-3728): Fix links, show missing tags filter (#1824)

Fixes https://issues.redhat.com/browse/ESSNTL-3728.

* Remove prepareColumns duplicate, use correct links

* Show Tags filter in the filters dropdown

* Fix AddSystemsToGroupModal tests

* chore(release): 1.14.4 [skip ci]

## [1.14.4](v1.14.3...v1.14.4) (2023-04-03)

### Bug Fixes

* **ESSNTL-3728:** Fix links, show missing tags filter ([#1824](#1824)) ([ebfad9c](ebfad9c))

* fix(RHIF-232): flickering inventory table is fixed, api reqs are reduced to 1

* chore: add ignoreRefresh prop to fix inventoryTable flickering

* fix(RHIF-232): flickering inventory table is fixed, api reqs are reduced to 1

* chore(release): 1.14.5 [skip ci]

## [1.14.5](v1.14.4...v1.14.5) (2023-04-03)

### Bug Fixes

* **RHIF-232:** flickering inventory table is fixed, api reqs are reduced to 1 ([97af8a3](97af8a3))

* fix(ESSNTL-3729): Fix add button behavior (#1825)

Fixes https://issues.redhat.com/browse/ESSNTL-3729, https://issues.redhat.com/browse/ESSNTL-3730.

---------

Co-authored-by: Georgy Karataev <[email protected]>

* chore(release): 1.14.6 [skip ci]

## [1.14.6](v1.14.5...v1.14.6) (2023-04-06)

### Bug Fixes

* **ESSNTL-3729:** Fix add button behavior ([#1825](#1825)) ([cdf9848](cdf9848))

* fix(inventory groups): changed the column order to allign with the app (#1828)

* bug(inventory groups): changed the column order to allign with the app

* fix(inventory groups): fixed tests

* chore(release): 1.14.7 [skip ci]

## [1.14.7](v1.14.6...v1.14.7) (2023-04-11)

### Bug Fixes

* **inventory groups:** changed the column order to allign with the app ([#1828](#1828)) ([3124e53](3124e53))

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)"

This reverts commit 8809e40.

* chore(release): 1.14.8 [skip ci]

## [1.14.8](v1.14.7...v1.14.8) (2023-04-13)

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)

* bug(inventory groups): fixing columns order in modal (#1829)

* feat(inventory groups): fixed edge case with create group

* fix(inventory groups): fixed edge case with cross button

* bug(inventory groups): fixed order of columns in add system modal

* fix(LastSeenFilter): Add edge cases for new filter

* chore(release): 1.14.8 [skip ci]

## [1.14.8](v1.14.7...v1.14.8) (2023-04-14)

### Bug Fixes

* **LastSeenFilter:** Add edge cases for new filter ([f53155a](f53155a))

### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](1f0b70c)), closes [#1787](#1787)

---------

Co-authored-by: Adonis Puente <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
Co-authored-by: Georgy Karataev <[email protected]>
Co-authored-by: Michael Johnson <[email protected]>
Co-authored-by: Michael Johnson <[email protected]>
Co-authored-by: Muslimjon <[email protected]>
Co-authored-by: Georgii Karataev <[email protected]>
Co-authored-by: Karel Hala <[email protected]>
Co-authored-by: Alexandr Čelakovský <[email protected]>
Co-authored-by: Travis CI User <[email protected]>
Co-authored-by: Adonis Puente <[email protected]>
  • Loading branch information
12 people authored Apr 18, 2023
1 parent c9b5d3f commit eee4968
Show file tree
Hide file tree
Showing 66 changed files with 5,552 additions and 395 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
language: node_js
sudo: required
notifications:
email: false
node_js:
- '16'
- "16"
install:
- npm ci
jobs:
include:
- stage: Lint, tests
script: npm run verify && npm run test:ct && npm run coverage
- stage: Release tag
if: fork = false
script: npx semantic-release
after_success:
- curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
- stage: Lint
script: npm run build && npm run lint
- stage: Test
script: npm run test && npm run test:ct
after_success: npm run coverage
- stage: Deploy
if: (fork = false) AND (branch IN (master, master-stable, prod-beta, prod-stable))
script: npm run build && curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
- stage: Tag
if: (fork = false) AND (branch = master)
script: npx semantic-release
env:
global:
global:
- REPO="[email protected]:RedHatInsights/insights-inventory-frontend-build"
- REPO_DIR="insights-inventory-frontend-build"
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
149 changes: 149 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,152 @@
## [1.14.8](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.7...v1.14.8) (2023-04-14)


### Bug Fixes

* **LastSeenFilter:** Add edge cases for new filter ([f53155a](https://github.com/RedHatInsights/insights-inventory-frontend/commit/f53155a89bb874c9c5d6665a9f6dce23b029ecb9))


### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](https://github.com/RedHatInsights/insights-inventory-frontend/commit/1f0b70c15749126a7d8a605c8e890fa6d0881df6)), closes [#1787](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1787)

## [1.14.8](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.7...v1.14.8) (2023-04-13)


### Reverts

* Revert "ESSNTL(4056): Adds checks against edge cases for last seen filter (#1787)" ([1f0b70c](https://github.com/RedHatInsights/insights-inventory-frontend/commit/1f0b70c15749126a7d8a605c8e890fa6d0881df6)), closes [#1787](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1787)

## [1.14.7](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.6...v1.14.7) (2023-04-11)


### Bug Fixes

* **inventory groups:** changed the column order to allign with the app ([#1828](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1828)) ([3124e53](https://github.com/RedHatInsights/insights-inventory-frontend/commit/3124e53dd63208a5c8a7a29e1e604b4850f6f204))

## [1.14.6](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.5...v1.14.6) (2023-04-06)


### Bug Fixes

* **ESSNTL-3729:** Fix add button behavior ([#1825](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1825)) ([cdf9848](https://github.com/RedHatInsights/insights-inventory-frontend/commit/cdf9848dd9059052133cab8bf649c53ce2829109))

## [1.14.5](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.4...v1.14.5) (2023-04-03)


### Bug Fixes

* **RHIF-232:** flickering inventory table is fixed, api reqs are reduced to 1 ([97af8a3](https://github.com/RedHatInsights/insights-inventory-frontend/commit/97af8a327d04e4aa4c676f5376502312bf44cbeb))

## [1.14.4](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.3...v1.14.4) (2023-04-03)


### Bug Fixes

* **ESSNTL-3728:** Fix links, show missing tags filter ([#1824](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1824)) ([ebfad9c](https://github.com/RedHatInsights/insights-inventory-frontend/commit/ebfad9cdafcdb2d68176de9d5290a3db52579d2f))

## [1.14.3](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.2...v1.14.3) (2023-04-03)


### Bug Fixes

* **ESSNTL-3727:** Hide Group filter ([#1823](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1823)) ([7657a7e](https://github.com/RedHatInsights/insights-inventory-frontend/commit/7657a7e33e74008a5121ea3253c823d92b761290))

## [1.14.2](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.1...v1.14.2) (2023-03-31)


### Bug Fixes

* **ESSNTL-3727:** Fix minor issues for groups/%id view ([#1820](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1820)) ([1fa8d01](https://github.com/RedHatInsights/insights-inventory-frontend/commit/1fa8d013cf45c291891b58f9158eed6e95de7dd2))

## [1.14.1](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.14.0...v1.14.1) (2023-03-30)


### Bug Fixes

* **ESSNTL-4196:** Tie URLs to chrome isBeta ([#1817](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1817)) ([7c686e5](https://github.com/RedHatInsights/insights-inventory-frontend/commit/7c686e5a2d104197ac05122d3cf532b899ed66a2))

# [1.14.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.13.0...v1.14.0) (2023-03-30)


### Features

* **ESSNTL-3728:** Enable multiple hosts addition to group ([#1798](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1798)) ([c9a1d4e](https://github.com/RedHatInsights/insights-inventory-frontend/commit/c9a1d4e1899df65004878eec1574613e355dab7a))

# [1.13.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.12.3...v1.13.0) (2023-03-29)


### Features

* **ESSNTL-3729:** Add new actions to kebab and new modal ([#1794](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1794)) ([011f64c](https://github.com/RedHatInsights/insights-inventory-frontend/commit/011f64c998573f9b8e9012c0c8c70f63e2d08532))

## [1.12.3](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.12.2...v1.12.3) (2023-03-28)


### Bug Fixes

* **RHCLOUD-24793:** Show ROS tab is azure or aws cloud provider ([#1800](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1800)) ([2331f03](https://github.com/RedHatInsights/insights-inventory-frontend/commit/2331f0364a73c1916c19b864c04a4e512a10cd6a))

## [1.12.2](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.12.1...v1.12.2) (2023-03-22)

## [1.12.1](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.12.0...v1.12.1) (2023-03-22)


### Bug Fixes

* Fix the CI error related to lastSeen filter ([#1802](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1802)) ([a19f6aa](https://github.com/RedHatInsights/insights-inventory-frontend/commit/a19f6aa92e7fa31d8b4bf5356784f2922f213ddc))

# [1.12.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.11.0...v1.12.0) (2023-03-15)


### Features

* **ESSNTL-4195:** Inventory table - group filter ([#1776](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1776)) ([358400e](https://github.com/RedHatInsights/insights-inventory-frontend/commit/358400ec23e1f64933cd2dfea3cd92fc568459b8))

# [1.11.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.10.1...v1.11.0) (2023-03-15)


### Features

* **ESSNTL-4196:** Show group detail info tab ([#1792](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1792)) ([f0f421b](https://github.com/RedHatInsights/insights-inventory-frontend/commit/f0f421b0b5b2f577c3fd594f663c699ffcd44358))

## [1.10.1](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.10.0...v1.10.1) (2023-03-14)


### Bug Fixes

* **ESSNTL-3760:** handle insights disconnected hosts for patch, advisor, vuln tabs ([#1791](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1791)) ([f8d7afd](https://github.com/RedHatInsights/insights-inventory-frontend/commit/f8d7afd9fde1f1a85aa1ff2033a6cdceb3019235))

# [1.10.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.9.2...v1.10.0) (2023-03-14)


### Features

* **ESSNTL-3727:** Display group systems ([#1790](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1790)) ([08408ad](https://github.com/RedHatInsights/insights-inventory-frontend/commit/08408addd3fb27a333e2c376e9290b9049757860))

## [1.9.2](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.9.1...v1.9.2) (2023-03-13)


### Bug Fixes

* **ESSNTL-4404:** global filters and tags ([#1788](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1788)) ([b10ce31](https://github.com/RedHatInsights/insights-inventory-frontend/commit/b10ce310766b6b463d82b5ed675328b411a28a14))

## [1.9.1](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.9.0...v1.9.1) (2023-03-13)

# [1.9.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.8.0...v1.9.0) (2023-03-13)


### Features

* **ESSNTL-3737, -3735:** Rename and delete group ([#1780](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1780)) ([bdf4c6a](https://github.com/RedHatInsights/insights-inventory-frontend/commit/bdf4c6ac30688e2f76f1e2e164e9e1438e255485))

# [1.8.0](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.7.2...v1.8.0) (2023-03-07)


### Features

* **ESSNTL-4056:** Add lastSeen filter ([#1781](https://github.com/RedHatInsights/insights-inventory-frontend/issues/1781)) ([7bb6ac8](https://github.com/RedHatInsights/insights-inventory-frontend/commit/7bb6ac85fcb5fc7c31514066c2ef174868213687))

## [1.7.2](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.7.1...v1.7.2) (2023-03-07)

## [1.7.1](https://github.com/RedHatInsights/insights-inventory-frontend/compare/v1.7.0...v1.7.1) (2023-03-06)
Expand Down
28 changes: 28 additions & 0 deletions config/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,34 @@ jest.mock('react-router-dom', () => ({
})
}));

jest.mock('@redhat-cloud-services/frontend-components/useChrome', () => ({
__esModule: true,
default: () => ({
updateDocumentTitle: jest.fn(),
auth: {
getUser: () => Promise.resolve({
identity: {
account_number: '0',
type: 'User',
user: {
is_org_admin: true
}
},
entitlements: {
hybrid_cloud: { is_entitled: true },
insights: { is_entitled: true },
openshift: { is_entitled: true },
smart_management: { is_entitled: false }
}
})
},
appAction: jest.fn(),
appObjectId: jest.fn(),
on: jest.fn(),
getUserPermissions: () => Promise.resolve(['inventory:*:*'])
})
}));

configure({ adapter: new Adapter() });

global.insights = {
Expand Down
23 changes: 1 addition & 22 deletions cypress/fixtures/groups/620f9ae75A8F6b83d78F3B55Af1c4b2C.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,7 @@
"account": "irure ea exercitation adipisicing velit",
"org_id": "non",
"created_at": "1994-07-28T22:00:00.0Z",
"host_ids": [
"eEfb7FAa-1f0b-Bde3-a4FF-fDdCd5faA764",
"bb7417faE7f9eCdacEDDd0Fcae9Cf4BB",
"2095BB72Aa6E1d2D1DC48bdecF1085eb",
"E645A3Fb42B77c4eBf9faEfCad8f6F5a",
"7fb4fa758Cbc0A861C2Cb21695aeA9d6",
"f6BE4AafA6bF543693Fa3F1fadFaA4E9",
"D608C33f-5e6D-BBEF-Cab5-0FFE8eB1bAc4",
"Dd4De9b6-7f3a-ED3d-2a84-D60e4Af2Cd9d",
"ae08E8dd-FFdB-cBC1-BA2A-d0aaC61C1B55",
"dcaD88bD4CeaaDC8bceD5d730ffba4cF",
"5a9F9CDAE74F3116a9c848Eeb1C65EA0",
"f53eDCBe3Fb957BE5dBec9322f030F94",
"c6fbBE38-30D7-D7e9-C8C7-72F4a61Bea9c",
"20E5EedA1e3f2aC2dCaADDCa4BFEED5B",
"adEcDf6ac4A999ccecdbCe7E9e01e23C",
"Bf0E2e8C-7e96-f0C8-9fea-1bD5fa9E18ce",
"6349ADdf-8d6B-bF1e-F5AE-13f0B7ca4acE",
"DBD5E149-C967-12b3-Cc6B-6c9220bA32e1",
"4EC19BbD-b556-ED9E-33E7-Eb5Be40AaeDe",
"CE05B39b3FdDad8dDE2b5DebB7CABe7D"
]
"host_ids": []
}
],
"total": 1
Expand Down
37 changes: 37 additions & 0 deletions cypress/fixtures/groups/Ba8B79ab5adC8E41e255D5f8aDb8f1F3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"count": 1,
"page": 1,
"per_page": 50,
"results": [
{
"name": "ea velit incididunt",
"updated_at": "1998-04-17T22:00:00.0Z",
"id": "620f9ae75A8F6b83d78F3B55Af1c4b2C",
"account": "irure ea exercitation adipisicing velit",
"org_id": "non",
"created_at": "1994-07-28T22:00:00.0Z",
"host_ids": [
"00fcC027-F4e3-aB4D-3eB9-392B09E4E9eC",
"82c882beA274db74bA79Dad9695CDdcD",
"374ECeB4-4aA6-637a-A5d8-eBD40A51EED8",
"12f6cdf2-fBcA-EF8A-3cC1-739627825F5B",
"37F4D8D9-A1Bd-cEE7-1Bcc-A03A20589B1B",
"ab29a822dA3259bf4a80A586Bd2e16E0",
"0ed9cfebEb3bfdB9A6F51757008dFB2F",
"4ddCF8Ee4a5DF968CBCaaaed16F5c55f",
"3cfF3e49-35Af-fD3E-62eb-c4eBDa0Ac3fF",
"8ce37289-4B8f-cECF-a3db-94f9F9ACB45a",
"Fd60B4f79D74507bDE8be6913caFDa8e",
"BbEAB14B-9A1f-eDFB-9c3B-eF0C6b6CB4dF",
"14FA22F08BBFf6f9738cBED71aFf66eE",
"fcF870cc-8C3C-8ba9-FcdA-dff79Ba0e2dE",
"38B60BDf17c9E6C9Cdd11840aCb4e804",
"C306bEc5EAF6BfD025fa6f48b3BeAF43",
"83CE42Eadccd8b2e5E5Aca1eaBAB55aa",
"4da9f2C5d6C1Ce6EE2f3D7BBC974E7c3",
"CaaE8C2e-C67c-41b3-5EB8-5Fd233eC9FdC"
]
}
],
"total": 1
}
Loading

0 comments on commit eee4968

Please sign in to comment.