CF-2067 : Add Flink artifact management commands for Confluent Platform - #3406
CF-2067 : Add Flink artifact management commands for Confluent Platform#3406Paras Negi (paras-negi-flink) wants to merge 6 commits into
Quality Gate passed
Annotations
Check failure on line 1975 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "non-exist-artifact" 3 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=8018d705-d475-4343-8d1b-ff4428ca0816&open=8018d705-d475-4343-8d1b-ff4428ca0816
Check failure on line 1964 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Refactor this method to reduce its Cognitive Complexity from 24 to the 15 allowed.
[S3776] Cognitive Complexity of functions should not be too high
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=51a6f4e4-8136-4a41-b5f8-d74d744433b8&open=51a6f4e4-8136-4a41-b5f8-d74d744433b8
Check failure on line 1975 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "invalid-artifact" 3 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=b4a52e27-4781-4535-96c1-20494ec417e3&open=b4a52e27-4781-4535-96c1-20494ec417e3
Check failure on line 27 in internal/flink/command_artifact_create_onprem.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "artifact-file" 4 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=a723ee4b-2729-492b-b57d-108233ad7e06&open=a723ee4b-2729-492b-b57d-108233ad7e06
Check failure on line 951 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "non-exist" 9 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=a232a347-0e92-40aa-8680-a273a680ad09&open=a232a347-0e92-40aa-8680-a273a680ad09
Check failure on line 92 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "cmf.confluent.io/v1" 3 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=a8a8a3a2-dc31-4c21-ae87-07d4f1b2a5b2&open=a8a8a3a2-dc31-4c21-ae87-07d4f1b2a5b2
Check failure on line 27 in internal/flink/command_artifact_version_create_onprem.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "artifact-file" 4 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=32ffd53f-8bf9-4ed5-8e2d-6667623252bf&open=32ffd53f-8bf9-4ed5-8e2d-6667623252bf
Check failure on line 1976 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "The artifact name is invalid" 3 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=31dd4a8a-accf-4413-b014-7519ad997e4d&open=31dd4a8a-accf-4413-b014-7519ad997e4d
Check failure on line 320 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "Unexpected method %s" 29 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=bda8b5a1-d8aa-4c68-9a3b-160089319ece&open=bda8b5a1-d8aa-4c68-9a3b-160089319ece
Check failure on line 570 in test/test-server/flink_onprem_handler.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "Environment not found" 17 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=28bf25c3-de71-40b5-8530-ae4968eb05bb&open=28bf25c3-de71-40b5-8530-ae4968eb05bb
Check failure on line 32 in internal/flink/command_artifact_version_download_onprem.go
sonarqube-confluent / SonarQube Code Analysis
Define a constant instead of duplicating this literal "output-file" 3 times.
[S1192] String literals should not be duplicated
See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3406&issues=1f052db8-fc92-46c3-9065-48395c92a814&open=1f052db8-fc92-46c3-9065-48395c92a814