Comments (7)
Looks pretty awesome. Couple of quick thoughts.
- Add some pester tests. Some examples of a DSC resource with tests can be found on xWebAdministration basically proving to anyone who takes the code that it works as expected.
- If you are doing an Add-Type check to make sure you haven't loaded the type previously, in my experience it leads to errors being thrown. This will typically come up in testing the code.
- IMO you probably shouldn't be assuming the path for the agent download like you do in xTeamAgent. Instead of giving a ServerURI and then adding the path in code I'd suggest asking for the full path or having some logic around trying known good paths.
from dsc.
Thanks for the suggestions. I'll look into writing some tests when I've got the time ;).
As for the agent download; I think the URL I'm using right now is in fact an API, so I doubt if it will change much and by doing it this way it makes it a little bit easier to use because you only need to know the URL of your TFS server. Perhaps I could add an optional parameter that defaults to the current relative URL, but can be overriden if it ever changes. Would that work?
from dsc.
In my experience with DSC the more specific the better. So if you want to allow an override don't force a specific path but force the user to provide the path to you. Just my thoughts I haven't actually used this before so I have no idea if the suggestion even makes sense. 😁
from dsc.
@jmezach You want to host that repo under PowerShellOrg? I can set up a repo and get you commit rights to it. I'd request that you get rid of that "x" prefix on the resource names. It'd be a better route to namespace the resource names like jmezach_TFSBuildAgent and just use a friendly name of TFSBuildAgent.
from dsc.
That would be nice yes. Not sure what you mean with the naming of these things though. I thought that the x prefix was sort of a convention? Or is that just for the name of the module and not the name of the resources themselves?
from dsc.
@jmezach 'x' and 'c' were attempts at namespacing where the resource came from (x was microsoft's experimental resources - e.g. unsupported, and c was the community variant since MS couldn't take community contributions). It was annoying, but needed given the way the PowerShell team had to release resources at the onset. It is pointless and counterproductive now, as we try to streamline naming.
from dsc.
Repo created https://github.com/PowerShellOrg/TeamFoundationServer and I invited you to join a group to manage it @jmezach
from dsc.
Related Issues (20)
- DSCBuild: Allow resource modules to specify their own build scripts HOT 2
- DscBuild: Restore state of Program Files directory on failed build HOT 6
- Add tests for DscBuild HOT 1
- Resolve-DscConfigurationProperty and Services vs node HOT 4
- Modules in DSC_Resorces cant be used to manage machine running invoke-DSCBuild. HOT 11
- Command conflicts HOT 1
- Get-DscConfigurationData filtering behavior HOT 1
- DSC Resource HOT 5
- cSmbshare Test-TargetResource FIX HOT 1
- ValidateSet can not be used for Arrays, PSCredentials, and Hashtable HOT 2
- How to get Credentials into a Configuration HOT 2
- Documentation for DSC tooling HOT 4
- New Resources for ElasticSearch, NSSM, 7zip and JRE HOT 15
- Update credential encryption code
- Modify New-DscResourceFromModule to accept new parameters HOT 1
- Break up cDscDiagnostics into individual scripts HOT 4
- Add-DscEncryptedPassword functionality HOT 4
- DSC Resource PSHOrg_cADGroup to cActive Directory HOT 6
- building with Jenkins HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsc.