Sanity Check Procedures
The Sanity Check Procedures are the steps that a System Administrator will take to verify that an installation is ready to be tested. This is therefore a preliminary set of tests to ensure that obvious or basic malfunctioning is fixed before proceeding to unit tests, integration tests and user validation.
Check if User Interface is working:
Verify that the host address of IdM can be reached. By default, web access will show a Login Page.
Acquire a valid username and password and access with those credentials. The resulting web page is the landing page of the IdM KeyRock Portal.
Verify that you can view the list of applications, organizations, etc.
Check if API is working:
- Request an API token as describe in apiary.
- Verify that you can retrieve list of applications, organization, etc. For instance you can check paths by:
curl --include \ --header "X-Auth-token: <api_token>" \ 'http://idm-portal:3000/v1'
You can also check if Keyrock is working properly by running unit test. To do tthis, follow the next steps:
1. Under directory test you can find config_test.js.template file which has a default configuration to run tests. This configuration file will be used to create a testing database (called idm_test) that will be removed after performing all tests. First, if you have already a config.js file in root directory and you want to preserve this configuration, save this file in another directory because the following shell command will overwrite it or just change your config.js file with the values of config_test.js.template
cp test/config_test.js.template config.js
2. Once you have copied config file, you can run all tests in this way:
npm run test
2.1. You can also run an individual test if you want:
npm run test:single test/unit/<path_to_file_test>.js
List of Running Processes
If you used forever, to know the status of the process you can run the next command:
Network interfaces Up & Open
If your run the server being HTTPS enabled the TCP port 443 should be accessible to the web browsers in order to load the IdM Portal.
If you have correctly populated the database when installing the GE, the connection with it is up and running.
The databases and tables needed are:
The Diagnosis Procedures are the first steps that a System Administrator will take to locate the source of an error in a GE. Once the nature of the error is identified with these tests, the system admin will very often have to resort to more concrete and specific testing to pinpoint the exact point of error and a possible solution. Such specific testing is out of the scope of this section.
Verify that 2.5MB of disk space is left using the UNIX command 'df'
Remote Service Access
Please make sure port 443 is accessible.
Typical memory consumption is 100MB and it consumes almost the 1% of a CPU core of 2GHz, but it depends on user demand.
Clients access the KeyRock Interface through the client’s Web Browser. This is simple HTTP traffic. It makes requests to the local database.