Commit 99a7f675 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch '327686-update-monitoring-specs' into 'master'

Update default branch name in monitoring specs

See merge request gitlab-org/gitlab!59855
parents ff2b27a8 a5be4d59
...@@ -6,7 +6,7 @@ import DashboardsDropdown from '~/monitoring/components/dashboards_dropdown.vue' ...@@ -6,7 +6,7 @@ import DashboardsDropdown from '~/monitoring/components/dashboards_dropdown.vue'
import { dashboardGitResponse } from '../mock_data'; import { dashboardGitResponse } from '../mock_data';
const defaultBranch = 'master'; const defaultBranch = 'main';
const starredDashboards = dashboardGitResponse.filter(({ starred }) => starred); const starredDashboards = dashboardGitResponse.filter(({ starred }) => starred);
const notStarredDashboards = dashboardGitResponse.filter(({ starred }) => !starred); const notStarredDashboards = dashboardGitResponse.filter(({ starred }) => !starred);
......
...@@ -16,7 +16,7 @@ const createMountedWrapper = (props = {}) => { ...@@ -16,7 +16,7 @@ const createMountedWrapper = (props = {}) => {
}; };
describe('DuplicateDashboardForm', () => { describe('DuplicateDashboardForm', () => {
const defaultBranch = 'master'; const defaultBranch = 'main';
const findByRef = (ref) => wrapper.find({ ref }); const findByRef = (ref) => wrapper.find({ ref });
const setValue = (ref, val) => { const setValue = (ref, val) => {
......
...@@ -37,7 +37,7 @@ describe('duplicate dashboard modal', () => { ...@@ -37,7 +37,7 @@ describe('duplicate dashboard modal', () => {
return shallowMount(DuplicateDashboardModal, { return shallowMount(DuplicateDashboardModal, {
propsData: { propsData: {
defaultBranch: 'master', defaultBranch: 'main',
modalId: 'id', modalId: 'id',
}, },
store, store,
......
...@@ -15,7 +15,7 @@ const customDashboardsData = new Array(30).fill(null).map((_, idx) => ({ ...@@ -15,7 +15,7 @@ const customDashboardsData = new Array(30).fill(null).map((_, idx) => ({
can_edit: true, can_edit: true,
system_dashboard: false, system_dashboard: false,
out_of_the_box_dashboard: false, out_of_the_box_dashboard: false,
project_blob_path: `${mockProjectDir}/blob/master/dashboards/.gitlab/dashboards/dashboard_${idx}.yml`, project_blob_path: `${mockProjectDir}/blob/main/dashboards/.gitlab/dashboards/dashboard_${idx}.yml`,
path: `.gitlab/dashboards/dashboard_${idx}.yml`, path: `.gitlab/dashboards/dashboard_${idx}.yml`,
starred: false, starred: false,
})); }));
...@@ -32,7 +32,7 @@ export const anomalyDeploymentData = [ ...@@ -32,7 +32,7 @@ export const anomalyDeploymentData = [
iid: 3, iid: 3,
sha: 'f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187', sha: 'f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187',
ref: { ref: {
name: 'master', name: 'main',
}, },
created_at: '2019-08-19T22:00:00.000Z', created_at: '2019-08-19T22:00:00.000Z',
deployed_at: '2019-08-19T22:01:00.000Z', deployed_at: '2019-08-19T22:01:00.000Z',
...@@ -44,7 +44,7 @@ export const anomalyDeploymentData = [ ...@@ -44,7 +44,7 @@ export const anomalyDeploymentData = [
iid: 2, iid: 2,
sha: 'f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187', sha: 'f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187',
ref: { ref: {
name: 'master', name: 'main',
}, },
created_at: '2019-08-19T23:00:00.000Z', created_at: '2019-08-19T23:00:00.000Z',
deployed_at: '2019-08-19T23:00:00.000Z', deployed_at: '2019-08-19T23:00:00.000Z',
...@@ -61,7 +61,7 @@ export const deploymentData = [ ...@@ -61,7 +61,7 @@ export const deploymentData = [
commitUrl: commitUrl:
'http://test.host/frontend-fixtures/environments-project/-/commit/f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187', 'http://test.host/frontend-fixtures/environments-project/-/commit/f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187',
ref: { ref: {
name: 'master', name: 'main',
}, },
created_at: '2019-07-16T10:14:25.589Z', created_at: '2019-07-16T10:14:25.589Z',
tag: false, tag: false,
...@@ -75,7 +75,7 @@ export const deploymentData = [ ...@@ -75,7 +75,7 @@ export const deploymentData = [
commitUrl: commitUrl:
'http://test.host/frontend-fixtures/environments-project/-/commit/f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187', 'http://test.host/frontend-fixtures/environments-project/-/commit/f5bcd1d9dac6fa4137e2510b9ccd134ef2e84187',
ref: { ref: {
name: 'master', name: 'main',
}, },
created_at: '2019-07-16T11:14:25.589Z', created_at: '2019-07-16T11:14:25.589Z',
tag: false, tag: false,
...@@ -187,7 +187,7 @@ export const dashboardGitResponse = [ ...@@ -187,7 +187,7 @@ export const dashboardGitResponse = [
can_edit: true, can_edit: true,
system_dashboard: false, system_dashboard: false,
out_of_the_box_dashboard: false, out_of_the_box_dashboard: false,
project_blob_path: `${mockProjectDir}/-/blob/master/.gitlab/dashboards/dashboard.yml`, project_blob_path: `${mockProjectDir}/-/blob/main/.gitlab/dashboards/dashboard.yml`,
path: '.gitlab/dashboards/dashboard.yml', path: '.gitlab/dashboards/dashboard.yml',
starred: true, starred: true,
user_starred_path: `${mockProjectDir}/metrics_user_starred_dashboards?dashboard_path=.gitlab/dashboards/dashboard.yml`, user_starred_path: `${mockProjectDir}/metrics_user_starred_dashboards?dashboard_path=.gitlab/dashboards/dashboard.yml`,
...@@ -224,7 +224,7 @@ export const selfMonitoringDashboardGitResponse = [ ...@@ -224,7 +224,7 @@ export const selfMonitoringDashboardGitResponse = [
can_edit: true, can_edit: true,
system_dashboard: false, system_dashboard: false,
out_of_the_box_dashboard: false, out_of_the_box_dashboard: false,
project_blob_path: `${mockProjectDir}/-/blob/master/.gitlab/dashboards/dashboard.yml`, project_blob_path: `${mockProjectDir}/-/blob/main/.gitlab/dashboards/dashboard.yml`,
path: '.gitlab/dashboards/dashboard.yml', path: '.gitlab/dashboards/dashboard.yml',
starred: true, starred: true,
user_starred_path: `${mockProjectDir}/metrics_user_starred_dashboards?dashboard_path=.gitlab/dashboards/dashboard.yml`, user_starred_path: `${mockProjectDir}/metrics_user_starred_dashboards?dashboard_path=.gitlab/dashboards/dashboard.yml`,
...@@ -572,7 +572,7 @@ export const storeVariables = [ ...@@ -572,7 +572,7 @@ export const storeVariables = [
]; ];
export const dashboardHeaderProps = { export const dashboardHeaderProps = {
defaultBranch: 'master', defaultBranch: 'main',
isRearrangingPanels: false, isRearrangingPanels: false,
selectedTimeRange: { selectedTimeRange: {
start: '2020-01-01T00:00:00.000Z', start: '2020-01-01T00:00:00.000Z',
...@@ -581,7 +581,7 @@ export const dashboardHeaderProps = { ...@@ -581,7 +581,7 @@ export const dashboardHeaderProps = {
}; };
export const dashboardActionsMenuProps = { export const dashboardActionsMenuProps = {
defaultBranch: 'master', defaultBranch: 'main',
addingMetricsAvailable: true, addingMetricsAvailable: true,
customMetricsPath: 'https://path/to/customMetrics', customMetricsPath: 'https://path/to/customMetrics',
validateQueryPath: 'https://path/to/validateQuery', validateQueryPath: 'https://path/to/validateQuery',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment