tests: pdr: Guard TEST(EntityAssociationPDR, testFindContainerID)

As the APIs exercised have testing visibility the binary fails to link
if the build is configured with `-Dabi=deprecated,stable`:

```
...
[37/47] Linking target tests/libpldm_pdr_test
FAILED: tests/libpldm_pdr_test
c++  -o tests/libpldm_pdr_test tests/libpldm_pdr_test.p/libpldm_pdr_test.cpp.o -Wl,--as-needed -Wl,--no-undefined '-Wl,-rpath,$ORIGIN/..' -Wl,-rpath-link,/mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/ -Wl,--start-group libpldm.so.0.3.0 subprojects/googlete
st/libgtest.a subprojects/googletest/libgtest_main.a subprojects/googletest/libgmock.a -Wl,--end-group -pthread
/usr/bin/ld: tests/libpldm_pdr_test.p/libpldm_pdr_test.cpp.o: in function `EntityAssociationPDR_testFindContainerID_Test::TestBody()':
/mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/../../../tests/libpldm_pdr_test.cpp:1655: undefined reference to `pldm_entity_association_tree_add_entity'
/usr/bin/ld: /mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/../../../tests/libpldm_pdr_test.cpp:1660: undefined reference to `pldm_entity_association_tree_add_entity'
/usr/bin/ld: /mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/../../../tests/libpldm_pdr_test.cpp:1664: undefined reference to `pldm_entity_association_tree_add_entity'
/usr/bin/ld: /mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/../../../tests/libpldm_pdr_test.cpp:1678: undefined reference to `pldm_pdr_find_container_id_range_exclude'
/usr/bin/ld: /mnt/host/andrew/home/andrew/src/openbmc/libpldm/builds/aarch64/stable/../../../tests/libpldm_pdr_test.cpp:1683: undefined reference to `pldm_pdr_find_container_id_range_exclude'
collect2: error: ld returned 1 exit status
...
```

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I9b0c0b2f544d6c7f0b3b42a19b5a455cb78c08d5
diff --git a/tests/libpldm_pdr_test.cpp b/tests/libpldm_pdr_test.cpp
index 48e8dfa..174873c 100644
--- a/tests/libpldm_pdr_test.cpp
+++ b/tests/libpldm_pdr_test.cpp
@@ -1642,6 +1642,7 @@
     pldm_entity_association_tree_destroy(tree);
 }
 
+#ifdef LIBPLDM_API_TESTING
 TEST(EntityAssociationPDR, testFindContainerID)
 {
     pldm_entity entities[3]{};
@@ -1687,3 +1688,4 @@
     pldm_pdr_destroy(repo);
     pldm_entity_association_tree_destroy(tree);
 }
+#endif