[VOL-2176] Adding -no-auth and -no-dhcp option in BBSim CLI

Change-Id: I3d0f7adb26c1df0d42f67b9b8fbc782754491c31
diff --git a/internal/bbsim/devices/onu_state_machine_test.go b/internal/bbsim/devices/onu_state_machine_test.go
index 239869b..c8ad84c 100644
--- a/internal/bbsim/devices/onu_state_machine_test.go
+++ b/internal/bbsim/devices/onu_state_machine_test.go
@@ -22,13 +22,7 @@
 )
 
 func Test_Onu_StateMachine_enable(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	assert.Equal(t, onu.InternalState.Current(), "created")
 	onu.InternalState.Event("discover")
@@ -38,13 +32,7 @@
 }
 
 func Test_Onu_StateMachine_eapol_start_eap_flow(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	onu.InternalState.SetState("enabled")
 
@@ -62,13 +50,7 @@
 }
 
 func Test_Onu_StateMachine_eapol_start_gem_port(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	onu.InternalState.SetState("enabled")
 
@@ -86,13 +68,7 @@
 }
 
 func Test_Onu_StateMachine_eapol_states(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	onu.InternalState.SetState("auth_started")
 
@@ -108,13 +84,7 @@
 }
 
 func Test_Onu_StateMachine_dhcp_start(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 	onu.DhcpFlowReceived = true
 
 	onu.InternalState.SetState("eap_response_success_received")
@@ -126,13 +96,7 @@
 }
 
 func Test_Onu_StateMachine_dhcp_start_error(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	onu.InternalState.SetState("eap_response_success_received")
 	assert.Equal(t, onu.InternalState.Current(), "eap_response_success_received")
@@ -144,13 +108,7 @@
 }
 
 func Test_Onu_StateMachine_dhcp_states(t *testing.T) {
-	olt := OltDevice{
-		ID: 0,
-	}
-	pon := PonPort{
-		ID: 1,
-	}
-	onu := CreateONU(olt, pon, 1, 900, 900)
+	onu := createTestOnu()
 
 	onu.DhcpFlowReceived = false