How to input a parameter into my test runs that is not in my source code?
Hi.
Some of our tests connect to external resources, in this case Azure Service Bus, that requires some kind of connection string that we do not want stored in source control.
For local runs on our development machines, we place a text file at a specific path (out side of the source controlled root) that contains the connection strings. The tests pick this up and use it to connect.
How would we achieve this in Appveyor?
Thank you much.
PS In which Azure Data Center is Appveyor running?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 18 May, 2015 04:04 AM
I'd use environment variables for that.
Btw, while developing locally try using Registry instead of files - works great for us.
AppVeyor runs in Azure West US, Azure Central US, Azure East US and SoftLayer (San-Jose) data centers.
2 Posted by jfbosch on 18 May, 2015 06:15 AM
Thank you much.
>AppVeyor runs in Azure West US, Azure Central US, Azure East US and
SoftLayer (San-Jose) data centers.
Is there a deterministic way to run on a specific one?
i.e. I would want to provision the Azure Service Bus in the same data
center as is running the tests.
Support Staff 3 Posted by Feodor Fitsner on 18 May, 2015 05:10 PM
If you are running on Azure (Free, Basic plans and custom images on Pro plan) then the only way I think to determine data center is take VM IP and verify its range: https://www.microsoft.com/en-us/download/details.aspx?id=41653
If you are running on Pro with default image then it's outside Azure.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.