You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2022/12/29 02:15:34 UTC
[incubator-devlake] branch main updated: refactor(config-ui): remove cypress (#4056)
This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new b0efc1fbc refactor(config-ui): remove cypress (#4056)
b0efc1fbc is described below
commit b0efc1fbcd8837b41bc464422dad083f7d294835
Author: 青湛 <0x...@gmail.com>
AuthorDate: Thu Dec 29 10:15:31 2022 +0800
refactor(config-ui): remove cypress (#4056)
---
config-ui/.eslintrc | 38 +-
config-ui/.gitignore | 1 -
config-ui/README.md | 28 -
config-ui/cypress.json | 13 -
config-ui/cypress/fixtures/github-sources.json | 15 -
config-ui/cypress/fixtures/gitlab-sources.json | 7 -
config-ui/cypress/fixtures/jenkins-sources.json | 8 -
config-ui/cypress/fixtures/jira-sources.json | 41 --
.../fixtures/new-gitextractor-pipeline-tasks.json | 25 -
.../fixtures/new-gitextractor-pipeline.json | 24 -
.../cypress/fixtures/new-github-connection.json | 14 -
.../fixtures/new-github-pipeline-tasks.json | 25 -
.../cypress/fixtures/new-github-pipeline.json | 24 -
.../cypress/fixtures/new-gitlab-connection.json | 14 -
.../fixtures/new-gitlab-pipeline-tasks.json | 24 -
.../cypress/fixtures/new-gitlab-pipeline.json | 23 -
.../cypress/fixtures/new-jenkins-connection.json | 14 -
.../fixtures/new-jenkins-pipeline-tasks.json | 22 -
.../cypress/fixtures/new-jenkins-pipeline.json | 1 -
.../cypress/fixtures/new-jira-connection.json | 14 -
.../cypress/fixtures/new-jira-pipeline-tasks.json | 25 -
config-ui/cypress/fixtures/new-jira-pipeline.json | 24 -
.../fixtures/new-refdiff-pipeline-tasks.json | 34 -
.../cypress/fixtures/new-refdiff-pipeline.json | 33 -
config-ui/cypress/fixtures/pipeline-activity.json | 28 -
config-ui/cypress/fixtures/pipeline-tasks.json | 42 --
config-ui/cypress/fixtures/pipelines.json | 360 ----------
config-ui/cypress/integration/0-api/api.spec.js | 119 ----
.../integration/1-application/navbar.spec.js | 40 --
.../integration/1-application/sidebar.spec.js | 81 ---
.../2-data-integrations/providers.spec.js | 229 ------
.../integration/3-pipelines/activity.spec.js | 136 ----
.../integration/3-pipelines/create-new.spec.js | 278 --------
.../cypress/integration/3-pipelines/manage.spec.js | 78 --
config-ui/cypress/plugins/index.js | 37 -
config-ui/cypress/support/commands.js | 40 --
config-ui/cypress/support/index.js | 28 -
config-ui/package-lock.json | 789 ---------------------
config-ui/package.json | 2 -
config-ui/test/json.js | 38 -
config-ui/test/testData.js | 55 --
config-ui/webpack.config.js | 4 +-
config-ui/webpack.production.config.js | 4 +-
43 files changed, 11 insertions(+), 2868 deletions(-)
diff --git a/config-ui/.eslintrc b/config-ui/.eslintrc
index 98faab0e2..e8dab1e18 100644
--- a/config-ui/.eslintrc
+++ b/config-ui/.eslintrc
@@ -8,23 +8,12 @@
"plugin:react-hooks/recommended",
"prettier"
],
- "ignorePatterns": [
- "dist/*",
- "/packages/*",
- "/cypress/",
- "/config/",
- "/node_modules/"
- ],
+ "ignorePatterns": ["dist/*", "/packages/*", "/config/", "/node_modules/"],
"env": {
"browser": true,
"jest": true
},
- "plugins": [
- "unicorn",
- "babel",
- "header",
- "prettier"
- ],
+ "plugins": ["unicorn", "babel", "header", "prettier"],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
@@ -36,19 +25,12 @@
"alias": {
"extensions": [".js"],
"map": [
- [
- "@", "./src/"
- ],
- [
- "@config", "./config/"
- ]
+ ["@", "./src/"],
+ ["@config", "./config/"]
]
},
"babel-module": {
- "extensions": [
- ".js",
- ".ts"
- ]
+ "extensions": [".js", ".ts"]
}
}
},
@@ -62,15 +44,9 @@
"react/jsx-indent": ["error", 2],
"react/jsx-wrap-multilines": 0,
"react/jsx-first-prop-new-line": [2, "multiline"],
- "react/jsx-max-props-per-line": [
- 2,
- { "maximum": 1, "when": "multiline" }
- ],
+ "react/jsx-max-props-per-line": [2, { "maximum": 1, "when": "multiline" }],
"react/jsx-indent-props": [2, 2],
- "react/jsx-closing-bracket-location": [
- 2,
- "tag-aligned"
- ],
+ "react/jsx-closing-bracket-location": [2, "tag-aligned"],
"import/no-named-as-default": "off",
"comma-dangle": "off",
"react/prop-types": "off",
diff --git a/config-ui/.gitignore b/config-ui/.gitignore
index 26bf26ec5..772b62e15 100644
--- a/config-ui/.gitignore
+++ b/config-ui/.gitignore
@@ -7,7 +7,6 @@
# testing
/coverage
-cypress.env.json
# next.js
/.next/
diff --git a/config-ui/README.md b/config-ui/README.md
index 09aa0bc6c..e028532bd 100644
--- a/config-ui/README.md
+++ b/config-ui/README.md
@@ -5,7 +5,6 @@ The **Config-UI Application** is a **React.js** SPA (Single-Page-Application) th
#### Technology / Stack Overview
- React.js
- BlueprintJS
-- Cypress
- Webpack
## Development
@@ -166,30 +165,3 @@ const ProviderTransformationSettings = (props) => {
}
```
-
-
-## Testing
-
-### Cypress E2E Tests
-The Cypress Test Runner has been installed and configured for `@config-ui`. **Integration Tests** are located at `@config-ui/cypress/integration`.
-
-Before writing tests please read official **Cypress** Documentation at [https://docs.cypress.io/](https://docs.cypress.io/)
-
-#### Integration Tests Coverage
-Test **Specs** are organized in the following main **groups**. New tests cases should be added to the appropriate spec group file(s), or a new group should be created if necessary for new criteria, or to create alternate flows.
-
-| Integration Group | Tests | Status |
-| ----------------------- | ----------------- | -----: |
-| 0-api | 5 | PASS |
-| 1-application | 12 | PASS |
-| 2-data-integrations | 17 | PASS |
-| 3-pipelines | 30 | PASS |
-
-Test cases will be updated and created as necessary when new features are added and important bug-fixes are applied.
-
-#### Open/RUN Cypress
-Once the **Cypress Dashboard** opens, choose a test file from the available list of integration tests.
-
-```
-[config-ui@main] $> npm run cypress
-```
\ No newline at end of file
diff --git a/config-ui/cypress.json b/config-ui/cypress.json
deleted file mode 100644
index 28068e7ac..000000000
--- a/config-ui/cypress.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "environment": "development",
- "baseUrl": "http://localhost:4000",
- "env": {
- "appUrl": "http://localhost:4000",
- "apiUrl": "http://localhost:8080/"
- },
- "chromeWebSecurity": false,
- "viewportWidth": 1360,
- "viewportHeight": 768,
- "screenshotOnRunFailure": false,
- "video": false
-}
diff --git a/config-ui/cypress/fixtures/github-sources.json b/config-ui/cypress/fixtures/github-sources.json
deleted file mode 100644
index bc7527b49..000000000
--- a/config-ui/cypress/fixtures/github-sources.json
+++ /dev/null
@@ -1,15 +0,0 @@
-[{
- "Name": "Github",
- "ID": 1,
- "Endpoint": "https://api.github.com/",
- "Auth": "xxxxxxxxxxxxxxxxxxx",
- "Proxy": "",
- "PrType": "",
- "PrComponent": "",
- "IssueSeverity": "",
- "IssuePriority": "",
- "IssueComponent": "",
- "IssueTypeBug": "",
- "IssueTypeIncident": "",
- "IssueTypeRequirement": ""
-}]
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/gitlab-sources.json b/config-ui/cypress/fixtures/gitlab-sources.json
deleted file mode 100644
index bfedcd533..000000000
--- a/config-ui/cypress/fixtures/gitlab-sources.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[{
- "Name": "Gitlab",
- "ID": 1,
- "Endpoint": "https://gitlab.com/api/v4/",
- "Auth": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "Proxy": ""
-}]
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/jenkins-sources.json b/config-ui/cypress/fixtures/jenkins-sources.json
deleted file mode 100644
index 026971f1f..000000000
--- a/config-ui/cypress/fixtures/jenkins-sources.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[{
- "ID": 1,
- "Name": "Jenkins",
- "Endpoint": "http://localhost:9090/",
- "Username": "username",
- "Password": "password",
- "Proxy": ""
-}]
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/jira-sources.json b/config-ui/cypress/fixtures/jira-sources.json
deleted file mode 100644
index 118a05053..000000000
--- a/config-ui/cypress/fixtures/jira-sources.json
+++ /dev/null
@@ -1,41 +0,0 @@
-[
- {
- "id": 10,
- "createdAt": "2021-11-22T21:19:34.684Z",
- "updatedAt": "2022-03-03T16:17:11.278Z",
- "name": "JIRA SERVER #1",
- "endpoint": "https://jira-619dd0c0-78f0-4661-9763-d59196fa33ff.atlassian.net/rest/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx===============",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "",
- "rateLimit": 0
- },
- {
- "id": 20,
- "createdAt": "2021-11-23T21:19:34.684Z",
- "updatedAt": "2022-03-04T16:17:11.278Z",
- "name": "JIRA SERVER #2",
- "endpoint": "https://5fc93aeb-bb6f-45d4-a2c7-d7b7b424141d.atlassian.net/rest/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx===============",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "",
- "rateLimit": 0
- },
- {
- "id": 30,
- "createdAt": "2021-11-23T21:19:34.684Z",
- "updatedAt": "2022-03-04T16:17:11.278Z",
- "name": "JIRA SERVER #3",
- "endpoint": "https://e9272d1c-bd23-4937-9129-ae9b55fd14f6.atlassian.net/rest/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx===============",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "",
- "rateLimit": 0
- }
-]
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json b/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json
deleted file mode 100644
index f73251d84..000000000
--- a/config-ui/cypress/fixtures/new-gitextractor-pipeline-tasks.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-21T20:59:09.448Z",
- "updatedAt": "2022-03-21T20:59:17.699Z",
- "plugin": "gitextractor",
- "options": {
- "url": "https://github.com/apache/incubator-devlake.git",
- "repoId": "github:GithubRepo:384111310"
- },
- "status": "TASK_FAILED",
- "message": "Error 1364: Field 'origin_key' doesn't have a default value",
- "progress": 0.1,
- "failedSubTask": "",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-21T20:59:09.506Z",
- "finishedAt": "2022-03-21T20:59:17.698Z",
- "spentSeconds": 8
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-gitextractor-pipeline.json b/config-ui/cypress/fixtures/new-gitextractor-pipeline.json
deleted file mode 100644
index 2bf669f4d..000000000
--- a/config-ui/cypress/fixtures/new-gitextractor-pipeline.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": 1000,
- "createdAt": "2022-03-21T16:59:09.429-04:00",
- "updatedAt": "2022-03-21T16:59:09.468-04:00",
- "name": "COLLECT GITEXTRACTOR 1647893388050",
- "tasks": [
- [
- {
- "plugin": "gitextractor",
- "options": {
- "repoId": "github:GithubRepo:384111310",
- "url": "https://github.com/apache/incubator-devlake.git"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 0,
- "beganAt": null,
- "finishedAt": null,
- "status": "TASK_CREATED",
- "message": "",
- "spentSeconds": 0
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-github-connection.json b/config-ui/cypress/fixtures/new-github-connection.json
deleted file mode 100644
index de2f5db1a..000000000
--- a/config-ui/cypress/fixtures/new-github-connection.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": 63,
- "createdAt": "2022-03-22T02:12:01.426Z",
- "updatedAt": "2022-03-22T02:12:01.426Z",
- "name": "TEST GITHUB INSTANCE",
- "endpoint": "https://github.com/api/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "http://proxy.localhost:8800",
- "rateLimitPerHour": 0,
- "typeMappings": {}
-}
diff --git a/config-ui/cypress/fixtures/new-github-pipeline-tasks.json b/config-ui/cypress/fixtures/new-github-pipeline-tasks.json
deleted file mode 100644
index 28c7de6af..000000000
--- a/config-ui/cypress/fixtures/new-github-pipeline-tasks.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-21T19:59:08.531Z",
- "updatedAt": "2022-03-21T19:59:08.531Z",
- "plugin": "github",
- "options": {
- "repo": "lake",
- "owner": "merico-dev"
- },
- "status": "TASK_CREATED",
- "message": "",
- "progress": 0,
- "failedSubTask": "",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": null,
- "finishedAt": null,
- "spentSeconds": 0
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-github-pipeline.json b/config-ui/cypress/fixtures/new-github-pipeline.json
deleted file mode 100644
index 7e29cec92..000000000
--- a/config-ui/cypress/fixtures/new-github-pipeline.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": 1000,
- "createdAt": "2022-03-21T15:59:08.516-04:00",
- "updatedAt": "2022-03-21T15:59:08.546-04:00",
- "name": "COLLECT GITHUB 1647890923175",
- "tasks": [
- [
- {
- "plugin": "github",
- "options": {
- "owner": "merico-dev",
- "repo": "lake"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 0,
- "beganAt": null,
- "finishedAt": null,
- "status": "TASK_CREATED",
- "message": "",
- "spentSeconds": 0
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-gitlab-connection.json b/config-ui/cypress/fixtures/new-gitlab-connection.json
deleted file mode 100644
index 83a448e7f..000000000
--- a/config-ui/cypress/fixtures/new-gitlab-connection.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": 63,
- "createdAt": "2022-03-22T02:12:01.426Z",
- "updatedAt": "2022-03-22T02:12:01.426Z",
- "name": "TEST GITLAB INSTANCE",
- "endpoint": "https://gitlab.com/api/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "http://proxy.localhost:8800",
- "rateLimitPerHour": 0,
- "typeMappings": {}
-}
diff --git a/config-ui/cypress/fixtures/new-gitlab-pipeline-tasks.json b/config-ui/cypress/fixtures/new-gitlab-pipeline-tasks.json
deleted file mode 100644
index e0232a451..000000000
--- a/config-ui/cypress/fixtures/new-gitlab-pipeline-tasks.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-21T19:19:51.778Z",
- "updatedAt": "2022-03-21T19:19:51.83Z",
- "plugin": "gitlab",
- "options": {
- "projectId": 278964
- },
- "status": "TASK_RUNNING",
- "message": "",
- "progress": 0.1,
- "failedSubTask": "",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-21T19:19:51.816Z",
- "finishedAt": null,
- "spentSeconds": 0
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-gitlab-pipeline.json b/config-ui/cypress/fixtures/new-gitlab-pipeline.json
deleted file mode 100644
index 276d7b1f0..000000000
--- a/config-ui/cypress/fixtures/new-gitlab-pipeline.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "id": 1000,
- "createdAt": "2022-03-21T15:06:22.053-04:00",
- "updatedAt": "2022-03-21T15:06:22.077-04:00",
- "name": "COLLECT GITLAB 1647889530097",
- "tasks": [
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 278964
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 0,
- "beganAt": null,
- "finishedAt": null,
- "status": "TASK_CREATED",
- "message": "",
- "spentSeconds": 0
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-jenkins-connection.json b/config-ui/cypress/fixtures/new-jenkins-connection.json
deleted file mode 100644
index 6bb3416fc..000000000
--- a/config-ui/cypress/fixtures/new-jenkins-connection.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": 63,
- "createdAt": "2022-03-22T02:12:01.426Z",
- "updatedAt": "2022-03-22T02:12:01.426Z",
- "name": "TEST JENKINS INSTANCE",
- "endpoint": "https://jenkins.com/api/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "http://proxy.localhost:8800",
- "rateLimitPerHour": 0,
- "typeMappings": {}
-}
diff --git a/config-ui/cypress/fixtures/new-jenkins-pipeline-tasks.json b/config-ui/cypress/fixtures/new-jenkins-pipeline-tasks.json
deleted file mode 100644
index cb3acbcb6..000000000
--- a/config-ui/cypress/fixtures/new-jenkins-pipeline-tasks.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-21T19:11:52.74Z",
- "updatedAt": "2022-03-21T19:11:53Z",
- "plugin": "jenkins",
- "options": {},
- "status": "TASK_COMPLETED",
- "message": "",
- "progress": 1,
- "failedSubTask": "",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-21T19:11:52.779Z",
- "finishedAt": "2022-03-21T19:11:52.997Z",
- "spentSeconds": 0
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-jenkins-pipeline.json b/config-ui/cypress/fixtures/new-jenkins-pipeline.json
deleted file mode 100644
index 810a3151b..000000000
--- a/config-ui/cypress/fixtures/new-jenkins-pipeline.json
+++ /dev/null
@@ -1 +0,0 @@
-{"id":1000,"createdAt":"2022-03-21T14:53:11.458-04:00","updatedAt":"2022-03-21T14:53:11.488-04:00","name":"COLLECT JENKINS 1647888788955","tasks":[[{"plugin":"jenkins","options":{}}]],"totalTasks":1,"finishedTasks":0,"beganAt":null,"finishedAt":null,"status":"TASK_CREATED","message":"","spentSeconds":0}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-jira-connection.json b/config-ui/cypress/fixtures/new-jira-connection.json
deleted file mode 100644
index 486ad5fdb..000000000
--- a/config-ui/cypress/fixtures/new-jira-connection.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": 63,
- "createdAt": "2022-03-22T02:12:01.426Z",
- "updatedAt": "2022-03-22T02:12:01.426Z",
- "name": "TEST JIRA INSTANCE",
- "endpoint": "https://test-46f2c29a-2955-4fa6-8de8-fffeaf8cf8e0.atlassian.net/rest/",
- "basicAuthEncoded": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
- "epicKeyField": "",
- "storyPointField": "",
- "remotelinkCommitShaPattern": "",
- "proxy": "http://proxy.localhost:8800",
- "rateLimitPerHour": 0,
- "typeMappings": {}
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-jira-pipeline-tasks.json b/config-ui/cypress/fixtures/new-jira-pipeline-tasks.json
deleted file mode 100644
index ab89f58b7..000000000
--- a/config-ui/cypress/fixtures/new-jira-pipeline-tasks.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-21T21:14:32.903Z",
- "updatedAt": "2022-03-21T21:14:34.97Z",
- "plugin": "jira",
- "options": {
- "boardId": 1,
- "connectionId": 54
- },
- "status": "TASK_RUNNING",
- "message": "",
- "progress": 0.01,
- "failedSubTask": "",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-21T21:14:32.949Z",
- "finishedAt": null,
- "spentSeconds": 2
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-jira-pipeline.json b/config-ui/cypress/fixtures/new-jira-pipeline.json
deleted file mode 100644
index ef84df9e1..000000000
--- a/config-ui/cypress/fixtures/new-jira-pipeline.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": 1000,
- "createdAt": "2022-03-21T17:14:32.887-04:00",
- "updatedAt": "2022-03-21T17:14:32.915-04:00",
- "name": "COLLECT JIRA 1647897256166",
- "tasks": [
- [
- {
- "plugin": "jira",
- "options": {
- "boardId": 1,
- "connectionId": 54
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 0,
- "beganAt": null,
- "finishedAt": null,
- "status": "TASK_CREATED",
- "message": "",
- "spentSeconds": 0
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-refdiff-pipeline-tasks.json b/config-ui/cypress/fixtures/new-refdiff-pipeline-tasks.json
deleted file mode 100644
index 2a8ac2fe9..000000000
--- a/config-ui/cypress/fixtures/new-refdiff-pipeline-tasks.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "count": 1,
- "tasks": [
- {
- "id": 100,
- "createdAt": "2022-03-22T14:08:53.627Z",
- "updatedAt": "2022-03-22T14:08:53.698Z",
- "plugin": "refdiff",
- "options": {
- "pairs": [
- {
- "newRef": "refs/tags/v0.2.0",
- "oldRef": "refs/tags/v0.1.0"
- }
- ],
- "tasks": [
- "calculateCommitsDiff",
- "calculateIssuesDiff"
- ],
- "repoId": "github:GithubRepo:384111310"
- },
- "status": "TASK_FAILED",
- "message": "could not process calculateCommitsDiff: failed to load commit sha for OleRef on pair #0: faild to load Ref info for repoId:github:GithubRepo:384111310, refName:refs/tags/v0.1.0",
- "progress": 0.1,
- "failedSubTask": "calculateCommitsDiff",
- "pipelineId": 1000,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-22T14:08:53.67Z",
- "finishedAt": "2022-03-22T14:08:53.697Z",
- "spentSeconds": 0
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/new-refdiff-pipeline.json b/config-ui/cypress/fixtures/new-refdiff-pipeline.json
deleted file mode 100644
index 24307a6be..000000000
--- a/config-ui/cypress/fixtures/new-refdiff-pipeline.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "id": 1000,
- "createdAt": "2022-03-22T10:08:53.616-04:00",
- "updatedAt": "2022-03-22T10:08:53.639-04:00",
- "name": "COLLECT REFDIFF 1647957882192",
- "tasks": [
- [
- {
- "plugin": "refdiff",
- "options": {
- "pairs": [
- {
- "newRef": "refs/tags/v0.2.0",
- "oldRef": "refs/tags/v0.1.0"
- }
- ],
- "repoId": "github:GithubRepo:384111310",
- "tasks": [
- "calculateCommitsDiff",
- "calculateIssuesDiff"
- ]
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 0,
- "beganAt": null,
- "finishedAt": null,
- "status": "TASK_CREATED",
- "message": "",
- "spentSeconds": 0
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/pipeline-activity.json b/config-ui/cypress/fixtures/pipeline-activity.json
deleted file mode 100644
index bca003667..000000000
--- a/config-ui/cypress/fixtures/pipeline-activity.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "id": 100,
- "createdAt": "2022-03-04T19:12:38.652Z",
- "updatedAt": "2022-03-04T19:12:39.002Z",
- "name": "COLLECT 1646421154881",
- "tasks": [
- [
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "github",
- "options": {
- "owner": "e2corporation",
- "repositoryName": "publicity.js"
- }
- }
- ]
- ],
- "totalTasks": 2,
- "finishedTasks": 1,
- "beganAt": "2022-03-04T19:12:38.69Z",
- "finishedAt": "2022-03-04T19:12:39.001Z",
- "status": "TASK_COMPLETED",
- "message": "",
- "spentSeconds": 1
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/pipeline-tasks.json b/config-ui/cypress/fixtures/pipeline-tasks.json
deleted file mode 100644
index 2ed9e3a26..000000000
--- a/config-ui/cypress/fixtures/pipeline-tasks.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "count": 2,
- "tasks": [
- {
- "id": 1792,
- "createdAt": "2022-03-10T22:22:29.717Z",
- "updatedAt": "2022-03-10T22:22:30.142Z",
- "plugin": "jenkins",
- "options": {},
- "status": "TASK_COMPLETED",
- "message": "",
- "progress": 1,
- "failedSubTask": "",
- "pipelineId": 100,
- "pipelineRow": 1,
- "pipelineCol": 1,
- "beganAt": "2022-03-10T22:22:29.783Z",
- "finishedAt": "2022-03-10T22:22:30.141Z",
- "spentSeconds": 1
- },
- {
- "id": 632,
- "createdAt": "2022-03-10T22:08:39.525Z",
- "updatedAt": "2022-03-10T22:41:40.833Z",
- "plugin": "github",
- "options": {
- "owner": "e2corporation",
- "repositoryName": "publicity.js"
- },
- "status": "TASK_FAILED",
- "message": "Error 1364: Field 'origin_key' doesn't have a default value",
- "progress": 0.5,
- "failedSubTask": "",
- "pipelineId": 100,
- "pipelineRow": 1,
- "pipelineCol": 2,
- "beganAt": "2022-03-10T22:08:39.581Z",
- "finishedAt": "2022-03-10T22:41:40.831Z",
- "spentSeconds": 1981
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/fixtures/pipelines.json b/config-ui/cypress/fixtures/pipelines.json
deleted file mode 100644
index dbb624e7c..000000000
--- a/config-ui/cypress/fixtures/pipelines.json
+++ /dev/null
@@ -1,360 +0,0 @@
-
-{
- "count": 10,
- "pipelines": [
-
- {
- "id": 100,
- "createdAt": "2022-03-04T19:12:38.652Z",
- "updatedAt": "2022-03-04T19:12:39.002Z",
- "name": "COLLECT 1646421154881",
- "tasks": [
- [
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "github",
- "options": {
- "owner": "e2corporation",
- "repositoryName": "publicity.js"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 1,
- "beganAt": "2022-03-04T19:12:38.69Z",
- "finishedAt": "2022-03-04T19:12:39.001Z",
- "status": "TASK_COMPLETED",
- "message": "",
- "spentSeconds": 1
- },
- {
- "id": 120,
- "createdAt": "2022-02-18T20:19:12.74Z",
- "updatedAt": "2022-02-21T14:45:46.575Z",
- "name": "DEVLAKE 1645215528120",
- "tasks": [
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- },
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "github",
- "options": {
- "repo": "lake",
- "owner": "merico-dev"
- }
- }
- ]
- ],
- "totalTasks": 3,
- "finishedTasks": 2,
- "beganAt": "2022-02-18T20:19:12.789Z",
- "finishedAt": null,
- "status": "TASK_FAILED",
- "message": "",
- "spentSeconds": 0
- },
- {
- "id": 130,
- "createdAt": "2022-02-18T20:17:34.257Z",
- "updatedAt": "2022-02-21T14:45:46.575Z",
- "name": "COLLECT 1645215348961",
- "tasks": [
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- },
- {
- "plugin": "jira",
- "options": {
- "boardId": 8,
- "connectionId": 1
- }
- },
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "github",
- "options": {
- "repo": "lake",
- "owner": "merico-dev"
- }
- }
- ]
- ],
- "totalTasks": 4,
- "finishedTasks": 3,
- "beganAt": "2022-02-18T20:17:34.318Z",
- "finishedAt": null,
- "status": "TASK_FAILED",
- "message": "",
- "spentSeconds": 0
- },
- {
- "id": 140,
- "createdAt": "2022-02-18T17:57:00.572Z",
- "updatedAt": "2022-02-18T17:57:01.156Z",
- "name": "COLLECT 1645206990997",
- "tasks": [
- [
- {
- "plugin": "feishu",
- "options": {}
- }
- ],
- [
- {
- "plugin": "jenkins",
- "options": {}
- }
- ]
- ],
- "totalTasks": 2,
- "finishedTasks": 1,
- "beganAt": "2022-02-18T17:57:00.622Z",
- "finishedAt": "2022-02-18T17:57:01.155Z",
- "status": "TASK_FAILED",
- "message": "{\"code\":10003,\"data\":{},\"msg\":\"invalid param\"}",
- "spentSeconds": 1
- },
- {
- "id": 150,
- "createdAt": "2022-02-18T17:56:15.819Z",
- "updatedAt": "2022-02-18T17:56:16.818Z",
- "name": "COLLECT 1645206942991",
- "tasks": [
- [
- {
- "plugin": "feishu",
- "options": {}
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 1,
- "beganAt": "2022-02-18T17:56:15.854Z",
- "finishedAt": "2022-02-18T17:56:16.816Z",
- "status": "TASK_FAILED",
- "message": "{\"code\":10003,\"data\":{},\"msg\":\"invalid param\"}",
- "spentSeconds": 1
- },
- {
- "id": 160,
- "createdAt": "2022-02-16T05:39:55.211Z",
- "updatedAt": "2022-02-18T18:21:08.942Z",
- "name": "COLLECT 1644989989548",
- "tasks": [
- [
- {
- "plugin": "github",
- "options": {
- "owner": "merico-dev",
- "repositoryName": "lake"
- }
- },
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "jira",
- "options": {
- "boardId": 8,
- "connectionId": 1
- }
- },
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 4967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 1967944
- }
- }
- ]
- ],
- "totalTasks": 7,
- "finishedTasks": 3,
- "beganAt": "2022-02-16T05:39:55.286Z",
- "finishedAt": null,
- "status": "TASK_FAILED",
- "message": "",
- "spentSeconds": 0
- },
- {
- "id": 170,
- "createdAt": "2022-02-16T05:39:38.849Z",
- "updatedAt": "2022-02-16T05:39:44.388Z",
- "name": "COLLECT 1644989938074",
- "tasks": [
- [
- {
- "plugin": "gitextractor",
- "options": {
- "url": "https://github.com/apache/incubator-devlake.git",
- "repoId": "github:GithubRepo:384111310"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 1,
- "beganAt": "2022-02-16T05:39:38.886Z",
- "finishedAt": "2022-02-16T05:39:44.386Z",
- "status": "TASK_FAILED",
- "message": "Error 1364: Field 'origin_key' doesn't have a default value",
- "spentSeconds": 6
- },
- {
- "id": 180,
- "createdAt": "2022-02-16T03:24:45.977Z",
- "updatedAt": "2022-02-16T03:25:46.185Z",
- "name": "COLLECT 1644981873533",
- "tasks": [
- [
- {
- "plugin": "github",
- "options": {
- "repo": "lake",
- "owner": "merico-dev"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 1,
- "beganAt": "2022-02-16T03:24:46.014Z",
- "finishedAt": "2022-02-16T03:25:46.184Z",
- "status": "TASK_FAILED",
- "message": "run task failed with panic (github.com/apache/incubator-devlake/utils.(*WorkerScheduler).WaitUntilFinish:87): [Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/apache/incubator-devlake/utils.(*WorkerScheduler).Submit.func1:79 Error 1364: Field 'github_repo_id' doesn't have a default value\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1:71\ngithub.com/apache/incubator-devlake/utils.(*Wo [...]
- "spentSeconds": 60
- },
- {
- "id": 190,
- "createdAt": "2022-02-16T03:24:19.572Z",
- "updatedAt": "2022-02-16T03:24:19.683Z",
- "name": "COLLECT 1644981843233",
- "tasks": [
- [
- {
- "plugin": "github",
- "options": {
- "owner": "merico-dev",
- "repositoryName": "lake"
- }
- }
- ]
- ],
- "totalTasks": 1,
- "finishedTasks": 1,
- "beganAt": "2022-02-16T03:24:19.621Z",
- "finishedAt": "2022-02-16T03:24:19.68Z",
- "status": "TASK_FAILED",
- "message": "repo is required for GitHub execution",
- "spentSeconds": 0
- },
- {
- "id": 200,
- "createdAt": "2022-02-16T03:23:52.253Z",
- "updatedAt": "2022-02-18T18:21:08.942Z",
- "name": "COLLECT 1644981827433",
- "tasks": [
- [
- {
- "plugin": "github",
- "options": {
- "owner": "merico-dev",
- "repositoryName": "lake"
- }
- },
- {
- "plugin": "jenkins",
- "options": {}
- },
- {
- "plugin": "jira",
- "options": {
- "boardId": 8,
- "connectionId": 1
- }
- },
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 8967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 4967944
- }
- }
- ],
- [
- {
- "plugin": "gitlab",
- "options": {
- "projectId": 1967944
- }
- }
- ]
- ],
- "totalTasks": 7,
- "finishedTasks": 3,
- "beganAt": "2022-02-16T03:23:52.333Z",
- "finishedAt": null,
- "status": "TASK_FAILED",
- "message": "",
- "spentSeconds": 0
- }
- ]
-}
\ No newline at end of file
diff --git a/config-ui/cypress/integration/0-api/api.spec.js b/config-ui/cypress/integration/0-api/api.spec.js
deleted file mode 100644
index 7a76f1bc8..000000000
--- a/config-ui/cypress/integration/0-api/api.spec.js
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context('API Network Requests', () => {
- beforeEach(() => {
- cy.visit('/')
- })
-
- it('listens for network ping request', () => {
- cy.request(`${Cypress.env('apiUrl')}ping`)
- .should((response) => {
- expect(response.status).to.eq(200)
- })
- })
-
- it('provides jira connection resources', () => {
- cy.request(`${Cypress.env('apiUrl')}plugins/jira/connections`)
- .should((response) => {
- expect(response.status).to.eq(200)
- expect(response.headers).to.have.property('content-type').and.to.eq('application/json; charset=utf-8')
- expect(response.body).to.be.an('array')
- expect(response.body[0]).to.have.property('createdAt')
- expect(response.body[0]).to.have.property('updatedAt')
- expect(response.body[0]).to.have.property('id')
- expect(response.body[0]).to.have.property('name')
- expect(response.body[0]).to.have.property('endpoint')
- expect(response.body[0]).to.have.property('username')
- expect(response.body[0]).to.have.property('password')
- expect(response.body[0]).to.have.property('proxy')
- expect(response.body[0]).to.have.property('rateLimitPerHour')
- })
- })
-
- it('provides jenkins connection resources', () => {
- cy.request(`${Cypress.env('apiUrl')}plugins/jenkins/connections`)
- .should((response) => {
- expect(response.status).to.eq(200)
- expect(response.headers).to.have.property('content-type').and.to.eq('application/json; charset=utf-8')
- expect(response.body).to.be.an('array')
- expect(response.body[0]).to.have.property('createdAt')
- expect(response.body[0]).to.have.property('updatedAt')
- expect(response.body[0]).to.have.property('id')
- expect(response.body[0]).to.have.property('name')
- expect(response.body[0]).to.have.property('endpoint')
- expect(response.body[0]).to.have.property('username')
- expect(response.body[0]).to.have.property('password')
- expect(response.body[0]).to.have.property('proxy')
- expect(response.body[0]).to.have.property('rateLimitPerHour')
- })
- })
-
- it('provides gitlab connection resources', () => {
- cy.request(`${Cypress.env('apiUrl')}plugins/gitlab/connections`)
- .should((response) => {
- expect(response.status).to.eq(200)
- expect(response.headers).to.have.property('content-type').and.to.eq('application/json; charset=utf-8')
- expect(response.body).to.be.an('array')
- expect(response.body[0]).to.have.property('createdAt')
- expect(response.body[0]).to.have.property('updatedAt')
- expect(response.body[0]).to.have.property('id')
- expect(response.body[0]).to.have.property('name')
- expect(response.body[0]).to.have.property('endpoint')
- expect(response.body[0]).to.have.property('token')
- expect(response.body[0]).to.have.property('proxy')
- expect(response.body[0]).to.have.property('rateLimitPerHour')
- })
- })
-
- it('provides github connection resources', () => {
- cy.request(`${Cypress.env('apiUrl')}plugins/github/connections`)
- .should((response) => {
- expect(response.status).to.eq(200)
- expect(response.headers).to.have.property('content-type').and.to.eq('application/json; charset=utf-8')
- expect(response.body).to.be.an('array')
- expect(response.body[0]).to.have.property('createdAt')
- expect(response.body[0]).to.have.property('updatedAt')
- expect(response.body[0]).to.have.property('id')
- expect(response.body[0]).to.have.property('name')
- expect(response.body[0]).to.have.property('endpoint')
- expect(response.body[0]).to.have.property('token')
- expect(response.body[0]).to.have.property('proxy')
- expect(response.body[0]).to.have.property('rateLimitPerHour')
- })
- })
-
- it('provides tapd connection resources', () => {
- cy.request(`${Cypress.env('apiUrl')}plugins/tapd/connections`)
- .should((response) => {
- expect(response.status).to.eq(200)
- expect(response.headers).to.have.property('content-type').and.to.eq('application/json; charset=utf-8')
- expect(response.body).to.be.an('array')
- expect(response.body[0]).to.have.property('createdAt')
- expect(response.body[0]).to.have.property('updatedAt')
- expect(response.body[0]).to.have.property('id')
- expect(response.body[0]).to.have.property('name')
- expect(response.body[0]).to.have.property('endpoint')
- expect(response.body[0]).to.have.property('username')
- expect(response.body[0]).to.have.property('password')
- expect(response.body[0]).to.have.property('proxy')
- expect(response.body[0]).to.have.property('rateLimitPerHour')
- })
- })
-})
diff --git a/config-ui/cypress/integration/1-application/navbar.spec.js b/config-ui/cypress/integration/1-application/navbar.spec.js
deleted file mode 100644
index fbaff7b64..000000000
--- a/config-ui/cypress/integration/1-application/navbar.spec.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context('Navbar', () => {
- beforeEach(() => {
- cy.visit('/')
- })
-
- it('shows merico github icon link', () => {
- cy.get('.navbar')
- .should('have.class', 'bp3-navbar')
- .find('a[href="https://github.com/apache/incubator-devlake"]')
- .should('be.visible')
- .and('have.class', 'navIconLink')
- })
-
- it('shows merico email icon link', () => {
- cy.get('.navbar')
- .should('have.class', 'bp3-navbar')
- .find('a[href="mailto:hello@merico.dev"]')
- .should('be.visible')
- .and('have.class', 'navIconLink')
- })
-})
diff --git a/config-ui/cypress/integration/1-application/sidebar.spec.js b/config-ui/cypress/integration/1-application/sidebar.spec.js
deleted file mode 100644
index 57465df89..000000000
--- a/config-ui/cypress/integration/1-application/sidebar.spec.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context('Sidebar', () => {
- beforeEach(() => {
- cy.visit('/')
- })
-
- it('shows merico application logo', () => {
- cy.get('.sidebar-card')
- .should('have.class', 'bp3-card')
- .find('.devlake-logo')
- .should($div => {
- expect($div.find('svg')).to.be.length(2)
- })
- .and('be.visible')
- })
-
- it('shows grafana dashboards access button', () => {
- cy.get('.sidebar-card')
- .should('have.class', 'bp3-card')
- .find('.sidebarMenu')
- .first()
- .should('match', 'ul')
- .contains('li', /Dashboard/i)
- })
-
- it('displays apache 2.0 license notice', () => {
- cy.get('.sidebar-card')
- .should('have.class', 'bp3-card')
- .contains('Apache 2.0 License')
- })
-
- describe('Navigation System', () => {
-
- it('displays primary navigation menu', () => {
- cy.get('.sidebar-card ')
- .should('have.class', 'bp3-card')
- .find('.sidebarMenu')
- .first()
- .should('match', 'ul')
- })
-
- it('provides access to data integrations', () => {
- cy.get('.sidebar-card ')
- .should('have.class', 'bp3-card')
- .find('.sidebarMenu')
- .first()
- .should('match', 'ul')
- .contains('li', /data integrations/i)
- .should('be.visible')
- })
-
- it('provides access to blueprints', () => {
- cy.get('.sidebar-card ')
- .should('have.class', 'bp3-card')
- .find('.sidebarMenu')
- .first()
- .should('match', 'ul')
- .contains('li', /blueprints/i)
- .should('be.visible')
- })
- })
-
-})
diff --git a/config-ui/cypress/integration/2-data-integrations/providers.spec.js b/config-ui/cypress/integration/2-data-integrations/providers.spec.js
deleted file mode 100644
index f93553a6c..000000000
--- a/config-ui/cypress/integration/2-data-integrations/providers.spec.js
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context('Data Integration Providers', () => {
- beforeEach(() => {
- cy.visit('/integrations')
- })
-
- describe('JIRA Data Provider', () => {
- it('provides access to jira integration', () => {
- cy.visit('/integrations/jira')
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/jira integration/i)
- })
-
- it('displays connection sources data table', () => {
- cy.visit('/integrations/jira')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('thead')
- .find('th')
- .should('contain', 'ID')
- .should('contain', 'Connection Name')
- .should('contain', 'Endpoint')
- .should('contain', 'Status')
- })
-
- it('displays add connection button', () => {
- cy.visit('/integrations/jira')
- cy.get('button.bp3-button').contains('Add Connection')
- .should('be.visible')
- })
-
- it('displays refresh connections button', () => {
- cy.visit('/integrations/jira')
- cy.get('button.bp3-button').contains('Refresh Connections')
- .should('be.visible')
- })
-
- it('can create a new connection', () => {
- cy.fixture('new-jira-connection').as('JIRAConnectionConnectionJSON')
- cy.intercept('POST', '/api/plugins/jira/connections', { statusCode: 201, body: '@JIRAConnectionConnectionJSON' }).as('createJIRAConnection')
- cy.visit('/integrations/jira')
- cy.get('button#btn-add-new-connection').click()
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.disabled')
-
- cy.get('input#connection-name').type('TEST JIRA INSTANCE')
- cy.get('input#connection-endpoint').type('https://test-46f2c29a-2955-4fa6-8de8-fffeaf8cf8e0.atlassian.net/rest/')
- cy.get('input#connection-username').type('some username')
- cy.get('input#connection-password').type('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
- cy.get('input#connection-proxy').type('http://proxy.localhost:8800')
-
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.enabled')
- .click()
-
- cy.wait('@createJIRAConnection').its('response.statusCode').should('eq', 201)
- cy.url().should('include', '/integrations/jira')
- })
- })
-
- describe('GitLab Data Provider', () => {
- it('provides access to gitlab integration', () => {
- cy.visit('/integrations/gitlab')
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/gitlab integration/i)
- })
- it('displays connection sources data table', () => {
- cy.visit('/integrations/gitlab')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('thead')
- .find('th')
- .should('contain', 'Connection Name')
- .should('contain', 'Endpoint')
- .should('contain', 'Status')
- })
- it('limited to one (1) connection', () => {
- cy.visit('/integrations/gitlab')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('tbody').should('have.length', 1)
- })
- it('can create a new connection', () => {
- cy.fixture('new-gitlab-connection').as('GitlabConnectionConnectionJSON')
- cy.intercept('POST', '/api/plugins/gitlab/connections', { statusCode: 201, body: '@GitlabConnectionConnectionJSON' }).as('createGitlabConnection')
- cy.visit('/integrations/gitlab')
- cy.get('button#btn-add-new-connection').click()
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.disabled')
-
- cy.get('input#connection-name').type('TEST JIRA INSTANCE')
- cy.get('input#connection-endpoint').type('https://gitlab.com/api/')
- cy.get('input#connection-token').type('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
- cy.get('input#connection-proxy').type('http://proxy.localhost:8800')
-
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.enabled')
- .click()
-
- cy.wait('@createGitlabConnection').its('response.statusCode').should('eq', 201)
- cy.url().should('include', '/integrations/gitlab')
- })
- })
-
- describe('GitHub Data Provider', () => {
- it('provides access to github integration', () => {
- cy.visit('/integrations/github')
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/github integration/i)
- })
- it('displays connection sources data table', () => {
- cy.visit('/integrations/github')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('thead')
- .find('th')
- .should('contain', 'Connection Name')
- .should('contain', 'Endpoint')
- .should('contain', 'Status')
- })
- it('limited to one (1) connection', () => {
- cy.visit('/integrations/github')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('tbody').should('have.length', 1)
- })
- it('can create a new connection', () => {
- cy.fixture('new-github-connection').as('GithubConnectionConnectionJSON')
- cy.intercept('POST', '/api/plugins/github/connections', { statusCode: 201, body: '@GithubConnectionConnectionJSON' }).as('createGithubConnection')
- cy.visit('/integrations/github')
- cy.get('button#btn-add-new-connection').click()
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.disabled')
-
- cy.get('input#connection-name').type('TEST JIRA INSTANCE')
- cy.get('input#connection-endpoint').type('https://github.com/api/')
- cy.get('input#pat-id-0').type('xxxxx0')
- cy.get('input#connection-proxy').type('http://proxy.localhost:8800')
-
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.enabled')
- .click()
-
- cy.wait('@createGithubConnection').its('response.statusCode').should('eq', 201)
- cy.url().should('include', '/integrations/github')
- })
- })
-
- describe('Jenkins Data Provider', () => {
- it('provides access to jenkins integration', () => {
- cy.visit('/integrations/jenkins')
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/jenkins integration/i)
- })
- it('displays connection sources data table', () => {
- cy.visit('/integrations/jenkins')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('thead')
- .find('th')
- .should('contain', 'Connection Name')
- .should('contain', 'Endpoint')
- .should('contain', 'Status')
- })
- it('limited to one (1) connection', () => {
- cy.visit('/integrations/jenkins')
- cy.get('.connections-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('tbody').should('have.length', 1)
- })
- it('can create a new connection', () => {
- cy.fixture('new-jenkins-connection').as('JenkinsConnectionConnectionJSON')
- cy.intercept('POST', '/api/plugins/jenkins/connections', { statusCode: 201, body: '@JenkinsConnectionConnectionJSON' }).as('createJenkinsConnection')
- cy.visit('/integrations/jenkins')
- cy.get('button#btn-add-new-connection').click()
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.disabled')
-
- cy.get('input#connection-name').type('TEST JIRA INSTANCE')
- cy.get('input#connection-endpoint').type('https://jenkins.com/api/')
- cy.get('input#connection-username').type('username')
- cy.get('input#connection-password').type('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
-
- cy.get('button#btn-save')
- .should('be.visible')
- .should('be.enabled')
- .click()
-
- cy.wait('@createJenkinsConnection').its('response.statusCode').should('eq', 201)
- cy.url().should('include', '/integrations/jenkins')
- })
- })
-})
diff --git a/config-ui/cypress/integration/3-pipelines/activity.spec.js b/config-ui/cypress/integration/3-pipelines/activity.spec.js
deleted file mode 100644
index 47702a803..000000000
--- a/config-ui/cypress/integration/3-pipelines/activity.spec.js
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context.skip('Pipeline RUN Activity', () => {
- beforeEach(() => {
- cy.fixture('pipelines').then((pipelinesJSON) => {
- cy.intercept('GET', '/api/pipelines?', { body: pipelinesJSON }).as('getPipelines')
- })
- cy.fixture('pipeline-activity').then((pipelinesActivityJSON) => {
- cy.intercept('GET', '/api/pipelines/100', { body: pipelinesActivityJSON }).as('getPipelineActivity')
- })
- cy.fixture('pipeline-tasks').then((pipelinesTasksJSON) => {
- cy.intercept('GET', '/api/pipelines/100/tasks', { body: pipelinesTasksJSON }).as('getPipelineActivityTasks')
- })
- cy.visit('/pipelines')
- })
-
- it('provides access to monitor pipeline activity', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- expect(response.body.count).to.eq(10)
- expect(response.body.pipelines.length).to.eq(response.body.count)
- let run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/pipeline activity/i)
- .should('be.visible')
- cy.get('.stage-panel-card')
- .should('be.visible')
- })
- })
-
- it('shows pipeline name', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.wait('@getPipelineActivity').then(({ response }) => {
- const Activity = response.body
- cy.get('.pipeline-activity')
- .find('.pipeline-name')
- .contains(Activity.name)
- .should('be.visible')
- })
- })
-
- it('shows pipeline status', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.wait('@getPipelineActivity').then(({ response }) => {
- const Activity = response.body
- cy.get('.pipeline-activity')
- .find('.pipeline-status')
- .contains(Activity.status.split('_')[1])
- .should('be.visible')
-
- })
- })
-
- it('shows pipeline duration', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.wait('@getPipelineActivity').then(({ response }) => {
- const Activity = response.body
- cy.get('.pipeline-activity')
- .find('.pipeline-duration')
- .should('be.visible')
-
- })
- })
-
- it('shows pipeline task activity list', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.wait('@getPipelineActivity').then(({ response }) => {
- const Activity = response.body
- cy.get('.pipeline-task-activity')
- .children()
- .should('have.length', Activity.tasks[0].length)
- })
- })
-
- it('displays provider run settings and configuration', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.wait('@getPipelineActivity').then(({ response }) => {
- const Activity = response.body
- cy.get('.run-settings')
- .should('be.visible')
- Activity.tasks[0].forEach(task => {
- cy.get('.run-settings')
- .find(`.${task.plugin.toLowerCase()}-settings`)
- .should('be.visible')
- })
- })
- })
-
- it('has pipeline code inspector', () => {
- cy.wait('@getPipelines').then(({ response }) => {
- const run = response.body.pipelines[0]
- cy.visit(`/pipelines/activity/${run.id}`)
- })
- cy.get('.btn-inspect-pipeline')
- .should('be.visible')
- .click()
-
- cy.get('.drawer-json-inspector')
- .should('be.visible')
- .find('.bp3-drawer-header')
- .contains(/inspect run/i)
- })
-})
diff --git a/config-ui/cypress/integration/3-pipelines/create-new.spec.js b/config-ui/cypress/integration/3-pipelines/create-new.spec.js
deleted file mode 100644
index 202cce5c7..000000000
--- a/config-ui/cypress/integration/3-pipelines/create-new.spec.js
+++ /dev/null
@@ -1,278 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context.skip('Create New Pipelines Interface', () => {
- beforeEach(() => {
- cy.visit('/pipelines/create')
- })
-
- it('provides access to creating a new pipeline', () => {
- cy.get('ul.bp3-breadcrumbs')
- .find('a.bp3-breadcrumb-current')
- .contains(/create pipeline run/i)
- .should('be.visible')
- .should('have.attr', 'href', '/pipelines/create')
-
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/create pipeline run/i)
- .should('be.visible')
- })
-
- it('has form control for pipeline name', () => {
- cy.get('h2')
- .contains(/pipeline name/i)
- .should('be.visible')
-
- cy.get('input#pipeline-name')
- .should('be.visible')
- })
-
- it('has plugin support for gitlab data provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-gitlab')
- .should('be.visible')
- })
-
- it('has plugin support for github data provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-github')
- .should('be.visible')
- })
-
- it('has plugin support for jenkins data provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-jenkins')
- .should('be.visible')
- })
-
- it('has plugin support for jira data provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-jira')
- .should('be.visible')
- })
-
- it('has plugin support for refdiff plugin provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-refdiff')
- .should('be.visible')
- })
-
- it('has plugin support for gitextractor plugin provider', () => {
- cy.get('.data-providers')
- .find('.data-provider-row.data-provider-gitextractor')
- .should('be.visible')
- })
-
- it('has form button control for running pipeline', () => {
- cy.get('.btn-run-pipeline')
- .should('be.visible')
- })
-
- it('has form button control for resetting pipeline', () => {
- cy.get('.btn-reset-pipeline')
- .should('be.visible')
- })
-
- it('has form button control for viewing all pipelines (manage)', () => {
- cy.get('.btn-view-jobs')
- .should('be.visible')
- })
-
- it('supports advanced-mode user interface options', () => {
- cy.get('.advanced-mode-toggleswitch')
- .should('be.visible')
- .find('.bp3-control-indicator')
- .click()
-
- cy.get('h2')
- .contains(/pipeline name \(advanced\)/i)
- .should('be.visible')
- })
-
-
-})
-
-context.skip('RUN / Trigger New Pipelines', () => {
- beforeEach(() => {
- cy.visit('/pipelines/create')
- })
-
- it('can run a jenkins pipeline', () => {
- cy.fixture('new-jenkins-pipeline').then((newJenkinsPipelineJSON) => {
- cy.intercept('GET', `/api/pipelines/${newJenkinsPipelineJSON.id}`, { body: newJenkinsPipelineJSON }).as('JenkinsPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newJenkinsPipelineJSON }).as('runJenkinsPipeline')
- cy.fixture('new-jenkins-pipeline-tasks').then((newJenkinsPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newJenkinsPipelineJSON.id}/tasks`, { body: newJenkinsPipelineTasksJSON }).as('JenkinsPipelineTasks')
- })
- })
-
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT JENKINS ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-jenkins')
- .should('be.visible')
- .click()
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@JenkinsPipeline')
- cy.wait('@JenkinsPipelineTasks')
- cy.wait('@runJenkinsPipeline').then(({ response }) => {
- const NewJenkinsRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewJenkinsRun.id}`)
- })
- })
-
- it('can run a gitlab pipeline', () => {
- cy.fixture('new-gitlab-pipeline').then((newGitlabPipelineJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGitlabPipelineJSON.id}`, { body: newGitlabPipelineJSON }).as('GitlabPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newGitlabPipelineJSON }).as('runGitlabPipeline')
- cy.fixture('new-gitlab-pipeline-tasks').then((newGitlabPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGitlabPipelineJSON.id}/tasks`, { body: newGitlabPipelineTasksJSON }).as('GitlabPipelineTasks')
- })
- })
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT GITLAB ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-gitlab')
- .should('be.visible')
- .click()
-
- cy.get('.input-project-id').find('input').type('278964{enter}')
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@GitlabPipeline')
- cy.wait('@GitlabPipelineTasks')
- cy.wait('@runGitlabPipeline').then(({ response }) => {
- const NewGitlabRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewGitlabRun.id}`)
- })
- })
-
- it('can run a github pipeline', () => {
- cy.fixture('new-github-pipeline').then((newGithubPipelineJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGithubPipelineJSON.id}`, { body: newGithubPipelineJSON }).as('GithubPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newGithubPipelineJSON }).as('runGithubPipeline')
- cy.fixture('new-github-pipeline-tasks').then((newGithubPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGithubPipelineJSON.id}/tasks`, { body: newGithubPipelineTasksJSON }).as('GithubPipelineTasks')
- })
- })
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT GITHUB ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-github')
- .should('be.visible')
- .click()
- .trigger('mouseleave')
-
- cy.get('input#owner').click().type('merico-dev', {force: true})
- cy.get('input#repository-name').type('lake')
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@GithubPipeline')
- cy.wait('@GithubPipelineTasks')
- cy.wait('@runGithubPipeline').then(({ response }) => {
- const NewGithubRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewGithubRun.id}`)
- })
- })
-
- it('can run a gitextractor pipeline', () => {
- cy.fixture('new-gitextractor-pipeline').then((newGitExtractorPipelineJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGitExtractorPipelineJSON.id}`, { body: newGitExtractorPipelineJSON }).as('GitExtractorPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newGitExtractorPipelineJSON }).as('runGitExtractorPipeline')
- cy.fixture('new-github-pipeline-tasks').then((newGitExtractorPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newGitExtractorPipelineJSON.id}/tasks`, { body: newGitExtractorPipelineTasksJSON }).as('GitExtractorPipelineTasks')
- })
- })
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT GITEXTRACTOR ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-gitextractor')
- .should('be.visible')
- .click()
- .trigger('mouseleave')
-
- cy.get('input#gitextractor-url').click().type('https://github.com/apache/incubator-devlake.git')
- cy.get('input#gitextractor-repo-id').type('github:GithubRepo:384111310')
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@GitExtractorPipeline')
- cy.wait('@GitExtractorPipelineTasks')
- cy.wait('@runGitExtractorPipeline').then(({ response }) => {
- const NewGitExtractorRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewGitExtractorRun.id}`)
- })
- })
-
-
- it('can run a jira pipeline', () => {
- cy.fixture('new-jira-pipeline').then((newJiraPipelineJSON) => {
- cy.intercept('GET', `/api/pipelines/${newJiraPipelineJSON.id}`, { body: newJiraPipelineJSON }).as('JiraPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newJiraPipelineJSON }).as('runJiraPipeline')
- cy.fixture('new-jira-pipeline-tasks').then((newJiraPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newJiraPipelineJSON.id}/tasks`, { body: newJiraPipelineTasksJSON }).as('JiraPipelineTasks')
- })
- })
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT JIRA ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-jira')
- .should('be.visible')
- .click()
-
- cy.get('button.btn-connection-id-selector').click()
- cy.wait(500)
- cy.get('.bp3-select-popover.source-id-popover')
- .find('ul.bp3-menu li')
- .first()
- .click()
- cy.wait(500)
- cy.get('.input-board-id').find('input').type('1{enter}')
-
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@JiraPipeline')
- cy.wait('@JiraPipelineTasks')
- cy.wait('@runJiraPipeline').then(({ response }) => {
- const NewJiraRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewJiraRun.id}`)
- })
- })
-
- it('can run a refdiff pipeline', () => {
- cy.fixture('new-refdiff-pipeline').then((newRefDiffJSON) => {
- cy.intercept('GET', `/api/pipelines/${newRefDiffJSON.id}`, { body: newRefDiffJSON }).as('RefDiffPipeline')
- cy.intercept('POST', '/api/pipelines', { body: newRefDiffJSON }).as('runRefDiffPipeline')
- cy.fixture('new-refdiff-pipeline-tasks').then((newRefDiffPipelineTasksJSON) => {
- cy.intercept('GET', `/api/pipelines/${newRefDiffJSON.id}/tasks`, { body: newRefDiffPipelineTasksJSON }).as('RefDiffPipelineTasks')
- })
- })
- cy.get('input#pipeline-name').type(`{selectAll}{backSpace}COLLECT REFDIFF ${Date.now()}`)
- cy.get('.provider-toggle-switch.switch-refdiff')
- .should('be.visible')
- .click()
- .trigger('mouseleave')
-
- cy.get('input#refdiff-repo-id').click().type('github:GithubRepo:384111310')
- cy.get('input#refdiff-pair-newref').type('refs/tags/v0.2.0')
- cy.get('input#refdiff-pair-oldref').type('refs/tags/v0.1.0')
- cy.get('button.btn-add-tagpair').click()
-
- cy.get('button#btn-run-pipeline').click()
- cy.wait('@RefDiffPipeline')
- cy.wait('@RefDiffPipelineTasks')
- cy.wait('@runRefDiffPipeline').then(({ response }) => {
- const NewRefDiffRun = response.body
- cy.url().should('include', `/pipelines/activity/${NewRefDiffRun.id}`)
- })
- })
-
-
-})
diff --git a/config-ui/cypress/integration/3-pipelines/manage.spec.js b/config-ui/cypress/integration/3-pipelines/manage.spec.js
deleted file mode 100644
index c440515c1..000000000
--- a/config-ui/cypress/integration/3-pipelines/manage.spec.js
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-
-context('Manage Pipelines & Runs', () => {
- beforeEach(() => {
- cy.visit('/pipelines')
- })
-
- it('provides access/management of pipeline runs', () => {
- cy.get('ul.bp3-breadcrumbs')
- .find('a.bp3-breadcrumb-current')
- .contains(/all pipeline runs/i)
- .should('be.visible')
- .should('have.attr', 'href', '/pipelines')
-
- cy.get('.headlineContainer')
- .find('h1')
- .contains(/all pipeline runs/i)
- .should('be.visible')
- })
-
- it('displays pipeline runs data table', () => {
- cy.get('.pipelines-table')
- .should('have.class', 'bp3-html-table')
- .should('be.visible')
- .find('thead')
- .find('th')
- .should('contain', 'ID')
- .should('contain', 'Pipeline Name')
- .should('contain', 'Duration')
- .should('contain', 'Status')
- })
-
- it('displays pipelines filter controls panel', () => {
- cy.get('.filter-status-group')
- .should('have.class', 'bp3-button-group')
- .should('be.visible')
- .children().should('have.length', 4)
- })
-
- it('displays data table pagination controls', () => {
- cy.get('.operations.panel')
- .find('.pagination-controls')
- .should('be.visible')
-
- cy.get('.btn-prev-page').should('be.visible')
- cy.get('.btn-next-page').should('be.visible')
- cy.get('.btn-select-page-size').should('be.visible')
- })
-
- it.skip('has action to create new pipeline run', () => {
- cy.get('.bp3-button')
- .should('have.class', 'bp3-intent-primary')
- .contains(/create pipeline run/i)
- .should('be.visible')
- .as('createRunBtn')
-
- cy.get('@createRunBtn').click()
- cy.url().should('include', `${Cypress.config().baseUrl}/pipelines/create`)
- })
-
-})
diff --git a/config-ui/cypress/plugins/index.js b/config-ui/cypress/plugins/index.js
deleted file mode 100644
index 16101fbe3..000000000
--- a/config-ui/cypress/plugins/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-/// <reference types="cypress" />
-// ***********************************************************
-// CONFIG-UI: Cypress Plugins
-// ***********************************************************
-//
-// Docs:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-/**
- * @type {Cypress.PluginConfig}
- */
-// eslint-disable-next-line no-unused-vars
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
-}
diff --git a/config-ui/cypress/support/commands.js b/config-ui/cypress/support/commands.js
deleted file mode 100644
index c78b51b69..000000000
--- a/config-ui/cypress/support/commands.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// ***********************************************************
-// CONFIG-UI: Cypress Commands
-// ***********************************************************
-//
-// Docs:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add('login', (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This will overwrite an existing command --
-// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
diff --git a/config-ui/cypress/support/index.js b/config-ui/cypress/support/index.js
deleted file mode 100644
index b60e94483..000000000
--- a/config-ui/cypress/support/index.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements. See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*/
-
-// ***********************************************************
-// CONFIG-UI: Cypress Support Configuration
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before all test files.
-//
-// Docs:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-import './commands'
\ No newline at end of file
diff --git a/config-ui/package-lock.json b/config-ui/package-lock.json
index 60d91f445..84ea07b43 100644
--- a/config-ui/package-lock.json
+++ b/config-ui/package-lock.json
@@ -1633,111 +1633,6 @@
}
}
},
- "@cypress/request": {
- "version": "2.88.10",
- "resolved": "https://registry.npmjs.org/@cypress/request/-/request-2.88.10.tgz",
- "integrity": "sha512-Zp7F+R93N0yZyG34GutyTNr+okam7s/Fzc1+i3kcqOP8vk6OuajuE9qZJ6Rs+10/1JFtXFYMdyarnU1rZuJesg==",
- "dev": true,
- "requires": {
- "aws-sign2": "~0.7.0",
- "aws4": "^1.8.0",
- "caseless": "~0.12.0",
- "combined-stream": "~1.0.6",
- "extend": "~3.0.2",
- "forever-agent": "~0.6.1",
- "form-data": "~2.3.2",
- "http-signature": "~1.3.6",
- "is-typedarray": "~1.0.0",
- "isstream": "~0.1.2",
- "json-stringify-safe": "~5.0.1",
- "mime-types": "~2.1.19",
- "performance-now": "^2.1.0",
- "qs": "~6.5.2",
- "safe-buffer": "^5.1.2",
- "tough-cookie": "~2.5.0",
- "tunnel-agent": "^0.6.0",
- "uuid": "^8.3.2"
- },
- "dependencies": {
- "form-data": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz",
- "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==",
- "dev": true,
- "requires": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.6",
- "mime-types": "^2.1.12"
- }
- },
- "http-signature": {
- "version": "1.3.6",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.3.6.tgz",
- "integrity": "sha512-3adrsD6zqo4GsTqtO7FyrejHNv+NgiIfAfv68+jVlFmSr9OGy7zrxONceFRLKvnnZA5jbxQBX1u9PpB6Wi32Gw==",
- "dev": true,
- "requires": {
- "assert-plus": "^1.0.0",
- "jsprim": "^2.0.2",
- "sshpk": "^1.14.1"
- }
- },
- "json-schema": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
- "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==",
- "dev": true
- },
- "jsprim": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-2.0.2.tgz",
- "integrity": "sha512-gqXddjPqQ6G40VdnI6T6yObEC+pDNvyP95wdQhkWkg7crHH3km5qP1FsOXEkzEQwnz6gz5qGTn1c2Y52wP3OyQ==",
- "dev": true,
- "requires": {
- "assert-plus": "1.0.0",
- "extsprintf": "1.3.0",
- "json-schema": "0.4.0",
- "verror": "1.10.0"
- }
- },
- "tough-cookie": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
- "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==",
- "dev": true,
- "requires": {
- "psl": "^1.1.28",
- "punycode": "^2.1.1"
- }
- },
- "uuid": {
- "version": "8.3.2",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
- "dev": true
- }
- }
- },
- "@cypress/xvfb": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/@cypress/xvfb/-/xvfb-1.2.4.tgz",
- "integrity": "sha512-skbBzPggOVYCbnGgV+0dmBdW/s77ZkAOXIC1knS8NagwDjBrNC1LuXtQJeiN6l+m7lzmHtaoUw/ctJKdqkG57Q==",
- "dev": true,
- "requires": {
- "debug": "^3.1.0",
- "lodash.once": "^4.1.1"
- },
- "dependencies": {
- "debug": {
- "version": "3.2.7",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
- "dev": true,
- "requires": {
- "ms": "^2.1.1"
- }
- }
- }
- },
"@discoveryjs/json-ext": {
"version": "0.5.5",
"resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz",
@@ -3284,18 +3179,6 @@
"integrity": "sha512-hppQEBDmlwhFAXKJX2KnWLYu5yMfi91yazPb2l+lbJiwW+wdo1gNeRA+3RgNSO39WYX2euey41KEwnqesU2Jew==",
"dev": true
},
- "@types/sinonjs__fake-timers": {
- "version": "8.1.1",
- "resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-8.1.1.tgz",
- "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==",
- "dev": true
- },
- "@types/sizzle": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz",
- "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ==",
- "dev": true
- },
"@types/source-list-map": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/@types/source-list-map/-/source-list-map-0.1.2.tgz",
@@ -3412,16 +3295,6 @@
"integrity": "sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw==",
"dev": true
},
- "@types/yauzl": {
- "version": "2.9.2",
- "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.9.2.tgz",
- "integrity": "sha512-8uALY5LTvSuHgloDVUvWP3pIauILm+8/0pDMokuDYIoNsOkSwd5AiHBTSEJjKTDcZr5z8UpgOWZkxBF4iJftoA==",
- "dev": true,
- "optional": true,
- "requires": {
- "@types/node": "*"
- }
- },
"@uiw/react-textarea-code-editor": {
"version": "1.4.16",
"resolved": "https://registry.npmjs.org/@uiw/react-textarea-code-editor/-/react-textarea-code-editor-1.4.16.tgz",
@@ -3840,12 +3713,6 @@
"integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
"dev": true
},
- "arch": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/arch/-/arch-2.2.0.tgz",
- "integrity": "sha512-Of/R0wqp83cgHozfIYLbBMnej79U/SVGOOyuB3VVFv1NRM/PSFMK12x9KVtiYzJqmnU5WR2qp0Z5rHb7sWGnFQ==",
- "dev": true
- },
"are-we-there-yet": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
@@ -4068,12 +3935,6 @@
"integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
"dev": true
},
- "at-least-node": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
- "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
- "dev": true
- },
"atob": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
@@ -4515,12 +4376,6 @@
"file-uri-to-path": "1.0.0"
}
},
- "blob-util": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/blob-util/-/blob-util-2.0.2.tgz",
- "integrity": "sha512-T7JQa+zsXXEa6/8ZhHcQEW1UFfVM49Ts65uBkFL6fz2QmrElqmbajIDJvuA0tEhRe5eIjpV9ZF+0RfZR9voJFQ==",
- "dev": true
- },
"bluebird": {
"version": "3.7.2",
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
@@ -4869,12 +4724,6 @@
}
}
},
- "buffer-crc32": {
- "version": "0.2.13",
- "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",
- "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=",
- "dev": true
- },
"buffer-from": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
@@ -4987,12 +4836,6 @@
}
}
},
- "cachedir": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz",
- "integrity": "sha512-A+Fezp4zxnit6FanDmv9EqXNAi3vt9DWp51/71UEhXukb7QUuvtv9344h91dyAxuTLoSYJFU299qzR3tzwPAhw==",
- "dev": true
- },
"call-bind": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
@@ -5197,12 +5040,6 @@
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
"integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
},
- "check-more-types": {
- "version": "2.24.0",
- "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz",
- "integrity": "sha1-FCD/sQ/URNz8ebQ4kbv//TKoRgA=",
- "dev": true
- },
"check-types": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/check-types/-/check-types-8.0.3.tgz",
@@ -5397,111 +5234,6 @@
"restore-cursor": "^3.1.0"
}
},
- "cli-table3": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.6.1.tgz",
- "integrity": "sha512-w0q/enDHhPLq44ovMGdQeeDLvwxwavsJX7oQGYt/LrBlYsyaxyDnp6z3QzFut/6kLLKnlcUVJLrpB7KBfgG/RA==",
- "dev": true,
- "requires": {
- "colors": "1.4.0",
- "string-width": "^4.2.0"
- },
- "dependencies": {
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true
- },
- "string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "requires": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- }
- }
- }
- },
- "cli-truncate": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz",
- "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==",
- "dev": true,
- "requires": {
- "slice-ansi": "^3.0.0",
- "string-width": "^4.2.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true
- },
- "slice-ansi": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz",
- "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.0.0",
- "astral-regex": "^2.0.0",
- "is-fullwidth-code-point": "^3.0.0"
- }
- },
- "string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "requires": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- }
- }
- }
- },
"cli-width": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz",
@@ -5640,13 +5372,6 @@
"integrity": "sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==",
"dev": true
},
- "colors": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz",
- "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==",
- "dev": true,
- "optional": true
- },
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
@@ -5684,12 +5409,6 @@
"integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==",
"dev": true
},
- "common-tags": {
- "version": "1.8.2",
- "resolved": "https://registry.npmjs.org/common-tags/-/common-tags-1.8.2.tgz",
- "integrity": "sha512-gk/Z852D2Wtb//0I+kRFNKKE9dIIVirjoqPoA1wJU+XePVXZfGeBpk45+A1rKO4Q43prqWBNY/MiIeRLbPWUaA==",
- "dev": true
- },
"commondir": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
@@ -6458,264 +6177,6 @@
"integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=",
"dev": true
},
- "cypress": {
- "version": "9.5.1",
- "resolved": "https://registry.npmjs.org/cypress/-/cypress-9.5.1.tgz",
- "integrity": "sha512-H7lUWB3Svr44gz1rNnj941xmdsCljXoJa2cDneAltjI9leKLMQLm30x6jLlpQ730tiVtIbW5HdUmBzPzwzfUQg==",
- "dev": true,
- "requires": {
- "@cypress/request": "^2.88.10",
- "@cypress/xvfb": "^1.2.4",
- "@types/node": "^14.14.31",
- "@types/sinonjs__fake-timers": "8.1.1",
- "@types/sizzle": "^2.3.2",
- "arch": "^2.2.0",
- "blob-util": "^2.0.2",
- "bluebird": "^3.7.2",
- "buffer": "^5.6.0",
- "cachedir": "^2.3.0",
- "chalk": "^4.1.0",
- "check-more-types": "^2.24.0",
- "cli-cursor": "^3.1.0",
- "cli-table3": "~0.6.1",
- "commander": "^5.1.0",
- "common-tags": "^1.8.0",
- "dayjs": "^1.10.4",
- "debug": "^4.3.2",
- "enquirer": "^2.3.6",
- "eventemitter2": "^6.4.3",
- "execa": "4.1.0",
- "executable": "^4.1.1",
- "extract-zip": "2.0.1",
- "figures": "^3.2.0",
- "fs-extra": "^9.1.0",
- "getos": "^3.2.1",
- "is-ci": "^3.0.0",
- "is-installed-globally": "~0.4.0",
- "lazy-ass": "^1.6.0",
- "listr2": "^3.8.3",
- "lodash": "^4.17.21",
- "log-symbols": "^4.0.0",
- "minimist": "^1.2.5",
- "ospath": "^1.2.2",
- "pretty-bytes": "^5.6.0",
- "proxy-from-env": "1.0.0",
- "request-progress": "^3.0.0",
- "semver": "^7.3.2",
- "supports-color": "^8.1.1",
- "tmp": "~0.2.1",
- "untildify": "^4.0.0",
- "yauzl": "^2.10.0"
- },
- "dependencies": {
- "@types/node": {
- "version": "14.18.12",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.12.tgz",
- "integrity": "sha512-q4jlIR71hUpWTnGhXWcakgkZeHa3CCjcQcnuzU8M891BAWA2jHiziiWEPEkdS5pFsz7H9HJiy8BrK7tBRNrY7A==",
- "dev": true
- },
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "buffer": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
- "dev": true,
- "requires": {
- "base64-js": "^1.3.1",
- "ieee754": "^1.1.13"
- }
- },
- "chalk": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.1.0",
- "supports-color": "^7.1.0"
- },
- "dependencies": {
- "supports-color": {
- "version": "7.2.0",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- }
- }
- },
- "ci-info": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz",
- "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==",
- "dev": true
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "commander": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-5.1.0.tgz",
- "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
- "dev": true
- },
- "execa": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz",
- "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==",
- "dev": true,
- "requires": {
- "cross-spawn": "^7.0.0",
- "get-stream": "^5.0.0",
- "human-signals": "^1.1.1",
- "is-stream": "^2.0.0",
- "merge-stream": "^2.0.0",
- "npm-run-path": "^4.0.0",
- "onetime": "^5.1.0",
- "signal-exit": "^3.0.2",
- "strip-final-newline": "^2.0.0"
- }
- },
- "fs-extra": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
- "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
- "dev": true,
- "requires": {
- "at-least-node": "^1.0.0",
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- }
- },
- "get-stream": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
- "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
- "dev": true,
- "requires": {
- "pump": "^3.0.0"
- }
- },
- "global-dirs": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz",
- "integrity": "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==",
- "dev": true,
- "requires": {
- "ini": "2.0.0"
- }
- },
- "has-flag": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
- "dev": true
- },
- "human-signals": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz",
- "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==",
- "dev": true
- },
- "ini": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz",
- "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==",
- "dev": true
- },
- "is-ci": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz",
- "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==",
- "dev": true,
- "requires": {
- "ci-info": "^3.2.0"
- }
- },
- "is-installed-globally": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz",
- "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==",
- "dev": true,
- "requires": {
- "global-dirs": "^3.0.0",
- "is-path-inside": "^3.0.2"
- }
- },
- "is-path-inside": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
- "dev": true
- },
- "jsonfile": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
- "dev": true,
- "requires": {
- "graceful-fs": "^4.1.6",
- "universalify": "^2.0.0"
- }
- },
- "semver": {
- "version": "7.3.5",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz",
- "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==",
- "dev": true,
- "requires": {
- "lru-cache": "^6.0.0"
- }
- },
- "supports-color": {
- "version": "8.1.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",
- "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",
- "dev": true,
- "requires": {
- "has-flag": "^4.0.0"
- }
- },
- "tmp": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz",
- "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==",
- "dev": true,
- "requires": {
- "rimraf": "^3.0.0"
- }
- },
- "universalify": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
- "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
- "dev": true
- }
- }
- },
"damerau-levenshtein": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz",
@@ -8354,12 +7815,6 @@
"integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=",
"dev": true
},
- "eventemitter2": {
- "version": "6.4.5",
- "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-6.4.5.tgz",
- "integrity": "sha512-bXE7Dyc1i6oQElDG0jMRZJrRAn9QR2xyyFGmBdZleNmyQX0FqGYmhZIrIrpPfm/w//LTo4tVQGOGQcGCb5q9uw==",
- "dev": true
- },
"eventemitter3": {
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
@@ -8408,23 +7863,6 @@
"strip-final-newline": "^2.0.0"
}
},
- "executable": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/executable/-/executable-4.1.1.tgz",
- "integrity": "sha512-8iA79xD3uAch729dUG8xaaBBFGaEa0wdD2VkYLFHwlqosEj/jT66AzcreRDSgV7ehnNLBW2WR5jIXwGKjVdTLg==",
- "dev": true,
- "requires": {
- "pify": "^2.2.0"
- },
- "dependencies": {
- "pify": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
- "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
- "dev": true
- }
- }
- },
"exit": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
@@ -8700,29 +8138,6 @@
}
}
},
- "extract-zip": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
- "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
- "dev": true,
- "requires": {
- "@types/yauzl": "^2.9.1",
- "debug": "^4.1.1",
- "get-stream": "^5.1.0",
- "yauzl": "^2.10.0"
- },
- "dependencies": {
- "get-stream": {
- "version": "5.2.0",
- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
- "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
- "dev": true,
- "requires": {
- "pump": "^3.0.0"
- }
- }
- }
- },
"extsprintf": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
@@ -8799,15 +8214,6 @@
"bser": "2.1.1"
}
},
- "fd-slicer": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz",
- "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=",
- "dev": true,
- "requires": {
- "pend": "~1.2.0"
- }
- },
"figgy-pudding": {
"version": "3.5.2",
"resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
@@ -9268,23 +8674,6 @@
"integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
"dev": true
},
- "getos": {
- "version": "3.2.1",
- "resolved": "https://registry.npmjs.org/getos/-/getos-3.2.1.tgz",
- "integrity": "sha512-U56CfOK17OKgTVqozZjUKNdkfEv6jk5WISBJ8SHoagjE6L69zOwl3Z+O8myjY9MEW3i2HPWQBt/LTbCgcC973Q==",
- "dev": true,
- "requires": {
- "async": "^3.2.0"
- },
- "dependencies": {
- "async": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
- "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==",
- "dev": true
- }
- }
- },
"getpass": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
@@ -12541,12 +11930,6 @@
"package-json": "^6.3.0"
}
},
- "lazy-ass": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/lazy-ass/-/lazy-ass-1.6.0.tgz",
- "integrity": "sha1-eZllXoZGwX8In90YfRUNMyTVRRM=",
- "dev": true
- },
"leven": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",
@@ -13134,39 +12517,6 @@
"resolved": "https://registry.npmjs.org/listify/-/listify-1.0.3.tgz",
"integrity": "sha512-083swF7iH7bx8666zdzBColpgEuy46HjN3r1isD4zV6Ix7FuHfb/2/WVnl4CH8hjuoWeFF7P5KkKNXUnJCFEJg=="
},
- "listr2": {
- "version": "3.14.0",
- "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.14.0.tgz",
- "integrity": "sha512-TyWI8G99GX9GjE54cJ+RrNMcIFBfwMPxc3XTFiAYGN4s10hWROGtOg7+O6u6LE3mNkyld7RSLE6nrKBvTfcs3g==",
- "dev": true,
- "requires": {
- "cli-truncate": "^2.1.0",
- "colorette": "^2.0.16",
- "log-update": "^4.0.0",
- "p-map": "^4.0.0",
- "rfdc": "^1.3.0",
- "rxjs": "^7.5.1",
- "through": "^2.3.8",
- "wrap-ansi": "^7.0.0"
- },
- "dependencies": {
- "rxjs": {
- "version": "7.5.5",
- "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz",
- "integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==",
- "dev": true,
- "requires": {
- "tslib": "^2.1.0"
- }
- },
- "tslib": {
- "version": "2.3.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
- "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==",
- "dev": true
- }
- }
- },
"loader-runner": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz",
@@ -13227,12 +12577,6 @@
"integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",
"dev": true
},
- "lodash.once": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",
- "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=",
- "dev": true
- },
"lodash.truncate": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz",
@@ -13312,78 +12656,6 @@
}
}
},
- "log-update": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz",
- "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==",
- "dev": true,
- "requires": {
- "ansi-escapes": "^4.3.0",
- "cli-cursor": "^3.1.0",
- "slice-ansi": "^4.0.0",
- "wrap-ansi": "^6.2.0"
- },
- "dependencies": {
- "ansi-styles": {
- "version": "4.3.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
- "dev": true,
- "requires": {
- "color-convert": "^2.0.1"
- }
- },
- "color-convert": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
- "dev": true,
- "requires": {
- "color-name": "~1.1.4"
- }
- },
- "color-name": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
- "dev": true
- },
- "emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true
- },
- "is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true
- },
- "string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "requires": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- }
- },
- "wrap-ansi": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",
- "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==",
- "dev": true,
- "requires": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- }
- }
- }
- },
"loglevel": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/loglevel/-/loglevel-1.7.1.tgz",
@@ -14757,12 +14029,6 @@
"os-tmpdir": "^1.0.0"
}
},
- "ospath": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/ospath/-/ospath-1.2.2.tgz",
- "integrity": "sha1-EnZjl3Sj+O8lcvf+QoDg6kVQwHs=",
- "dev": true
- },
"p-cancelable": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz",
@@ -15052,12 +14318,6 @@
"sha.js": "^2.4.8"
}
},
- "pend": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
- "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=",
- "dev": true
- },
"performance-now": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
@@ -15788,12 +15048,6 @@
"fast-diff": "^1.1.2"
}
},
- "pretty-bytes": {
- "version": "5.6.0",
- "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz",
- "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==",
- "dev": true
- },
"pretty-error": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.2.tgz",
@@ -15911,12 +15165,6 @@
"ipaddr.js": "1.9.1"
}
},
- "proxy-from-env": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz",
- "integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=",
- "dev": true
- },
"prr": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
@@ -16703,15 +15951,6 @@
}
}
},
- "request-progress": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/request-progress/-/request-progress-3.0.0.tgz",
- "integrity": "sha1-TKdUCBx/7GP1BeT6qCWqBs1mnb4=",
- "dev": true,
- "requires": {
- "throttleit": "^1.0.0"
- }
- },
"require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@@ -16849,12 +16088,6 @@
"integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
"dev": true
},
- "rfdc": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz",
- "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==",
- "dev": true
- },
"rgb-regex": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz",
@@ -18649,12 +17882,6 @@
"resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-2.3.0.tgz",
"integrity": "sha512-H7oLPV0P7+jgvrk+6mwwwBDmxTaxnu9HMXmloNLXwnNO0ZxZ31Orah2n8lU1eMPvsaowP2CX+USCgyovXfdOFQ=="
},
- "throttleit": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-1.0.0.tgz",
- "integrity": "sha1-nnhYNtr0Z0MUWlmEtiaNgoUorGw=",
- "dev": true
- },
"through": {
"version": "2.3.8",
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
@@ -19205,12 +18432,6 @@
}
}
},
- "untildify": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
- "integrity": "sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw==",
- "dev": true
- },
"unzip-response": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz",
@@ -21254,16 +20475,6 @@
}
}
},
- "yauzl": {
- "version": "2.10.0",
- "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz",
- "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=",
- "dev": true,
- "requires": {
- "buffer-crc32": "~0.2.3",
- "fd-slicer": "~1.1.0"
- }
- },
"yocto-queue": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",
diff --git a/config-ui/package.json b/config-ui/package.json
index d16d28044..22519c73f 100644
--- a/config-ui/package.json
+++ b/config-ui/package.json
@@ -8,7 +8,6 @@
"start": "webpack serve --progress",
"start-production": "npm run build-production;node server.js",
"lint": "eslint ./src --fix --ext .jsx --ext .js",
- "cypress": "./node_modules/.bin/cypress open",
"prettier": "prettier . --write"
},
"dependencies": {
@@ -66,7 +65,6 @@
"css-loader": "^3.6.0",
"css-minimizer-webpack-plugin": "^1.3.0",
"cssnano": "^4.1.11",
- "cypress": "^9.5.1",
"eslint": "^7.15.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.5.0",
diff --git a/config-ui/test/json.js b/config-ui/test/json.js
deleted file mode 100644
index bd67828d1..000000000
--- a/config-ui/test/json.js
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-const assert = require('assert')
-const AVAILABLE_PLUGINS = require('../src/data/availablePlugins')
-const TEST_DATA = require('./testData')
-const { getCollectorJson, getCollectionJson } = require('../src/utils/triggersUtil')
-
-describe('Json utils', () => {
- describe('getCollectionJson', function () {
- it('gets default JSON for plugins based on an array of names', function () {
- const expected = TEST_DATA.completeTriggersJson
- const actual = getCollectionJson(AVAILABLE_PLUGINS)
- assert.deepEqual(expected, actual)
- })
- })
- describe('getCollectorJson', function () {
- it('gets default JSON for a collector plugin based on the name', function () {
- const expected = TEST_DATA.gitlabTriggersJson
- const actual = getCollectorJson('gitlab')
- assert.deepEqual(expected, actual)
- })
- })
-})
diff --git a/config-ui/test/testData.js b/config-ui/test/testData.js
deleted file mode 100644
index 37cfb0b00..000000000
--- a/config-ui/test/testData.js
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-const TEST_DATA = {
- gitlabTriggersJson: {
- Plugin: 'gitlab',
- Options: {
- projectId: 8967944,
- },
- },
- completeTriggersJson: [
- [
- {
- Plugin: 'gitlab',
- Options: {
- projectId: 8967944,
- },
- },
- {
- Plugin: 'jira',
- Options: {
- boardId: 8,
- connectionId: 1,
- },
- },
- {
- Plugin: 'jenkins',
- Options: {},
- },
- {
- Plugin: 'github',
- Options: {
- repo: 'lake',
- owner: 'merico-dev',
- },
- },
- ]
- ]
-}
-
-module.exports = TEST_DATA
diff --git a/config-ui/webpack.config.js b/config-ui/webpack.config.js
index ce34ee51d..20f477f8c 100644
--- a/config-ui/webpack.config.js
+++ b/config-ui/webpack.config.js
@@ -41,7 +41,7 @@ module.exports = (env = {}) => {
{
test: /\.(tsx?|jsx?)$/,
use: ['babel-loader'],
- exclude: [/node_modules/, /packages/, /cypress/, /^config$/]
+ exclude: [/node_modules/, /packages/, /^config$/]
},
{
test: /\.css$/,
@@ -128,7 +128,7 @@ module.exports = (env = {}) => {
// Do NOT auto-fix w/ eslint on webpack startup!
fix: false,
context: path.resolve(__dirname, './'),
- exclude: ['dist', 'packages', 'cypress', 'config', 'node_modules']
+ exclude: ['dist', 'packages', 'config', 'node_modules']
}),
...optionalPlugins
],
diff --git a/config-ui/webpack.production.config.js b/config-ui/webpack.production.config.js
index 38aa83905..b9e63f612 100644
--- a/config-ui/webpack.production.config.js
+++ b/config-ui/webpack.production.config.js
@@ -42,7 +42,7 @@ module.exports = (env = {}) => {
rules: [
{
test: /\.(tsx?|jsx?)$/,
- exclude: [/node_modules/, /packages/, /cypress/, /^config$/],
+ exclude: [/node_modules/, /packages/, /^config$/],
use: {
loader: 'babel-loader'
}
@@ -173,7 +173,7 @@ module.exports = (env = {}) => {
}),
new ESLintPlugin({
context: path.resolve(__dirname, './'),
- exclude: ['dist', 'packages', 'cypress', 'config', 'node_modules']
+ exclude: ['dist', 'packages', 'config', 'node_modules']
}),
...optionalPlugins
]