From 19a2e744753bedaadfeaaaec6ba35db05a197a69 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Wed, 14 Feb 2024 09:40:08 -0500 Subject: [PATCH] Remove 'ghae' from some unit tests for automated-pipelines (#49208) --- src/automated-pipelines/lib/update-markdown.js | 10 ++++------ .../tests/fixtures/content/articles/article.md | 5 ++--- .../tests/fixtures/content/articles/index.md | 7 +++---- .../tests/fixtures/content/index.md | 5 ++--- .../tests/fixtures/content/rest/actions/artifacts.md | 5 ++--- .../tests/fixtures/content/rest/actions/index.md | 5 ++--- .../tests/fixtures/content/rest/actions/workflows.md | 5 ++--- .../tests/fixtures/content/rest/checks/index.md | 5 ++--- .../tests/fixtures/content/rest/checks/suites.md | 5 ++--- .../tests/fixtures/content/rest/guides/apis.md | 5 ++--- .../tests/fixtures/content/rest/guides/index.md | 7 +++---- .../tests/fixtures/content/rest/index.md | 5 ++--- .../tests/fixtures/content/rest/overview/apis.md | 5 ++--- .../tests/fixtures/content/rest/overview/index.md | 7 +++---- src/automated-pipelines/tests/update-markdown.js | 1 - 15 files changed, 33 insertions(+), 49 deletions(-) diff --git a/src/automated-pipelines/lib/update-markdown.js b/src/automated-pipelines/lib/update-markdown.js index 6635fc3dad..d5681194e0 100644 --- a/src/automated-pipelines/lib/update-markdown.js +++ b/src/automated-pipelines/lib/update-markdown.js @@ -330,15 +330,13 @@ async function getIndexFileVersions(directory, files) { 'enterprise-server@3.4', 'enterprise-server@3.5', 'enterprise-server@3.6', - 'enterprise-server@3.7', - 'github-ae@latest' + 'enterprise-server@3.7' ] and returns the frontmatter equivalent JSON: -{ +{ fpt: '*', - ghae: '*', - ghec: '*', - ghes: '*' + ghec: '*', + ghes: '*' } */ export async function convertVersionsToFrontmatter(versions) { diff --git a/src/automated-pipelines/tests/fixtures/content/articles/article.md b/src/automated-pipelines/tests/fixtures/content/articles/article.md index 9af8bb8fc1..ebfbc78ca9 100644 --- a/src/automated-pipelines/tests/fixtures/content/articles/article.md +++ b/src/automated-pipelines/tests/fixtures/content/articles/article.md @@ -1,10 +1,9 @@ --- title: Article -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' --- -I'm an article \ No newline at end of file +I'm an article diff --git a/src/automated-pipelines/tests/fixtures/content/articles/index.md b/src/automated-pipelines/tests/fixtures/content/articles/index.md index f3ba85d9e1..61b60a9c36 100644 --- a/src/automated-pipelines/tests/fixtures/content/articles/index.md +++ b/src/automated-pipelines/tests/fixtures/content/articles/index.md @@ -1,10 +1,9 @@ --- title: Articles -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' -children: +children: - '/article' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/index.md b/src/automated-pipelines/tests/fixtures/content/index.md index f8cec9867c..acd051cf7f 100644 --- a/src/automated-pipelines/tests/fixtures/content/index.md +++ b/src/automated-pipelines/tests/fixtures/content/index.md @@ -1,12 +1,11 @@ --- title: Landing page -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest children: - 'articles' - 'rest' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/actions/artifacts.md b/src/automated-pipelines/tests/fixtures/content/rest/actions/artifacts.md index ebecc97750..52c65c0f19 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/actions/artifacts.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/actions/artifacts.md @@ -1,9 +1,8 @@ --- title: Artifacts -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/actions/index.md b/src/automated-pipelines/tests/fixtures/content/rest/actions/index.md index d9dbe17168..73ce3c9c8f 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/actions/index.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/actions/index.md @@ -1,12 +1,11 @@ --- title: Actions -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest children: - '/artifacts' - '/secrets' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/actions/workflows.md b/src/automated-pipelines/tests/fixtures/content/rest/actions/workflows.md index 87bedd4268..b6dcbd575d 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/actions/workflows.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/actions/workflows.md @@ -1,9 +1,8 @@ --- title: Workflows -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/checks/index.md b/src/automated-pipelines/tests/fixtures/content/rest/checks/index.md index a3d0110f76..0788abbd08 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/checks/index.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/checks/index.md @@ -1,11 +1,10 @@ --- title: Checks -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest children: - '/suites' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/checks/suites.md b/src/automated-pipelines/tests/fixtures/content/rest/checks/suites.md index 4eba88a86e..94064aa524 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/checks/suites.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/checks/suites.md @@ -1,9 +1,8 @@ --- title: Suites -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: rest ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/guides/apis.md b/src/automated-pipelines/tests/fixtures/content/rest/guides/apis.md index a2585b287e..25a506cfc1 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/guides/apis.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/guides/apis.md @@ -1,9 +1,8 @@ --- title: APIs -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: github-apps ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/guides/index.md b/src/automated-pipelines/tests/fixtures/content/rest/guides/index.md index 87e7938dc1..04521d6ea8 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/guides/index.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/guides/index.md @@ -1,11 +1,10 @@ --- title: Overview -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: github-apps -children: +children: - '/apis' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/index.md b/src/automated-pipelines/tests/fixtures/content/rest/index.md index 5c8db0f5ad..fc0f0a6e0d 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/index.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/index.md @@ -1,8 +1,7 @@ --- title: 'REST' -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' children: @@ -10,4 +9,4 @@ children: - '/checks' - '/overview' autogenerated: rest ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/overview/apis.md b/src/automated-pipelines/tests/fixtures/content/rest/overview/apis.md index a2585b287e..25a506cfc1 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/overview/apis.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/overview/apis.md @@ -1,9 +1,8 @@ --- title: APIs -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: github-apps ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/fixtures/content/rest/overview/index.md b/src/automated-pipelines/tests/fixtures/content/rest/overview/index.md index 87e7938dc1..04521d6ea8 100644 --- a/src/automated-pipelines/tests/fixtures/content/rest/overview/index.md +++ b/src/automated-pipelines/tests/fixtures/content/rest/overview/index.md @@ -1,11 +1,10 @@ --- title: Overview -versions: +versions: fpt: '*' - ghae: '*' ghec: '*' ghes: '*' autogenerated: github-apps -children: +children: - '/apis' ---- \ No newline at end of file +--- diff --git a/src/automated-pipelines/tests/update-markdown.js b/src/automated-pipelines/tests/update-markdown.js index 7c18fa74b8..213fbd4bfb 100644 --- a/src/automated-pipelines/tests/update-markdown.js +++ b/src/automated-pipelines/tests/update-markdown.js @@ -10,7 +10,6 @@ import { updateContentDirectory } from '../lib/update-markdown.js' const versions = { fpt: '*', - ghae: '*', ghec: '*', ghes: '*', }