elastic / elastic/elasticsearch-sql-odbc

MSI: Installation Integration tests

Open
#37 0 comments 0 reactions 1 assignee Claimed by @codebrain View on GitHub
Dominant language
C
Stars
18
Forks
33
Avg merge
1d 16h
Merged PRs (30d)
4

Description

**Need the following integration tests:**

---
**Test 1:** Assert correct installation

1. Install driver
2. Assert files copied
3. Assert registry keys are present
4. Install dependent Elasticsearch version
5. Configure DSN
6. Insert document into new index
7. Assert ODBC connection is successful and data retrieved

---
**Test 2:** Assert correct un-installation

1. [As per Test 1]
2. Uninstall driver
3. Assert files removed
4. Assert registry keys are deleted

---
**Test 3:** Assert upgrade is prevented

1. [As per Test 1]
2. Attempt upgrade to a later version
3. Assert upgrade not taken place

---
**Test 4:** Assert operating system check

1. Attempt driver install on unsupported operating system
2. Assert error message received and not installed

---
**Test 5:** Assert C++ dependancy check

1. Attempt driver install on operating system without C++ runtime installed
2. Assert error message received and not installed

---
**Test 6:** Assert .NET dependancy check

1. Attempt driver install on operating system without .NET framework installed
2. Assert error message received and not installed

---

Using Pester and the supporting PowerShell scripts from the windows-installers project will get us further with less effort. If expedience is a high priority, this may be preferable. The ODBC installer is a much simpler beast than the Elasticsearch installer, making the simpler approach of Pester vs. xUnit/NUnit less of an issue.

Consider Unit tests for editor dialog after moving to an MVVM or MVC architecture.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.