Fitnesse RestFixture on Linux - linux

I've been using the RestFixture in Fitnesse to test a REST service which is running under Tomcat. When Fitnesse is run on Linux (Redhat to be precise) the fixture doesn't pass any querystrings to Tomcat (the log entries prove this). However, the exact same fixture running through Fitnesse on a Windows machine works as expected.
Has anyone else tried this combination of operating system and fixture and had any experiences that may help?
Alternatively does anyone know of any good ways of bulk-testing REST services (in a way that a non-developer can create new tests).
Any help would be greatly appreciated!

I've just run across what appears to be this issue myself. I haven't tried on Windows but RestFixture is fairly definitely not populating my query parameters.
In fact, there's an issue on the RestFixture list about it.

the one described was in fact a bug. It is fixed in the trunk and it will be available in the next release coming at the end of April 09.

Related

How to test cassandra DAOs in Quarkus

I'd like to write some DAO-Tests in Quarkus for a cassandra database.
I googled this test framework: https://github.com/datastax/cassandra-quarkus/tree/main/test-framework
Now I have a problem, that I need to use a private docker container registry to pull images from.
But I have no idea how to configure the cassandra-quarkus-test-framework.
So did someone of you have an idea where to configure the URL of the docker registry in that framework?
Or do you have other ideas how to test Cassandra DAOs in Quarkus?
EDIT: Here is a working example project: https://github.com/edward-fakhouri/quarkus-cassandra-playground
Only the test class "CustomerDaoTest" is not working. Here I need some examples how to test the dao.
Thank you in advance for your help.
Well I have tested the cassanda-unit embedded database and it is working for Linux/Unix systems but not for Windows systems. So it won't work for testing the code while developing (in a windows os) but it will work, when running the tests in CI/CD environment. I'm only a bit happy with that solution.
Thanks #ozkanpakdil for suggesting this solution.

AHBot in an AzerothCore 3.3.5 Server

Does anyone have a guide on setting up AHBot in an AzerothCore 3.3.5 server? I can find no mention of ahbot in the world.conf and no DB tables like auctionhousebot in the database or any references. It is included in TrinityCore so all the google references that I find point me back there.
Our server is just two of us and it would be nice to have some items on the auction house. At the moment, if you need a silver bar you have to go out in the world and find it. That was exciting the first couple of times... but gets old.
I followed the guide to install off github: https://www.azerothcore.org/wiki/Installation and am using the latest release under Ubuntu linux.
Thank you for any help. You are my last hope...
AHBot is not currently an 'official' supported module of AzerothCore (which would be why you aren't finding any settings in the worldserver or anywhere else regarding it).
There is a module in development that isn't currently part of the AC list, but I've gotten it working on my personal server: https://github.com/AyaseCore/mod-ahbot Note that this is a bit different than a normal module as there is also a git patch that needs to be applied manually.
Theres a module in azerothCore repository you have to apply patch manually but it wont compile on Win x64 and unix x64 comes up with an error about 9 arguments, but seems to compile for some

Is there any tool replacement for SONAR for .net code quality and generate report from it?

I have a Visual studio solution, which is designed using c# 4.0 .
I want to check the code quality for my solution and generate report out of it.
I tried the FxCop and i also got the report but i need the report something like this(from the image).
The rules compliance is 85% but in FxCop it only showed me the critical, error, etc.
I was not able to even deploy my project into SONAR because I had some timeout issue
coming for one of my project in the solution.
please someone help me.
Thanks in advance.
Regards,
Roopini
I don't know if there's an equivalent of SonarQube for .NET projects, but if you really want such reporting (which I can understand, obviously!), you should rather ask questions on how to resolve your installation issue for SonarQube instead of searching for something else. There are plenty of organizations where big .NET solutions are successfully analyzed with SonarQube and the C# plugins, so there's no reason why it can't work for you!
You can find useful material on the net to help you on this. For instance, a blog post written by John M Wright about "setting up SonarQube for C# projects". John periodically updates his post, so the information should still be very relevant.
Have you tried the tool NDepend? It generates interactive reports about .NET code quality and code rules compliance. Here are some sample reports.
NDepend is also a tool integrated in Visual Studio (2017, 2015, 2013, 2012, 2010) that proposes a range of interactive features (graph, dependency matrix, code metrics visualization, code diff...). Another point about NDepend is that code rules are actually C# LINQ queries, so it is pretty easy to customize a default code rule or create your own code rules.
NDepend also integrates in VS Team Services and you'll get all code quality data from your VSTS UI instead of being redirected to a server.
I read that you have time-out problems analyzing your code base, maybe it is because your code base is pretty large. NDepend is optimized and it can analyze a very large code base and create a report in a few dozens of seconds (it takes around a minute to analyze the whole .NET Fx).
A 14 days full featured trial is available.
Disclaimer: I work in the NDepend team
If you haven't already, I would suggest taking a look at my blog post on setting up SonarQube for C# projects: http://www.wrightfully.com/setting-up-sonar-analysis-for-c-projects/
The key to fixing your issue will be determining what the system is doing when the timeout occurs. Take a look at your log files and see what the last lines were before it timed out. It could be that your code is complex and just needs more time, in which case you can adjust the timeout values for whichever tool is running at the time.
Otherwise, I would suggest running whichever analysis tool (fxcop, gendarme, sytlecop, etc) was running when the timeout occurred outside of SonarQube. That is, run the tool directly from the commandline to see if it still times out or provides any additional information on the console.
Also, assuming you're using the sonar-runner tool to execute the SonarQube analysis, you can add the -X argument to the commandline, which will run it with debug-level logging enabled. This will create a LOT more log messages which may shed some additional light on the issue.

File System Filter and CryptoAPI issue in Win CE

I have been working on a file system filter for the past two weeks and I have come across an interesting issue. I basically built the encoding/decoding implementation in an app that runs on the OS startup in Platform Builder first to verify that it works and for debugging purposes. This app works fine and is able to acquire a context ,generate keys , encrypt /decrypt without issue.
When I try to do the same thing on filesys dll load (this is the point at which file system filters are loaded in my understanding), no CSP services seem available to my file system filter. CryptAcquireContext fails with NTE_BAD_KEYSET or when I attempt to use the default provider, it fails with NTE_PROV_TYPE_NOT_DEF.
In frustration I wrote some code to enumerate all the providers available at that time and it turns out there arent any when filesys is loaded, wondering if anyone has any experience or ideas that can help. I have officially run out of ideas.
Cheers
Bernard

How should I version control (with SVN, for instance) a crontab?

I would like to version control my server's configuration, in case something happens to my server.
I think crontab files themselves are not intended to be edited directly (only through crontab commands), so how would I go about versioning them? Should I version the files anyway? Is there something else I should be looking for?
I guess you're trying to automate something on a web application. It clearly goes beyond the simple fact of your server crashing. What if you want to add another front-end server for example ?
People in the ruby community came out with a pretty nice tool, "whenever" (https://github.com/javan/whenever) to solve this issue.
Namely, the proper way is not to version control the crontab. It's rather up to each app to be able to properly configure itself.
In the case of Rails applications for example, you would use a tool like Capistrano to automate your deployment. And one of the capistrano task would be to setup the correct cron jobs, thanks to whenvever. Hope this helps !

Resources