Add function test CLI tests (#2871)

* Add function test CLI tests
* Add few more services to tests

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2023-11-13 14:34:56 +05:30
committed by GitHub
parent 3fabf64b3c
commit 2e4825def0
8 changed files with 60 additions and 39 deletions
+4
View File
@@ -705,6 +705,10 @@ func (fh functionHandler) getServiceEntry(ctx context.Context) (svcURL *url.URL,
},
)
if recordObj == nil {
return nil, false, fmt.Errorf("empty service entry: %w", err)
}
record, ok := recordObj.(svcEntryRecord)
if !ok {
return nil, false, fmt.Errorf("unexpected type of recordObj %T: %w", recordObj, err)