Skip to content

Commit

Permalink
because why not
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-cox committed Nov 1, 2024
1 parent ad8fbf7 commit 2afda2a
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 32 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/blueprints/blueprint.utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const CYPRESS_SAFE_RESOURCE_REVISION = 999999999;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

export const createPayloadData = {
id: 'e2e-pod-security-admission-1705617529465',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/cluster/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/events - return empty events data
const eventsGetEmptyEventsSet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/serviceaccounts - return empty service accounts data
const serviceAccGetResponseEmpty = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/fleet/contents-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/fleet.cattle.io.contents - return empty contents data
const fleetContentsGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

// GET /v1/apiextensions.k8s.io.customresourcedefinitions - small set of crds data
const crdsGetResponseSmallSet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/rbac.authorization.k8s.io.clusterrolebinding - return empty cluster role binding data
const clusterRoleBindingGetResponseEmpty = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/rbac/cluster-roles-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/rbac.authorization.k8s.io.clusterrolebinding - return empty cluster roles data
const clusterRolesGetResponseEmpty = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/rbac/role-bindings-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/rbac.authorization.k8s.io.rolebindings- return empty role binding data
const roleBindingGetResponseEmpty = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/rbac/roles-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/rbac.authorization.k8s.io.roles - return empty roles data
const rolesGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/persistentvolumeclaim- return empty persistentvolumeclaims data
const persistentvolumeclaimsGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/persistentvolumes- return empty persistentvolumes data
const persistentvolumesGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../blueprint.utils';

// GET /v1/storage.k8s.io.storageclasses- return empty storageclasses data
const pstorageclassesGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

export const createDeploymentBlueprint = {
apiVersion: 'apps/v1',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

export const deploymentGetResponse = {
id: 'default/test-deployment',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

export const deploymentCollection = {
type: 'collection',
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/explorer/workloads/pods/pods-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

// GET /v1/pods - small set of pods data
const podsGetResponseSmallSet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

// GET /v1/autoscaling.horizontalpodautoscalers - return empty horizontalpodautoscalers data
const horizontalpodautoscalerGetResponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

// GET /v1/networking.k8s.io.ingresses - return empty ingresses data
const ingressesGetReponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../../../blueprint.utils';

// GET /v1/services - return empty services data
const servicesGetReponseEmpty = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GET /v1/fleet.cattle.io.clusterregistrationtokens - return empty clusterregistrationtokens data
const clusterRegistrationTokensGetReponseEmpty = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/fleet/workspaces-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GET /v1/management.cattle.io.fleetworkspaces - small set of fleet workspaces data
const fleetworkspacesGetResponseSmallSet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

export function applyCustomLinksResponse(customLinkName: string, customLinkUrl:string):object {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

export function clusterProvDigitalOceanSingleResponse(clusterName: string, cloudCredName: string, machinePoolId: string):object {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

export function machinePoolConfigResponse(clusterName:string, machinePoolId:string ):object {
return {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/nav/edit-cluster.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// /v1/management.cattle.io.nodedrivers?*
export function generateFakeNodeDriversReply():any {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/nav/fake-cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
generateFakeSecretsReply
} from './edit-cluster.ts';

import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GENERAL DATA NOT CONFIGURABLE, for now...
const MACHINE_POOL_ID = '995mj';
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/other-products/opa-gatekeeper.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

const k8sSchemas = [
{
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/other-products/v2-monitoring.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GET /k8s/clusters/local/v1/monitoring.coreos.com.podmonitors
const podMonitorsGet = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/roles/global-roles-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GET /v1/management.cattle.io.globalroles - small set of pods data
const globalRolesGetResponseSmallSet = {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/blueprints/users/users-get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

// GET /v3/users - small set of users data
const usersGetResponseSmallSet = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import ClusterDashboardPagePo from '@/cypress/e2e/po/pages/explorer/cluster-dashboard.po';
import { SecretsPagePo } from '@/cypress/e2e/po/pages/explorer/secrets.po';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

const certName = 'expired';
const certNs = 'defaut';
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/pages/manager/mock-responses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CYPRESS_SAFE_RESOURCE_REVISION } from '@/cypress/e2e/blueprints/blueprint.utils';
import { CYPRESS_SAFE_RESOURCE_REVISION } from '../blueprint.utils';

export function nodeDriveResponse(addCloudCredential: boolean, driver: string): any {
return {
Expand Down

0 comments on commit 2afda2a

Please sign in to comment.