Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

chore[Op#53117]: build ci details from dynamic factory

Kabiru Mwenja4c81e631ba5b
diff --git a/modules/gitlab_integration/spec/factories/gitlab_pipelines.rb b/modules/gitlab_integration/spec/factories/gitlab_pipelines.rb
index ec3f1d30beb..89a53928f3a 100644
--- a/modules/gitlab_integration/spec/factories/gitlab_pipelines.rb
+++ b/modules/gitlab_integration/spec/factories/gitlab_pipelines.rb
@@ -43,8 +43,6 @@ FactoryBot.define do
completed_at { nil }
ci_details do
- # ci_details_json_file_path = File.join(File.dirname(__FILE__), 'gitlab_pipelines', 'ci_details.json')
- # JSON.parse(File.read(ci_details_json_file_path))
build_list(:gitlab_pipeline_ci_detail, 3)
end
diff --git a/modules/gitlab_integration/spec/factories/gitlab_pipelines/ci_details.json b/modules/gitlab_integration/spec/factories/gitlab_pipelines/ci_details.json
deleted file mode 100644
index 6805a6be504..00000000000
--- a/modules/gitlab_integration/spec/factories/gitlab_pipelines/ci_details.json
+++ /dev/null
@@ -1,118 +0,0 @@
-[
- {
- "id": 34,
- "stage": "test",
- "name": "unit-test-job",
- "status": "created",
- "created_at": "2024-03-02 09:01:05 UTC",
- "started_at": null,
- "finished_at": null,
- "duration": null,
- "queued_duration": null,
- "failure_reason": null,
- "when": "on_success",
- "manual": false,
- "allow_failure": false,
- "user": {
- "id": 1,
- "name": "Administrator",
- "username": "root",
- "avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80\u0026d=identicon",
- "email": "[REDACTED]"
- },
- "runner": null,
- "artifacts_file": {
- "filename": null,
- "size": null
- },
- "environment": null
- },
- {
- "id": 35,
- "stage": "test",
- "name": "lint-test-job",
- "status": "created",
- "created_at": "2024-03-02 09:01:05 UTC",
- "started_at": null,
- "finished_at": null,
- "duration": null,
- "queued_duration": null,
- "failure_reason": null,
- "when": "on_success",
- "manual": false,
- "allow_failure": false,
- "user": {
- "id": 1,
- "name": "Administrator",
- "username": "root",
- "avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80\u0026d=identicon",
- "email": "[REDACTED]"
- },
- "runner": null,
- "artifacts_file": {
- "filename": null,
- "size": null
- },
- "environment": null
- },
- {
- "id": 36,
- "stage": "deploy",
- "name": "deploy-job",
- "status": "created",
- "created_at": "2024-03-02 09:01:05 UTC",
- "started_at": null,
- "finished_at": null,
- "duration": null,
- "queued_duration": null,
- "failure_reason": null,
- "when": "on_success",
- "manual": false,
- "allow_failure": false,
- "user": {
- "id": 1,
- "name": "Administrator",
- "username": "root",
- "avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80\u0026d=identicon",
- "email": "[REDACTED]"
- },
- "runner": null,
- "artifacts_file": {
- "filename": null,
- "size": null
- },
- "environment": {
- "name": "production",
- "action": "start",
- "deployment_tier": "production"
- }
- },
- {
- "id": 33,
- "stage": "build",
- "name": "build-job",
- "status": "pending",
- "created_at": "2024-03-02 09:01:05 UTC",
- "started_at": null,
- "finished_at": null,
- "duration": null,
- "queued_duration": 399.060996359,
- "failure_reason": null,
- "when": "on_success",
- "manual": false,
- "allow_failure": false,
- "user": {
- "id": 1,
- "name": "Administrator",
- "username": "root",
- "avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80\u0026d=identicon",
- "email": "[REDACTED]"
- },
- "runner": null,
- "artifacts_file": {
- "filename": null,
- "size": null
- },
- "environment": null
- }
-]