Closed mbenkmann closed 9 years ago
From matthias...@gmail.com on February 18, 2013 09:57:12
=> Must for MS 2
Labels: -Priority-Normal Priority-Must
From mux2...@gmail.com on February 25, 2013 01:12:28
Also missing: system test for "new_key" message.
From mux2...@gmail.com on February 27, 2013 07:09:28
Tests done. The last paragraph in the description is inaccurate. The current implementation does not replace missing data with go-susi's data.
Status: Done
From mux2...@gmail.com on February 15, 2013 18:11:45
db.ClientWithAddress()
db.ClientUpdate() with case where 2 old entries are replaced (i.e. the new entry has the same as entry 1 and the same as entry 2)
db.SystemGetState(mac,"objectclass") for an object with multiple objectclasses to check that as documented only the 1st object class is returned. I think this is not true ATM. Either change docs or change code to make consistent.
db.SystemDataForMAC()
db.SystemSetState() test case to verify that the new attribute can replace multiple existing attribute values (e.g. gotoNtpServer). To create this test case it will probably be necessary to add a new function db.SystemSetStateMulti() that takes an array of values, so that it can be used to set multiple values before the test.
db.SystemSetState() test case where the attribute to set does not yet exist. This will probably need the db.SystemSetStateMulti() function described in the previous paragraph so that the test can delete the attribute before the test.
Test case for here_i_am with a client that is not in LDAP. Test that go-susi sends registered followed by detect_hardware
Test case for here_i_am with a client that is in LDAP. Test that go-susi sends registered followed by new_ldap_config and new_ntp_config. This should happen even if the client object has neither attribute. The missing LDAP data should be replaced with go-susi's own data and the default NTP server should be pool.ntp.org.
Original issue: http://code.google.com/p/go-susi/issues/detail?id=46