diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /spec/frontend/packages/details/mock_data.js | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/frontend/packages/details/mock_data.js')
-rw-r--r-- | spec/frontend/packages/details/mock_data.js | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/spec/frontend/packages/details/mock_data.js b/spec/frontend/packages/details/mock_data.js new file mode 100644 index 00000000000..d43abcedb2e --- /dev/null +++ b/spec/frontend/packages/details/mock_data.js @@ -0,0 +1,47 @@ +export const registryUrl = 'foo/registry'; + +export const mavenMetadata = { + app_group: 'com.test.package.app', + app_name: 'test-package-app', + app_version: '1.0.0', +}; + +export const generateMavenCommand = ({ + app_group: appGroup = '', + app_name: appName = '', + app_version: appVersion = '', +}) => `mvn dependency:get -Dartifact=${appGroup}:${appName}:${appVersion}`; + +export const generateXmlCodeBlock = ({ + app_group: appGroup = '', + app_name: appName = '', + app_version: appVersion = '', +}) => `<dependency> + <groupId>${appGroup}</groupId> + <artifactId>${appName}</artifactId> + <version>${appVersion}</version> +</dependency>`; + +export const generateMavenSetupXml = () => `<repositories> + <repository> + <id>gitlab-maven</id> + <url>${registryUrl}</url> + </repository> +</repositories> + +<distributionManagement> + <repository> + <id>gitlab-maven</id> + <url>${registryUrl}</url> + </repository> + + <snapshotRepository> + <id>gitlab-maven</id> + <url>${registryUrl}</url> + </snapshotRepository> +</distributionManagement>`; + +export const pypiSetupCommandStr = `[gitlab] +repository = foo +username = __token__ +password = <your personal access token>`; |