Light attester configuration with cdn.ariatemplates.com - Printable Version
+- Aria Templates Forums (http://ariatemplates.com/forum)
+-- Forum: Public forums (/forumdisplay.php?fid=3)
+--- Forum: Support (/forumdisplay.php?fid=8)
+--- Thread: Light attester configuration with cdn.ariatemplates.com (/showthread.php?tid=97)
Light attester configuration with cdn.ariatemplates.com - Julian Descottes - 11 October 2013 12:22
I just wanted to share the attester configuration I am now using for running AT tests, and which relies on the aria templates CDN you recently released ( http://cdn.ariatemplates.com/ ) :
The amazing thing about this configuration is that since the aria templates bootstrap includes a root map (a very good idea in the end !), you don't even need to have aria-templates deployed anywhere to run your tests.
Small complaints about the command for running tests :
In case it can help someone to start writing tests
RE: Light attester configuration with cdn.ariatemplates.com - Julian Descottes - 11 October 2013 12:52
Actually, I have no idea why it was working yesterday, but now when the browsers wants to load my test classes, it tries to load them under '/__attester__/aria-templates'.
Did anything change on the CDN side ?
In any case, I adapted my configuration as follows :
As you can see in the resources section I've had to add a new mapping. Maybe something can be done to avoid this ?
RE: Light attester configuration with cdn.ariatemplates.com - Julian Descottes - 11 October 2013 14:07
And after a discussion with Benoit Charbonnier, it looks like my issue can be solved by specifying a custom root to the atcdn :
So, again a new version :
RE: Light attester configuration with cdn.ariatemplates.com - Olaf - 16 October 2013 10:02
Indeed, I took the assumption that the default rootMap would be where your bootstrap file is, then changed it to / temporarily during Benoît's training session, then reverted it and added the root parameter. So basically you fell right into this mess
I'll test Benoît's comment about setting rootFolderPath and use this opportunity to put the default root to / again, which probably makes more sense.
RE: Light attester configuration with cdn.ariatemplates.com - jakub-g - 17 October 2013 11:31
ad. shortcut for 1 phantom instance:
I think we may indeed add a shortcut like
or even a one-letter flag, though p is already used for "port" AFAIU: https://github.com/attester/attester/blob/master/bin/attester.js#L46
Ad. autodetection of `attester.yml/yaml`:
well it might make sense, though question: should it only take the file from the current working directory (I guess so) if exists?
For instance in AT we have it in a subfolder
I'm also wondering if it wouldn't be required to have an option to suppress the autodetection of attester.yaml. If someone wants to run a campaign from the command line entirely, he might get some options overridden silently it (one thing is if the command line takes precedence over the cfg file -- to be checked; second is that some built-in defaults may get overridden too).
For instance, I have a bunch of aliases defined to run campaigns from the command line; basically everything (except required browsers -- 'cause they're an array of objects -- until https://github.com/attester/attester/pull/40/files lands in master) can be defined with the command line.
Would be helpful to get David's opinions, and if agreed, open an issue on /attester/attester on GH.