Upload file to artifactory - automation

I'm trying to upload a zip file (size=1.6GB) to artifactory using CURL, but i have a GATEWAY_TIMEOUT error.
Any help on how to resolve this problem.

I tried to figure this out myself, and I figured out that JFrog has a tool specifically for this purpose.
I would use jfrog-cli. This is the supported way to upload objects to Artifactory.
Once you get it installed, you configure it with "jfrog rt config" and you put info about your instance, and your credentials (an API key is best), and then uploading is as simple as "jfrog rt u name_of_file name_of_artifactory_repo"

Related

Is there any way to upload SnowballObjects(.tar Auto-Extraction) in MINIO for python?

I want to upload a .tar file containing objects and MINIO will unzip automatically through the MINIO uploadSnowballObjects API.
While searching I foind For java client there is an API called uploadSnowballObjects. I am using Fast-Api python client. I couldn't find such way to resolve this issue.

Azure DevOps Testing

The basic purpose is to test a profile image upload API. I have an API which takes image file as an input and updates the profile picture according to given auth. I ran this API in postman and it was working fine. Now what I want to achieve is that I want to run this collection which has just one API for now on Azure devOps using npm, newman and publish test results. The issue that i am facing is that I can not find a way to upload that file. In postman collection, file path is the path in which your file is placed on your pc. In order to Run that api on devOps, what path should i give? Also, is there a way to upload an image or any sort of file?
In postman collection, file path is the path in which your file is
placed on your pc.
According to this description, you should want to upload the picture to a local file path.
The first thing that is clear is that you need to use the self-hosted agent to run the pipeline,because only if you use the agent installed on your local machine to run, you can track your local file path in Azure Devops. You can refer to this document on how to install a self-hosted agent.
Usually, the postman collection is exported as a .json file and then pushed it into the repo. If you set the file path in the collection, is it included in the collection.json?
In addition, it is difficult to reproduce your issue based on the information available, more detailed information is needed for further investigation:1. Which api are you using?
2.Postman collection settings 3.Specific operation process 4. Pipeline definition. It will be easier to understand in the form of screenshots.

Bluemix VMs on eu-gb: OS_TENANT_ID missing from CLI file

VMs is up on eu-gb region which is great.
However Horizon does not appear to be installed on there, which is fine, as I use the CLI most of the time. However the CLI file that I download from the Bluemix console is not correct.
It is missing the OS_TENANT_ID property. I cannot connect to my OpenStack tenant without this. Where can I get tenant ID from?
according to Bluemix VM documentation
https://www.ng.bluemix.net/docs/virtualmachines/vm_index.html#vm_setup_cli
you should login into your region&org and download the rc file one you are going to create the first VM.
The rc file download following these steps will contain all the information you need to access and manage your VM on Bluemix using openstack client.
In the case of you already downloaded your rc file following these steps I suggest you to try again generating a new one to check the new one contains all the information you need (consider that this environment is still beta and this kind of issues could be expected)

File upload w/ expressjs v4.+

I am trying to move to express 4.+ and I am having trouble figuring out what I should do about file uploads.
Migration docs says I need to come up w/ an alternative but they don't really give an example. They also dropped support for a reason, which file upload package should I use?
Also read that you should not attach a form upload to every post by using:
app.use(multer(...));
Is there a good way to attach these to just a particular route?
formidable or busboy are options.
Expressjs 4.+ has lost this feature because it's not built on top of connect anymore.
I use connect-busboy. I could not get 'busboy' to work. Other packages I came across but have never played with are 'flow' and 'parted'. There is also a npm package 'mongoose-file' which seems to let you add a file upload path to a mongoose Schema for upload to server. It may be handy if you are uploading other data to a MongoDB?
Basic connect-busboy and Formidable example using Express V4.2:
Node/Express file upload

Error uploading file to Alfresco using Java, CmisConstraintException:Conflict

I am getting an error uploading a file to repository using Java. I am using Alfresco 4.0e. I am able to connect to the repository, located on Unix server, from my Application, developed in struts, from localhost.
I am using OpenCMIS to connect and upload. When I try to upload a document it gives an error after executing createDocument(...)
org.apache.chemistry.opencmis.commons.exceptions.cmisconstraintException:Conflict
It's possible the document already exists. Can you check the logs on the Alfresco server for detail there?