arm4test_register_application

Test Description

This test checks that arm_register_application handles application names correctly. It tests the following inputs:

  • Null name
  • Empty name ("")
  • Name length
    • Exceeds 128 bytes (129)
    • Equals 128 bytes (128)
    • Less than 128 bytes (127)
  • Blank name
    • Single blank character
    • Multiple blank characters
  • Trailing blanks

Preconditions

For simplicity of comparison, this test should start with an empty database.

$ arm4_daemon -vrc

Running the Test

With the daemon running, run the program.

$ arm4test_register_application

Expected Results

There should be a single application defined with a name of length 127.

$ arm4test_register_application
Test 1...
...done
$ arm4_report
Application: UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
        ID:b7e7743060474e1381fc3247ccc90d74
        No transactions defined
$ arm4_dump

Sequence Table
Sequence        Value
APPLICATION_INSTANCE_SEQUENCE   1
APPLICATION_SEQUENCE    1
TRANSACTION_BLOCKING_SEQUENCE   1
TRANSACTION_INSTANCE_SEQUENCE   1
TRANSACTION_SEQUENCE    1

Application Table
ID      Name    Digest  Charset
b7e7743060474e1381fc3247ccc90d74        UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU 174065b2c48ef2032c6e84e3529f6989        3

Application Identity Table
ID      Name    Value
No records

Application Context Names Table
ID      Index   Name
No records

Application Instance Table
Handle  App ID  Active
No records

Application Group Table
Handle  Group
No records

Application Instance Names Table
Handle  Name
No records

Application Context Values Table
Handle  Index   Value
No records

Transaction Table
ID      Name    Digest  App ID
No records

Transaction Identity Table
ID      Name    Value
No records

Transaction Context Names Table
ID      Index   Name
No records

Transaction Identity URI Table
ID      URI
No records

Transaction Metric Binding Table
ID      Index   Metric ID
No records

Transaction Instance Table
Handle  App ID  Tran ID App Handle      Arrival Time    Stop Time       Response Time   Status  Active  Block Start     Blocked Time
No records

Transaction Context Values Table
Handle  Index   Value
No records

Transaction Context URI Table
Handle  URI
No records

Transaction Context Metric Values Table
Handle  Slot    Format  Usage   Valid   Value
No records

Transaction Context User Table
Handle  Name    ID Valid        ID
No records

Transaction Context Diagnostic Detail Table
Handle  Detail
No records

Metric Table
ID      Name    Units   Digest  App ID  Format  Usage
No records